Formating the wcmListElement Link?

I would like to append a url query string parameter to the end of a url/link
that is part of a static list.
My static list has two elements: myID and myLink
For example, here's what my static list data file looks like:
<wcm:list name="myStaticList">
<wcm:row>
<wcm:element name="myID">12345</wcm:element>
<wcm:element name="myLink"><a
href="[!--$wcmUrl('link','myDatafile1')--]">Product 1</a></wcm:element>
</wcm:row>
<wcm:row>
<wcm:element name="myID">22222</wcm:element>
<wcm:element name="myLink"><a
href="[!--$wcmUrl('link','myDatafile2')--]">Product 2</a></wcm:element>
</wcm:row>
</wcm:list>
Here is my Region Template script that loops through the static list:
<!--$wcmListStart("myStaticList")-->
<!--$wcmListIndex = 0-->
<!--$wcmListNumRows = wcmListRowCount()-->
<table border=1>
<!--$loopwhile wcmListIndex < wcmListNumRows-->
<tr>
<td><!--$wcmListElement("myID", wcmListIndex)--></td>
<td><!--$wcmListElement("myLink", wcmListIndex)--></td>
</tr>
<!--$wcmListIndex = wcmListIndex + 1-->
<!--$endloop-->
</table>
<!--$wcmListEnd("myStaticList")-->
I want to dynamically append the myID number to the end of the myLink url. So
that for example my final link would look like this:
http://myserver.com/site/myDatafile1?id=12345
The data files for this list fall into a replaceable region on the secondary
layout page which uses a custom component on part of it to run a query based on
the incoming id. So I need the id on the url.
What I'm trying to do seems simple, but I'm not sure how to do this. This is on
Site Studio 10gR4.
Edited by: ucm04 on Mar 22, 2011 8:41 PM

You need to do something slightly fancy, there... The element "myLink" is stored as HTML, something like this:
&lt;a href="http://server/foo/bar"&gt;Product 1&lt;/a&gt;
So... in order to make this work, you need to do some search-and-replace... Something like this should be close:
<!--$myID = wcmListElement("myID", wcmListIndex)-->
<!--$myLink = wcmListElement("myLink", wcmListIndex)-->
<!--$myNewLink = strReplace(myLink, "\"&gt;", "?id=" join myID join "\"&gt;")-->
<!--$myNewLink-->
You get the picture... replace the end-quote and end-angle-bracket with your parameter and then re-close with and end quote and angle bracket.

Similar Messages

  • Some worksheets missing the format and stoplight link in viewer

    I have a set of workbooks that are pretty simple. Each has from 1 to 4 worksheets. I have one workbook where two of the worksheets when run through viewer do not show a format or stoplight link, but the other two do show the links. Is there something that blocks these links from being displayed?

    This issue occurred in our system too.
    We are running Oracle BI 10.1.2 on a Windows 2003 Server machine. The "format" and "stoplight" link suddenly disappeared from Disco Viewer.
    Does anybody know what can have caused this?
    ps: moreover the font of the Viewer page is smaller since this happened

  • Automatically format the look of links?

    Is there a way to automatically (not manually with a style) format the look of hyperlinks?

    Iawag43,
    I join Jeff in admiration for the shortness of your question. Unfortunately it leaves a lot to guess and since we do not like to guess what you might have meant and provide tips for any of those guessed options, we rather wait and encourage you to share more detail.
    The usual best approach is this: Tell us
    what you want to achieve (sometimes please add why you want this)
    what you tried already and what you got (or what is missing)
    - Michael

  • How to keep all text and formats the same on multiple computers?

    I'm creating a file in InDesign CS6 on my Windows computer. I keep everything on my flash drive. When I go to school, I bring my flash drive with me and open it up on the Mac computer, but then there are are compatibility issues. There seems to be missing fonts and formats but the school uses the same version of InDesign I do. Now I was told a lot of things of how to keep the fonts and formats the same (embed the links, package the files, outline the text, save as IDML). However, it is not clear to me what each of those options do, so I don't know when or why to use them. So I just want to make sure that when I bring in my file in next Monday, I won't have any missing fonts or formats. What would you suggest is the proper things to do to keep everything the same on multiple computers? And could you please explain why?

    If you want cross-paltform comaptibility limit the fonts to OpenType or Windows TrueType formats, both of which work on both Mac and PC. To avoid missing font warnings the fonts must either be installed on each computer, or they must be in a folder named Document Fonts in the same location as the .indd file they are to work with. Packaging the file will build taht folder for you.
    the rest of the stuff in your list won't help you. .idml would allow you to open on an older version, but does nothing for your situation. Embedding the links will keep you from having missing links, but so will packaging, and embedded links will make the file much larger and harder to work with.
    For goodness sake, don't even think about outlining the text. It stops being text when you do that and you can no longer edit it.
    And finally. do yourself a big favor and don't attempt to actually work on your file directly from the flash drive. Copy the whole package folder to the hard drive, work on it, then copy back. You don't want to know how many files are fatally damaged by write errors on flash drives.

  • Format of a link

    what is the format of a link?
    here is my code for wanting to set a link, but doesn't seem to work.
    <p><href ="showcookievalue.jsp"> Next Page to view the cookie value</p>

    Next Page

  • The Help Link from the Application Pages Does not Work for Peoplesoft Campus Solutions 9.0

    Hi everyone.
    I have a problem, I have been trying to set up the Help Link from the Application Pages for Peoplesoft Campus Solutions 9.0 according to the instructions given in the Document: http://docs.oracle.com/cd/E17566_01/epm91pbr0/eng/psbooks/EnablingtheHelpLinkfromApplicationPages.pdf ,  (referenced in the Doc ID 1289101.1, E-PB: How to Set Up the Context Sensitive Help with Hosted PeopleBooks using Universal Linking).
    I follow the instructions of that document carefully:
    I go to: PeopleTools -> Web Profile -> Web Profile Configuration
        2. Then I choose the Web Profile: "Development".
        3. Then Change the value for the Help URL field by entering the following URL format: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hrcs90r5 , the ctx parameter selected is the one that correspond to  the Campus Solutions (hrcs90r5) according to the Product Line Code Table (ULinkID) especified in the mentioned document.
        4. Stop the Web Domain and Clear cache.
        5. Start the Web Domain again.
    After setting up the Web Profile Configuration I test the help links, thas is why I click in the Help link in any Peoplesoft CS 9.0 Application Page (modify a person), but the next error message appears: "We're sorry, the topic you requested was not found.".
    I tried many combinations with the ctx parameters URL but it does not work yet. 
    I did the same test, but this time using the Help URL field with a HRMS ctx parameter by entering the following URL format: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hcm92pbr5 , and It works fine !!!
    According to the previous test you realize that It works with HRMS ctx parameter but not with Campus Solutions 9.0 ctx parameter,  Does anybody know what else can I do ? Am I doing anything wrong or missing? or maybe the Oracle's ctx parameter for Campus Solutions URL It is broken simply.
    Thanks for you help and feedback.

    2799444 - The page you are testing with appears to be a Workforce Administration page. Is that correct?
    The CS PeopleBooks would only work for CS pages, e.g.: try navigating to Main Menu > Campus Community > Personal Information > Add/Update a Person
    Also, you can use multiple ctx parameters:
    E.g.: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hrcs90r5&ctx=hcm92pbr5&ctx=pt852pbh2
    This way the help would work for the HR related pages like Workforce Administration, Campus Solutions pages like Campus Community and also PeopleTools pages like Web Profile Configuration. Hope this clarifies your question. Thanks!

  • Adding more Values to the Column Link in Apex

    Hi,
    Is there any possibility of adding extra or more values to the column link in Apex. I already have 3 Column Name and Values linked to a different report.
    Eg:-
    Column Link:
    Link Text : #COUNT#
    Name       Value
    DATE #DATE#
    PRICE #PRICE#
    COST #COST#
    I want to add one more Name like 'ID' and corresponding and Value #ID#.
    Please Help...
    Thanks in Advance..
    Edited by: user13561710 on Jan 10, 2011 9:20 AM
    Edited by: user13561710 on Jan 10, 2011 12:34 PM

    Thanks Varad,
    But it didn't worked, The page has option to link only 3 values.
    My Target is 'Page in this Application" not a URL.
    I used your format and if you apply changes and come back the whole thing is dissappeared and even the link to page in application is inactive.
    Is there any other way???
    Thanks
    Edited by: user13561710 on Jan 10, 2011 10:49 AM
    Edited by: user13561710 on Jan 10, 2011 12:35 PM

  • HT201250 My backup external hard drive hasn't work since I insalled Snow Leopard. Bad:(  I am still learning about my MAC and would just like to re-format the hard dive and set everything up again. I want to upgrade to Lion but can't untill I backup what

    My backup external hard drive hasn't work since I insalled Snow Leopard. Bad:(  I am still learning about my MAC and would just like to re-format the hard dive and set everything up again. I want to upgrade to Lion but can't untill I backup what I.

    Read through the links here, calm down and take your time.
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • Check and Verify USMT IMG file before formatting the system

    Hi Team,
    We are using 2 phase approach for migrating from XP to windows 8.1 U1 since we have Config manager 2012 R2. Its a refresh, replace and baremetal scneario
    So 1st TS will just do user state backup using ADK8.0 USMT and backup the data on SMP.
    2nd TS will format the system, install OS,install Apps and then restore USMT data from SMP
    I am looking for some way to check the usmt data on SMP for the system before system is formatted. Can anyone give some pointers to do that in 2nd task sequence? I want if data (img file) is not verified, system should not format and TS should fail.
    Regards,

    Hi,
    Do not use the option /c .
    If an errors occur during the capture process, the ScanState command will not continue to run and the TS will fail.
    For more information, please review the link below:
    ScanState Syntax
    http://technet.microsoft.com/en-us/library/dd560781(v=WS.10).aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I created a pdf form from a Word doc with 9 pt aerial font formatting; the text on the pdf form is aerial 9 pt, but the fields are formatted in courier 12 pt - How do I reformat the font in the fields??

    I created a pdf form from a Word doc with 9 pt aerial font formatting; the text on the pdf form is aerial 9 pt, but the fields are formatted in courier 12 pt - How do I reformat the font in the fields??

    You can set up a temporary button (or link, bookmark, etc.) and add the following JavaScript action:
    // Mouse Up script for a temporary button (or bookmark, etc.)
    // Change the font and font size for all text fields in this document
    for (var i = 0; i < numFields; i += 1) {
        var f = getField(getNthFieldName(i));
        if (f.type === "text") {
            f.textFont = font.Helv;
            f.textSize = 9;
    It also sets the font size, but you can remove that line if you don't need to do that.

  • Display image from the save link in the field

    Hi all,
    I have a image link that saved in a column and will like this picture to be displayed once user is click on the image link in the tabular format.
    However, now I am facing the problem to perform query of the record because one of the field type is image or ole. However, if I changed the image link to normal text item. I am able to perform query search on the record. My question is, can I click on the record whenever I want to see the image from the tabular form ? I prefer tabular form as I can see a lot of records in one sort. But for the image display, I will like user to clock on the specific link in order to open up the image.
    Will this possible ?
    Thanks
    Lim

    If you are saving the image path in table not the image then why don't you use the READ_IMAGE_FILE built-in (see forms help).
    What i mean is hide the actual item which is having the image location. Just create one image item from toolbar (non-database) and create one extra button in the same block to display the image then use the READ_IMAGE_FILE built-in as below in WHEN-BUTTON-PRESS-TRIGGER...
    READ_IMAGE_FILE(:path_item_name,NULL,'image_item_name');
    Preferred way would be to save the image in database then query in your form using database image.
    -Ammad

  • Receiver Mail Adapter: Formatting the mail content

    Dear All,
    I'm using a receiver mail adapter. I would like to format the content of the mail using the contents of the XML message. For example:
    XML Message
    <Order>
      <OrderID>1234</OrderID>
      <CustomerName>Sandeep Joseph</CustomerName>
      <NetValue>7467.99</NetValue>
      <Link>http://locahost:7000?OrderID=1234</Link>
    </Order>
    Mail Content
    Dear Approver,
    Please approve the Order - 1234, Customer - Sandeep Joseph
    Link: http://locahost:7000?OrderID=1234
    Thanks,
    Are there any modules which would help formatting to this extend? Or any other mechanism?
    Thanks,
    Sandeep

    The easiest means is to use XSL mapping and create the Content Type as HTML and emded the cotent within HTML tags.
    One such example is shown by Praskash in this blog,
    /people/community.user/blog/2006/09/07/email-reporting
    /people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    If you use the Mail Package option then you can also wite a UDF in your mapping that will populate the content field. For every newline you can use the java new line \n and so on.
    Regards
    Bhavesh

  • The index link does not appear in italic. What do I do wrong?

    The primary definition of the glossary term does appear in bold, but the secondary (index link) term does not appear in italic.  I also can not format the word in another color or typeface. Any ideas on how to fix this?

    Try one of your other USB ports. Be sure to insert it with the plated fingers pointing upwards.

  • Can I format the email announcement of an Acrobat Shared Review

    I use Acrobat's Shared Review feature to get approval of draft documents. Acrobat sends out an email that requests people to join the review. However, this email is in plain text and its appearance is horrible. I want to be able to format the email, doing things like putting the deadline in bold.
    Right now, I normally send the review request to myself. Then I create and format an email in Outlook, and insert a link to the review. Is there a better way?

    You can't change the email body that Acrobat composes, but you can copy what it's generated and paste it into your regular email software, where you can apply templates etc.
    Since the SR system will now only run on local shared folders or WebDAV, the content of the 'invitation' email is largely redundant anyway - you don't need the special Acrobat.com hyperlink anymore, and would have to manually add a link to the PDF.

  • Change the HTML Report format the same as TestStand 2010 SP1 in TestStand 2012

    I have a lot of test steps (~10K)  that gets executed and the indentations on HTML report format in TestStand 2012 gets too deep.  I have to slide the horizontal bar to the right to see the report when l'm in the middle.  I did not have this issue in TestStand 2010 SP1.  
    Is ther a way to change the HTML Report format (style) the same as TestStand 2010 SP1 in TestStand 2012? 

    dexrays:
    We are currently investigating this issue. In order to help us with the investigation could you post a sequence file and configuration that reproduce the problem? The configuration file is located in C:\ProgramData\National Instruments\TestStand 2012\Cfg\ModelPlugins\ResultProcessing.cfg for Windows Vista / Windows 7 or you can use the Cfg link in the TestStand 2012 installation directory. 
    You can use the Legacy Model Switcher (included in TestStand 2012) to use the legacy models instead of the new models. The legacy models are more backward compatible, however, this also means that you will not be able to use the improvements in the new models (for example, the new plug-in architecture). If this is acceptable then you can use the legacy model switcher to switch to the legacy models. The Legacy Model Switcher is located in the Start Menu under Programs->National Instruments->TestStand 2012->Tools->Compatibility. For more information on Legacy Model Switcher please read the online help.
    Thanks for your report and for your help with diagnosing this issue. 
    - Francisco

Maybe you are looking for

  • Process Failure when communicating over MODBUS using LabVIEW 2011 and DSC

    I'm currently trying to read from a PLC's holding registers using MODBUS/TCP. I've confirmed that the PLC is updating the values and responding to MODBUS communication correctly using a third party program called Modbus Poll. However, when I try to p

  • JTable manipulation

    Hello People! I have a window with 2 text boxes and a JTable. I am using a persistence model wich return my queries into a Vector, so I would like to populate my JTable with that. When I looked at the API I didn't find a way to do that that is not in

  • Why I cannot split a partition table whose partitions are in a tablespace?

    SQL> CREATE TABLE "GDRK"."LT2_701C_RANGE" 2 ( "CHAR_CODE" VARCHAR2(40), 3 "STAT_UNIT_CODE" VARCHAR2(20), 4 "ORGN_TYPE_CODE" CHAR(1) NOT NULL ENABLE, 5 "ORGN_CODE" VARCHAR2(26) NOT NULL ENABLE, 6 "ORGN_NAME" VARCHAR2(60) NOT NULL ENABLE, 7 "UUID" VARC

  • F4262

    Dear Experts, While doing payment processing through Idoc i got this error "House Bank TES1 HDFC1 is not designated as EDI partner" Please help me out Thanks & Regards, Luv

  • 1st edition touch not charging. How do I get it to charge?

    Any help with this would be greatly appreciated.