Anyone used LR on a really dynamic app?

  • Questions
  • Anyone used LR on a really dynamic app?
Question ID: 104309
2
0

The object is so dynamic, most object contain a keyword as identifier with a generated number.
I forsee a problem to script it.

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on January 12, 2011 12:01 am
11 views
Answers (1)
1
Private answer

I am assuming you are talking about web click and script. When the ID attribute has dynamic data, it may be better to use the ordinal attribute instead of the ID attribute to identify the objects. See KM199099 in the HP kb.

Example:

web_image_link(''IMG_52549_2'', 
        ''Snapshot=t2.inf'', 
        DESCRIPTION, 
        ''Alt='', 
        ''ID=IMG_52549'', 
        ACTION, 
        ''ClickCoordinates=33,28'', 
        LAST);

In the above example, the ID=IMG_52549 changes each time.

Solution:

web_image_link(''IMG_52549_2'', 
        ''Snapshot=t2.inf'', 
        DESCRIPTION, 
        ''Alt='', 
        //''ID=IMG_52549'', Commented out as it is dynamic
        ''Ordinal = 12'' //This is the ordinal of the image on the page.
        ACTION, 
        ''ClickCoordinates=33,28'', 
        LAST);
Marked as spam
Posted by (Questions: 6, Answers: 167)
Answered on January 14, 2011 5:00 pm
I hope this attribute is commonly used or at least easy to add by development. Thanks for the tip! That KB article is also very useful for me navigate around for more related answers. Appreciate it.
( at January 18, 2011 5:46 pm)