Skip to Content
avatar image
Former Member

LinkToURL Object Examples

Does anyone have any links to help/examples regarding using the LinkToURL Object inside a Table Object?

What I'm trying to do is a Master-Detail kind of thing where I have two IViews: One containing a set of web controls that determine search criteria, and a Table (with which to display the results). One of the columns of this table should be a <u>link</u> that navigates to the second IView whose sole content is a Table that displays details about the record whose <u>link</u> was clicked.

I'm currently looking at ways to do this, and (so far) haven't found any help on these forums.

A. Is this possible?

B. If so, is it possible using the LinkToURL object (as one of the columns in my table)?

C. Will EPCM help me instead or will OBN help me with solving this problem?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 17, 2006 at 06:23 AM

    hi Joseph,

    Checkout The Link..,

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/dotnet/pdk for .net/pdk for .net faq - .net controls.faq

    Regards,

    Vinoth

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 18, 2006 at 02:46 AM

    Thanks for replying. Though the document may have information that may lead to answers, my questions weren't really answered. Is IView-to-IView navigation possible, and what if any, technologies should I look at?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 18, 2006 at 09:32 AM

    Hi Joseph,

    What you are describing sounds very much like a UI Pattern. In this Master-Detail Pattern, SAP usually recommends that all Master-Detail is in one place, where the "detail" table is sometimes hidden (on the same iView) until the link is clicked. This helps user orientation and familiarity with his options.

    But to your question - You actually have several ways to implement your desired behavior:

    OBN is one, which is I'd say is "standard" (but a bit of a over-kill in this case). Assign your “detail” iView as a target of the operation, and use an OBN link in the table. You can see samples and more details in the PDK documentation.

    A more simple option would be to use EPCM.DoNavigate JS function, which you can call from a "LinkToUrl" control, or a button, or whatever you like. You can read about in the portal guides (see: http://help.sap.com/saphelp_nw04/helpdata/en/26/71c74030308431e10000000a1550b0/content.htm)

    One more option, is to sperate the Master-Detail into 2 iViews, as you asked, and again not to do navigation, but to put both iViews on the same page, and use EPCM (subscribe and Raise) events for client side communication, or use server side events communication to pass the data between both iViews. On both you can read in the PDK documentation.

    I'm sure there are also other ways to do this...

    Regards,

    Ofer

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Rima Sirich

      Hi Rima,

      I tried NestedItemEventArgs but its throwing an error of "Object reference not set to an instance of an object". One suggestion on .NET said to check for ItemType or AlternatingType. But I couldn't get the syntax right for it. something like ListItem.Item

      I am kind of stuck at this point.

      Any help is much appreciated!!

      Thanks

      Kiran

  • avatar image
    Former Member
    Jun 18, 2006 at 07:05 PM

    Yes!!! Thank you for the information! I have thought of some of these points but haven't yet received a response from my client about the matter. Thank you!

    Add comment
    10|10000 characters needed characters exceeded