<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: URL Display in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/url-display/qaa-p/5395229#M2013631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the below code the PatResult size is 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for (int j=0; j &amp;lt; PatResult.size(); j++) &lt;/P&gt;&lt;P&gt;	  			{&lt;/P&gt;&lt;P&gt;	  				 result = (PAT)PatResult.get(j);&lt;/P&gt;&lt;P&gt;	  				wdComponentAPI.getMessageManager().reportSuccess(result.getURL()+ " " + result.getDLOBJNAME() + "" + result.getDLOBJTITLE());&lt;/P&gt;&lt;P&gt;	  				&lt;/P&gt;&lt;P&gt;	  				element = wdContext.createElementsElement();&lt;/P&gt;&lt;P&gt;	  				element.setURL(result.getURL());&lt;/P&gt;&lt;P&gt;	  				element.setURLLabel(result.getDLOBJTITLE());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	  				wdContext.nodeElements().bind(element);&lt;/P&gt;&lt;P&gt;	  				wdComponentAPI.getMessageManager().reportSuccess("URL is"+element.getURL());&lt;/P&gt;&lt;P&gt;	  				wdComponentAPI.getMessageManager().reportSuccess("FileName is"+element.getURLLabel());&lt;/P&gt;&lt;P&gt;	  				/*wdContext.currentElementsElement().setURL(result.getURL());&lt;/P&gt;&lt;P&gt;	  				wdContext.currentElementsElement().setURLLabel(result.getDLOBJTITLE());*/&lt;/P&gt;&lt;P&gt;	  			}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i bind it to the context as mentioned above and get the node size using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wdComponentAPI.getMessageManager().reportSuccess("elements node size  is "+wdContext.nodeElements().size());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it si returning nodesize as "1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually it should return two URL's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but now the context node element is returning only one URL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please let me know...i am missing something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it something like we have set the nodesize before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Swetha Nellore on Apr 3, 2009 9:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2009 07:06:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-03T07:06:39Z</dc:date>
    <item>
      <title>URL Display</title>
      <link>https://community.sap.com/t5/technology-q-a/url-display/qaq-p/5395227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a requirement where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we will get the URL's(number of URL's changes according to the ouput) as query output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These URL's need to be Displayed on the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in our code we are getting URL's in this way&lt;/P&gt;&lt;P&gt;for (int j=0; j &amp;lt; finalResult.size(); j++) &lt;/P&gt;&lt;P&gt;	  			{&lt;/P&gt;&lt;P&gt;	  				RESULT result = (RESULT)finalResult.get(j);&lt;/P&gt;&lt;P&gt;	  				wdComponentAPI.getMessageManager().reportSuccess(result.getURL()+ " " + result.getURLNAME() );&lt;/P&gt;&lt;P&gt;	  				&lt;/P&gt;&lt;P&gt;	  			}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please let me know How to bind these URL and URLName to the Context&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and Get these URL's displayed(no of URLs returned by Query) on the View&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manythanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 12:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/url-display/qaq-p/5395227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T12:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: URL Display</title>
      <link>https://community.sap.com/t5/technology-q-a/url-display/qaa-p/5395228#M2013630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either use a Table UI element with a LinkToURL as cell editor, or create LinkToURL UI elements inside wdDoModifyView().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using a Table, create a context node "Result" with an attribute "url" and bind the cell editor to the attribute. Fill the context node from your result set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using individual LinkToURL elements, use setReference() to assign the URLs from result to the links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Armin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 13:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/url-display/qaa-p/5395228#M2013630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T13:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: URL Display</title>
      <link>https://community.sap.com/t5/technology-q-a/url-display/qaa-p/5395229#M2013631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the below code the PatResult size is 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for (int j=0; j &amp;lt; PatResult.size(); j++) &lt;/P&gt;&lt;P&gt;	  			{&lt;/P&gt;&lt;P&gt;	  				 result = (PAT)PatResult.get(j);&lt;/P&gt;&lt;P&gt;	  				wdComponentAPI.getMessageManager().reportSuccess(result.getURL()+ " " + result.getDLOBJNAME() + "" + result.getDLOBJTITLE());&lt;/P&gt;&lt;P&gt;	  				&lt;/P&gt;&lt;P&gt;	  				element = wdContext.createElementsElement();&lt;/P&gt;&lt;P&gt;	  				element.setURL(result.getURL());&lt;/P&gt;&lt;P&gt;	  				element.setURLLabel(result.getDLOBJTITLE());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	  				wdContext.nodeElements().bind(element);&lt;/P&gt;&lt;P&gt;	  				wdComponentAPI.getMessageManager().reportSuccess("URL is"+element.getURL());&lt;/P&gt;&lt;P&gt;	  				wdComponentAPI.getMessageManager().reportSuccess("FileName is"+element.getURLLabel());&lt;/P&gt;&lt;P&gt;	  				/*wdContext.currentElementsElement().setURL(result.getURL());&lt;/P&gt;&lt;P&gt;	  				wdContext.currentElementsElement().setURLLabel(result.getDLOBJTITLE());*/&lt;/P&gt;&lt;P&gt;	  			}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i bind it to the context as mentioned above and get the node size using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wdComponentAPI.getMessageManager().reportSuccess("elements node size  is "+wdContext.nodeElements().size());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it si returning nodesize as "1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually it should return two URL's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but now the context node element is returning only one URL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please let me know...i am missing something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it something like we have set the nodesize before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Swetha Nellore on Apr 3, 2009 9:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 07:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/url-display/qaa-p/5395229#M2013631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T07:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: URL Display</title>
      <link>https://community.sap.com/t5/technology-q-a/url-display/qaa-p/5395230#M2013632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
for (int j = 0; j &amp;lt; PatResult.size(); j++)
{
  result = (PAT) PatResult.get(j);
  element = wdContext.nodeElements().createAndAddElementsElement(); 
  /* in old releases use: createElementsElement() + addElement() */
  element.setURL(result.getURL());
  element.setURLLabel(result.getDLOBJTITLE());
}
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Armin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 08:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/url-display/qaa-p/5395230#M2013632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T08:38:40Z</dc:date>
    </item>
  </channel>
</rss>

