URL varible into loop list

I have a looped query that needs to receive a value from a url string, but I don't know how to reference the string variable in the loop. I get an error with my method.
?p1=open
?p2=open
?p3=open
etc. etc.
I loop through my query <cfloop from="1" to="#menu.RecordCount#" index="i">
but, I want place the url variable into the loop as well
<ul rel="#URL.p[i]#">  <!--- this gives me an error.---> I can do this <ul rel="#URL.p1#"> and it works, but i need it to function based on the p1, p2, p3 etc.
How would I reference this variable in a loop?

#URL.p[i]#
Almost.  If your url variables are named p1, p2, etcetera, the syntax is:
#URL["p#i#"]#  ... OR
#URL["p"& i]#

Similar Messages

  • How can I extract all URL's into a list from 'mm_report' file?

    I've Googled this with no luck; I have a 'mm_report' in xml format. It contains a lot of text that also includes approx 800 URL links I need to extract these URLs into a separate list. I've tried using a regular expression: href=\"([^\"]+)  in 'Find and Replace' which successfully highlights the links but now need to know how to reverse this process so it deletes [strips] all surrounding text & only leaves me with a list of all URL's in this file.
    Any advise, much appreciated.

    Hi Hans,
    here's an edited version to show just 3 links:
    <?xml version="1.0" standalone="yes" ?>
    <mm_report>
              <mm_reportname>          ResultsReport.xml</mm_reportname>
              <mm_reportdate>12/08/11 21:29:33</mm_reportdate>
              <mm_reportlocation>E:\\bond\</mm_reportlocation>
              <mm_reportitem>
                        <mm_file>www.mywebsite.com\1.html</mm_file>
                        <mm_displaystr><![CDATA[ <A HREF="javascript:openWindow('http://www.mywebsite.com/1.jpg',630,630)"><IMG...]]></mm_displaystr>
                        <mm_data mm_rangemin="23240" mm_rangemax="23342" mm_filename="E:\mywebsite.html" mm_replaced="false" mm_matchedtextdirty="false" />
              </mm_reportitem>
              <mm_reportitem>
                        <mm_file>www.mywebsite.com\2.html</mm_file>
                        <mm_displaystr><![CDATA[ <A HREF="javascript:openWindow('http://www.mywebsite.com/2.jpg',630,630)"><IMG...]]></mm_displaystr>
                        <mm_data mm_rangemin="23240" mm_rangemax="23342" mm_filename="E:\mywebsite.html" mm_replaced="false" mm_matchedtextdirty="false" />
              </mm_reportitem>
              <mm_reportitem>
                        <mm_file>www.mywebsite.com\3.html</mm_file>
                        <mm_displaystr><![CDATA[ <A HREF="javascript:openWindow('http://www.mywebsite.com/3.jpg',630,630)"><IMG...]]></mm_displaystr>
                        <mm_data mm_rangemin="23240" mm_rangemax="23342" mm_filename="E:\mywebsite.html" mm_replaced="false" mm_matchedtextdirty="false" />
              </mm_reportitem>
              <mm_reportitem>
                        <mm_file>www.mywebsite.com\4.html</mm_file>
                        <mm_displaystr><![CDATA[ <A HREF="javascript:openWindow('http://www.mywebsite.com/4.jpg',630,630)"><IMG...]]></mm_displaystr>
                        <mm_data mm_rangemin="23240" mm_rangemax="23342" mm_filename="E:\mywebsite.html" mm_replaced="false" mm_matchedtextdirty="false" />
              </mm_reportitem>
    </mm_report>
    I would like this to return just:
    http://www.mywebsite.com/1.jpg
    http://www.mywebsite.com/2.jpg
    http://www.mywebsite.com/3.jpg
    Thanks.

  • I want to assign the Url of a Sharepoint list page to a Constant, and I am using it into User Control navigate Url.

    I want to assign the Url of a Sharepoint list page to a Constant, and I am using it into User Control navigate Url.
    But it is Not working there , Could you Please Suggest me the Better way..
    Regards
    Nitesh

    Your question isn't clear. Can you explain what you're trying to do and what you've attempted?

  • Uploading multiple documents into sharepoint list item with REST in sharepoint 2013 using content editor web part :

    hi ,
    i am trying to upload multiple document files into sharepoint list item. I followed below link for implementaion.
    http://techfindings-prem.blogspot.in/search/label/jquery.multifilejs
    It was working for sharepoint hosted app.
     This complete code is written within content edito web part.
    It was working when i was in root site collection with below change (hard coded the root level url) in code in "UploadFile" function.
    var scriptbase = "http://servername" + "/_layouts/15/";
                console.log(' File size:' + bytes.length);
                $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    But the issue came in picture when i was working with the other site collection instead of root one. The url was like below.
    "http://servername/sites/cpg/". This time i need to be there within "cpg" site collection. 
    Now if i hard code the url as i did above my code gets break here while come to below line
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
    I am getting error when i used below code:
    var scriptbase = "http://servername" + "/_layouts/15/";
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    Please hekp in this case. This complete code is written within content edito web part. 
    Regards:
    Sanjay Joshi

    Hi,
    According to your post, my understanding is that you have an issue about upload multiple documents files into library vai REST API.
    As you have said, you have used the hard code url in your code.
    How about use the _spPageContextInfo.webAbsoluteUrl method to get the url?
    I have used this method to get the url, then use the code in the article you have pasted within a content editor web part to upload the files.
    You can replace the hard code url with the _spPageContextInfo.webAbsoluteUrl method, then check whether it works.
    Thanks,
    Jason
    Jason Guo
    TechNet Community Support

  • Help needed in making a Recursive loop( loops into loops)

    Hi i have a situation, i need to make loop into loop into loop....undecided loop.
    i have a object list which are parent.........eg.
    i query to get my 1st list is A, B and C....i loop it to display in table
    while looping i query A to get its child AA, AB, and AC, i loop it in table..
    while looping i query AA to get its child AAA, AAB and AAC...
    i have to check for the child till it has child level donw level...but i dont know how can i make a dynamic loop...i cant write a loop it for 15 to 20 .
    Is there any way to make a recursive loop so tht it checks for child into child.
    thanks

    my code is such......
    Corres[] objCorresBean = correspondence.getCorrespondence(objectId);
    for (int i = 0; i < objCorresBean.length; i++) {
    CorrespondenceBean corresBean = objCorresBean;
    String parent_object_id = corresBean.getObjectId();
    childCorresBean = correspondence.getChildCorrespondence
    (parent_object_id);
    for (int j = 0; j < childCorresBean.length; j++) {
    CorrespondenceBean childBean = childCorresBean[j];
    String child_object_id = childBean.getChildObjectId();
    may be child_object_id have some childrens.......i want to make it recursive

  • By Default All Value Into Select List,If Select % In select List

    Hi ,
    i have created application process to extract state name in select list based on city name.
    Now i need if i don't have city name and i have select % into City Name select List then All State Name Should Come into Select List.
    Right Now if i select % into select List then It show me Blank In to state Name Select List.
    How can i extract All State Name if i select % Into Select List.
    My Application Process
    BEGIN
      OWA_UTIL.mime_header ('text/xml', FALSE);
      HTP.p ('Cache-Control: no-cache');
      HTP.p ('Pragma: no-cache');
      OWA_UTIL.http_header_close;
    htp.prn('<data>');
       HTP.prn ('<select>');
       FOR c IN (select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND C.CODE =:SELECT5)
    LOOP
      HTP.prn ('<option value="' || c.CODE || '">' || c.NAME || '</option>');
       END LOOP;
       HTP.prn ('</select>');
    htp.prn('</data>');
    END;My City Name Table
    CREATE TABLE  "CITY_MAS"
       (     "CODE" VARCHAR2(3) NOT NULL ENABLE,
         "NAME" VARCHAR2(1000) NOT NULL ENABLE,
         "STATE_CODE" VARCHAR2(3) NOT NULL ENABLE
            )My State Name Table
    CREATE TABLE  "STATE_MAS"
       (     "CODE" VARCHAR2(3) NOT NULL ENABLE,
         "NAME" VARCHAR2(50) NOT NULL ENABLE
    /How can i do this.
    Thanks
    Edited by: 805629 on Jan 25, 2011 2:06 AM

    select S.NAME,S.CODE from STATE_MAS S join CITY_MAS C on (C.STATE_CODE=S.CODE)If you join two table you must have some equal data between this tables. and define it on your sql. Else you join will be cartesian join. if you dont want use this sql then create view
    create view TEST1 as (
    select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE
    select * from test1 where  C.CODE =:SELECT5 OR :SELECT5 = '%' Edited by: Adigozalov Gurban on Jan 25, 2011 3:46 PM

  • Append xml node into a list

    Hi,
    In an embedded sub process with looping logic, we have a db adapter call.
    We are trying to insert the single response object from each of the db adapter call into a list.
    Problem we are facing is the list is not able to append the new db response into the list.
    AppendToList is not of help. XSLT construct copy-to was not of help.
    Using the following three messages
    Msg1: - Loop Interation 1
    <elementCollection>
    <element>aaa</element>
    </elementCollection>
    Msg2: - Loop Interation 2
    <elementCollection>
    <element>bbb</element>
    </elementCollection>
    Msg3: - Loop Interation 3
    <elementCollection>
    <element>ccc</element>
    </elementCollection>
    to be inserted into the following message
    Result: - After all the iterations
    <elementCollection>
    <element>aaa</element>
    <element>bbb</element>
    <element>ccc</element>
    </elementCollection>
    Any help/pointers will be appreciated.
    Edited by: 905033 on Jul 4, 2012 10:32 PM
    provided sample messages
    Edited by: 905033 on Oct 23, 2012 2:55 AM

    Please see the transformation bellow... I've built a quick sample and it worked for me.
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    https://forums.oracle.com/forums/ann.jspa?annID=893
    <xsl:stylesheet version="1.0"
      <xsl:param name="Variable_2"/>
      <xsl:param name="Variable_3"/>
      <xsl:template match="/">
        <ns0:elementCollection>
          <xsl:for-each select="ns0:elementCollection/ns0:element">
            <ns0:element>
              <xsl:value-of select="."/>
            </ns0:element>
          </xsl:for-each>
          <xsl:for-each select="$Variable_2/ns0:elementCollection/ns0:element">
            <ns0:element>
              <xsl:value-of select="."/>
            </ns0:element>
          </xsl:for-each>
          <xsl:for-each select="$Variable_3/ns0:elementCollection/ns0:element">
            <ns0:element>
              <xsl:value-of select="."/>
            </ns0:element>
          </xsl:for-each>
        </ns0:elementCollection>
      </xsl:template>
    </xsl:stylesheet>

  • Bulk Import into contact list error.

    Hi,
    We are testing out the bulk import into contact list feature and we are getting an error that we can't resolve.  We followed the directions from the documentation http://topliners.eloqua.com/docs/DOC-6918
    Here's the sample request we are making:
    URL: https://www02.secure.eloqua.com/api/bulk/2.0/contacts/imports
    Request Header:
    Authorization: [our token]
    Content-Type: application/json
    Request Body:
      "name": "test",
      "fields": {
        "emailAddress": "{{Contact.Field(C_EmailAddress)}}"
      "syncActions": [
          "action": "add",
          "destination": "/contacts/lists/63"
      "identifierFieldName": "emailAddress",
      "isSyncTriggeredOnImport" : "true"
    Response Body:
        "failures": [{
            "field": "destination",
            "stackTrace": [{
                "field": "syncActions"
            "value": "/contacts/lists/63",
            "constraint": "ML Statements must have a ContactList root (see http://topliners.eloqua.com/docs/DOC-4298 for details) (when action = add)."
    Is there a step we are missing? 
    Thanks for the help.

    Hi Benny,
    In syncActions, instead of: "destination": "/contacts/lists/63", please try: "destination": "{{ContactList[63]}}".

  • Videophone example, XML result into a list?

    In the video phone application, the reg.cgi appears to ouput a list of 'friends' in xml format
    (from regcgi)
    for f in friends:
        print "\t<friend>\n\t\t<user>%s</user>" % (xml.sax.saxutils.escape(f), )
        c = db.cursor()
        c.execute("select m_username, m_identity from registrations where m_username = ? and m_updatetime > datetime('now', '-1 hour')", (f, ))
        for result in c.fetchall():
            eachIdent = result[1]
            if not eachIdent:
                eachIdent = ""
            print "\t\t<identity>%s</identity>" % (xml.sax.saxutils.escape(eachIdent), )
            if f != result[0]:
                print "\t\t<registered>%s</registered>" % (xml.sax.saxutils.escape(result[0]), )
        print "\t</friend>"
    and the flash app appears to get the results as follows
    (from httpmanager)
    else if (result.result.hasOwnProperty("friend"))
                        // party query response
                        remote = result.result.friend as Object;
                        if (remote.hasOwnProperty("user") && remote.hasOwnProperty("identity"))
                            var identityString:String = remote.identity
                            var userString:String = remote.user;
                            var r:IdManagerEvent = new IdManagerEvent("lookupSuccess", userString, identityString);
                            dispatchEvent(r);
    and it places a call to one of the 'friends' as follows
    (from the videophone app file)
    else if (e.type == "lookupSuccess")
                        // party query response
                        var i:IdManagerEvent = e as IdManagerEvent;
                        placeCall(i.user, i.id);   
    My query is, how would I take the full list that was returned as XML, and for example, populate a list with that data?
    How do you iterate through the list, extracting the required values and put them into a list?
    Im new to flash, and trying to get my head around how to do these simple things...
    Can anyone shed any light, as Im learning loads, but keep hitting struggling points like this as I dont have a clue how flash does these things, and dont know what to investigate... Once a pointer in the right direction is given,  a small example like this is shown, I can take it from there, and investigate/learn more.
    t

    Hi ken_from_uk,
    you can convert your xml to an array collection and you can easily iterate using for loop and access the values in the list ...You can see the code below how to convert xml to ArrayCollection...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="convertXMLtoArrayCollection()">
    <mx:Script>
      <![CDATA[
       import mx.collections.ArrayCollection;
       import mx.rpc.xml.SimpleXMLDecoder;
       private var arrayCollection:ArrayCollection = new ArrayCollection();
       private function convertXMLtoArrayCollection():void
        var xml:XML = new XML(xmlStates.toString());
        var xmlDoc:XMLDocument = new XMLDocument(xml);
        var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
        var resultObj:Object = decoder.decodeXML(xmlDoc);
        if(resultObj.states.state is ArrayCollection)
         arrayCollection = resultObj.states.state as ArrayCollection;
        else if(resultObj.states.state is Object)
         arrayCollection.addItem(resultObj.states.state);
      ]]>
    </mx:Script>
    <mx:XML xmlns="" id="xmlStates">
      <states>
          <state>
              <name_state>State x:</name_state>
              <code_state>X</code_state>
              <cities>
                  <city>
                      <name_city>City One</name_city>
                      <population_city>20000</population_city>
                  </city>
                  <city>
                      <name_city>City Two</name_city>
                      <population_city>10000</population_city>
                  </city>
                  <city>
                      <name_city>City Three</name_city>
                      <population_city>80000</population_city>
                  </city>
              </cities>
          </state>
          <state>
              <name_state>State y:</name_state>
              <code_state>X</code_state>
              <cities>
                  <city>
                      <name_city>City Four</name_city>
                      <population_city>50000</population_city>
                  </city>
                  <city>
                      <name_city>City Five</name_city>
                      <population_city>40000</population_city>
                  </city>
                  <city>
                      <name_city>City Six</name_city>
                      <population_city>70000</population_city>
                  </city>
              </cities>
          </state>
      </states>
    </mx:XML>
    </mx:Application>
    Thanks,
    Bhasker Chari

  • Text File into a List?

    I have a text file of an English-French dictionary.
    I want to enter an english phrase into a text box
    - search through the list(dictionary)
    - and output the French phrase in a separate text box.
    I want to search through the dictionary(list) for an english
    phrase e.g. "accost" and output the corresponding french phrase
    "accoster" to a text box.
    Here is the format that the dictionary is in
    English first followed by french followed by word type
    accordions accorde/ons[Noun]
    accords accords[Noun]
    accost accoster[Verb]
    account compte[Noun]
    Is it possible to add a text files contents into a list?
    Imagine manually typing all the contents.
    Thanks,
    Jack

    Please see the replies to this cross-post at
    http://director-online.com/forums/read.php?2,27554

  • How to get values/data stored in the database into a list-item.

    how to get values/data stored in the database into a list-item.
    i tried to make a list item without any values assigned to it...but i got the below error.
    FRM-30191: No list items defined for required poplist.
    or
    FRM-32082: Invalid value for given item type.
    List EMPNO
    Item: EMPNO
    Block: EMP
    Form: MODULE5
    FRM-30085: Unable to adjust form for output.
    then according to some docs, i tried the the following for the trigger
    when-new-form-instance
    declare
         rg_name varchar2(40) := 'emp_rec';
         status number;
         groupid recordgroup;
         it_id item;
    begin
         it_id := Find_Item('empno');
         groupid := create_group_from_query(rg_name, 'select empno from emp');
         status := populate_group(groupid);
         populate_list(it_id, groupid);
    end;
    but yet didnt work... :(
    so how the heck do i get values fetched from the database table into the list item?

    for list items you need to values in the record group, one is the shown value and one is the returned value.
    Check out the online help for the populate_list built-in.
    You'll need something like select ename,ename from emp as the record group query.

  • I pull fiftyfour bytes of data from MicroProcessor's EEPROM using serial port. It works fine. I then send a request for 512 bytes and my "read" goes into loop condition, no bytes are delivered and system is lost

    I pull fiftyfour bytes of data from MicroProcessor's EEPROM using serial port. It works fine. I then send a request for 512 bytes and my "read" goes into loop condition, no bytes are delivered and system is lost

    Hello,
    You mention that you send a string to the microprocessor that tells it how many bytes to send. Instead of requesting 512 bytes, try reading 10 times and only requesting about 50 bytes at a time.
    If that doesn�t help, try directly communicating with your microprocessor through HyperTerminal. If you are not on a Windows system, please let me know. Also, if you are using an NI serial board instead of your computer�s serial port, let me know.
    In Windows XP, go to Start, Programs, Accessories, Communications, and select HyperTerminal.
    Enter a name for the connection and click OK.
    In the next pop-up dialog, choose the COM port you are using to communicate with your device and click OK.
    In the final pop
    -up dialog, set the communication settings for communicating with your device.
    Type the same commands you sent through LabVIEW and observe if you can receive the first 54 bytes you mention. Also observe if data is returned from your 512 byte request or if HyperTerminal just waits.
    If you do not receive the 512 byte request through HyperTerminal, your microprocessor is unable to communicate with your computer at a low level. LabVIEW uses the same Windows DLLs as HyperTerminal for serial communication. Double check the instrument user manual for any additional information that may be necessary to communicate.
    Please let me know the results from the above test in HyperTerminal. We can then proceed from there.
    Grant M.
    National Instruments

  • Reading from a txt file and storing into a list

    i want to read a list of counters(String) which are there in a flat txt file and store them into a List.
    Any suggestion will be helpful
    sanjeev

    Try this
    try {
              FileReader fr = new FileReader("C:/abc.txt");
              BufferedReader br = new BufferedReader(fr);
              String record = null;
              while ((record = br.readLine()) != null)
                   System.out.println(record );     
              

  • HOW TO  upload OF URL ITEM INTO FOLDER programmatically

    Does anybody know how to upload URL item into folder
    programmatically either using sql command or PL/SQL.
    Please help...because I need to upload about 10,000 of URL link
    into a folder. Doing this one by one might not practical.
    Thanks.

    Please refer to the content area APIs. These are documented in
    the PDK-PL/SQL.
    Regards,
    Jerry

  • Using the URL to filter a list

    All,
    I am using the URL to filter a list, for example, FilterField1=Writer&FilterValue1=Chris%20Tobey.
    In this method, we need to provide the FilterField which is the column name. Can we do the filter for all column? For example, I would like to search all items in the list which
    contains "hello" in any column by using the URL?
    Thanks

    Hi,
    The query string in URL won’t be able to meet your requirement.
    The OOTB
    Search box for a list can be found above the list view, it can search items contains the keyword in the current list:
    http://community.office365.com/en-us/f/154/t/171565.aspx
    Or if you want to do more customization, work with
    Search API programmatically would be required:
    http://msdn.microsoft.com/en-us/library/microsoft.office.server.search.query.keywordquery.aspx
    http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2013/01/03/how-to-use-the-sharepoint-2013-search-keywordquery-class.aspx
    Here is a code demo in this thread can
    search items in a particular document library with specific keyword
    for your reference:
    http://social.technet.microsoft.com/Forums/office/en-US/41699f4b-f1a5-4449-b121-01fbb862436f/how-to-fetch-item-from-document-library-using-query-search-in-sharepoint-2010-?forum=sharepointdevelopmentprevious
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • Macbook freezes, wont open programs, keyboard cuts out, sometimes get error -108 opening photoshop

    I'm using a macbook pro 2010 8gb ram, about 80gb free space on hard drive.. recently programs have been freezing, the keyboard will randomly cut out and stop working I wont be able to click on programs in the sidebar and they wont open it takes a har

  • Best Practice for storing a logon to website in a desktop java app

    Hoping someone well versed in java related security best practices can point me in the right direction. I have a small java PC application that uses the Soap API to send various data to a 3rd party. Currently I am storing the logon credentials for th

  • Parental Controls do not work.

    I recently setup a computer for my boss' daughter and in doing so enabled the parental controls. Everything appeared to be working correctly until I got a call tonite. When I first setup the parental controls feature, I gave my boss' daughter access

  • Itunes Store will not load correctly.

    I only seem to be having this problem since I updated iTunes on my computer. For some reason, iTunes Store either will not load or will load incorrectly. The progress bar at the top of the screen only goes about halfway, and if the Store does load, t

  • AGV 7.5

    I have the BEFW11S4 router, the problem I am having is that I can not use the my lap top if I have my anti virus along with the fire wall on line at the same time. How do I get them to work together. Thanks in advance for any help you can give me. fc