We have an application to create 300 or more objects in a script. We have to use the same script. Should I create the objects in the object map and and then select the objects in the script or should I use the API to generate the objects dynamically during runtime. Which is the practice generally followed in companies.
When I create the objects using object map. It is really a tedious task to select all the objects to the script from the object map and write the getProperty command so many times to get the required properties. Can the group members please suggest me which is the standard way to do this task.
There have been many posts in the past complaining about having to copy each object one-by-one into the script and also many posts about generating your own object map. The route you take is up to you after reading those posts.
I found using API better than Shared map. But one difficulty I am facing is how to navigate to the particular link. As of now I am trying to open the explorer to the particular page where objects are found. In the perl script I am giving the url's and object names and sending it as arguments to XDE. I am using the loadURL() to naviagte through the url's . Is there any better way to do this.
Inorder to navigate to the particular page by using series of links, you should find/get the link object on the page(getMappableChildren()) and use obj.click() thus each page finding the link and clicking it, you will be moving page by page sequentially, you can reach your perticular destination page.... (this the exact way of simulating user clicks, Note: it even works with session, cookies, hidden values etc)
sometimes you can load destination page directly
using loadURL() (Note: it may not work when sessions, cookies , hidden values are needed to go to perticular destination page)
Originally posted by praba: I found using API better than Shared map.
<font size="2" face="Verdana, Arial, Helvetica">I would like to say here...
I use API's to get Children functions only when I can get some new objects at runtime, which are not in my object map.
These API's are good but i can not imagine these as replacements of Object Map...
as i thught of writing a script using API's only but then my script will have all coding like ... obj.click()... which will not give a claer idea what the script is doing... ultimately maintaice cost wil be high..
Your comments are required as after reding this post I am feeling I am missing something...