Topic
  • 3 replies
  • Latest Post - ‏2013-02-04T18:49:45Z by mburati
SystemAdmin
SystemAdmin
9029 Posts

Pinned topic Help needed on client side modification in data page

‏2013-02-01T16:31:15Z |
Hi,
I have a data page to display data in the attached model. My requirement is if I select phone type 'Work' then only phone extension should be visible, otherwise input box for extension should be hidden. Can this be done with javascript in client side? Is it possible to get id of each individual element from DOM when page has been generated through page automation? Can someone please advice.

Thanks a lot,
Neel
Updated on 2013-02-04T18:49:45Z at 2013-02-04T18:49:45Z by mburati
  • mburati
    mburati
    2570 Posts

    Re: Help needed on client side modification in data page

    ‏2013-02-01T17:34:54Z  
    Try the Visibility Setter, Client Side builder, as discussed in the following thread:

    https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14849496

    I hope that info helps,
    ..Mike Burati
    http://www-10.lotus.com/ldd/pfwiki.nsf/
    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.
  • SystemAdmin
    SystemAdmin
    9029 Posts

    Re: Help needed on client side modification in data page

    ‏2013-02-02T02:14:23Z  
    • mburati
    • ‏2013-02-01T17:34:54Z
    Try the Visibility Setter, Client Side builder, as discussed in the following thread:

    https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14849496

    I hope that info helps,
    ..Mike Burati
    http://www-10.lotus.com/ldd/pfwiki.nsf/
    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.
    Thanks for your response. But my expectation was if I can get document object model id of each cell of data page using java script.

    Thanks,
    Neel
  • mburati
    mburati
    2570 Posts

    Re: Help needed on client side modification in data page

    ‏2013-02-04T18:49:45Z  
    Thanks for your response. But my expectation was if I can get document object model id of each cell of data page using java script.

    Thanks,
    Neel
    You can see what page automation is generating for html in the design view of the WEF Designer.

    For some html elements there may be a fixed id, but for others you may see builder(s) generating a call to make a unique id for a given name
    e.g.:
    
    id=
    '<%= IDGenerator.getNextID(webAppAccess, "someGenericName") %>' id=
    '<%= IDGenerator.getCurrentID(webAppAccess, "someGenericName") %>'
    

    where the first one is generating a "new" unique id for "someGenericName" (in case there was a previous use of the same generic name on the page already) and the second one gets the "current" unique id for "someGenericName" (in case you need multiple references to the current unique id for a given generic name).

    Not every html element has an id value, so you may need to set one yourself if the element you're targetting does not have one.
    I hope that info helps,
    ..Mike Burati
    http://www-10.lotus.com/ldd/pfwiki.nsf/
    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.