Dynamic Generation of Back URL

I opened a tar on the dynamic generation of a back URL because the information on the forums has been incomplete and without solid examples for my needs. They provided the following information:
"So far I have found a few methods to achieve what you are wanting to do....
With the plsql web toolkit there is a function called owa_util.get_cgi_env. You can use this to grab many different parameters. You could use this function to reconstruct the actual url that you are on.
For example, request_protocol, server_name, server_port, script_name, and path_info could all be concatenated to create the original url.
Or you can also use the owa_util.get_cgi_env function in the called screen to grab the url of the calling url. So essentially the url you want to go back to. This parameter value is called HTTP_REFERER and it contains the complete url. The only issue with this one is that you can not reference it until you are already in the second page. Therefore you could not pass it to that second page when building the page.
Documentation on the above is included in the 9iAS documentation set since it is part of the plsql toolkit and not specific to Portal. The url to this documentation is:
http://otn.oracle.com/docs/products/ias/doc_library/1022doc_otn/apps.102/a90101/toc.htm
I will continue searching for anything specific to Portal and its api's but up to now I have not seen anything specific to this."

Dear Kishore,
Write the following code in the wdDoModifyView(...) method..and replace YourModelNode with actuals
if (firstTime) {
// Get the reference to the UI rool elemnet
                      IWDTransparentContainer rootElement = (IWDTransparentContainer) view.getRootElement();
// Set the layout manager to MatrixLayout
     rootElement.createLayout(IWDMatrixLayout.class);
// Get the metadata of the node
     IWDNodeInfo nodeInfo = wdContext.getYourModelNode().getNodeInfo();
     for (Iterator iter = nodeInfo.iterateAttributes(); iter.hasNext();) {
          IWDAttributeInfo attributeInfo = (IWDAttributeInfo) iter.next();
          IWDLinkToURL LinkToURL=(IWDLinkToURL) view.createElement(IWDLinkToURLclass,attributeInfo.getName() +"LinkToURL");
          LinkToURL.setText(attributeInfo.getName());
                                          LinkToURL.setReference(attributeInfo.getReference());
          LinkToURL.createLayoutData(IWDMatrixHeadData.class);
          // Add the LinkToURL to the UI
          rootElement.addChild(LinkToURL);
Hope it helps!
Warm Regards
Upendra Agrawal

Similar Messages

  • Dynamic generation of .cex for window classes

    subject :dynamic generation of .cex for window classes:
    Hi,
    I want to generate windows classes (cex export file) with tool
    code. I don't have any problem with non windows attributes.
    But I can't generate windows attributes: the export file contains a
    serialized object but I don't know which object.
    thank you for your help.
    Corinne
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    value="Button_#{myBean.id}"This is perfectly valid syntax.
    But you're talking about "dynamic generation of IDs". Don't you instead mean something like:
    id="Button_#{myBean.id}"?
    If so, then yes, using EL in the ID attribute is prohibited. Also see the TLDDOC [1]. Why do you want to do it anyway? The f:attribute might be more useful for you [2].
    [1] http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/
    [2] http://balusc.blogspot.com/2006/06/communication-in-jsf.html

  • How to display a dynamic image file from url?

    Hey,I want to display a dynamic image file from url in applet.For example,a jpg file which from one video camera server,store one frame pictur for ever.My java file looks like here:
    //PlayJpg.java:
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    public class PlayJpg extends Applet implements Runnable {
    public static void main(String args[]) {
    Frame F=new Frame("My Applet/Application Window");
    F.setSize(480, 240);
    PlayJpg A = new PlayJpg();
    F.add(A);
    A.start(); // Web browser calls start() automatically
    // A.init(); - we skip calling it this time
    // because it contains only Applet specific tasks.
    F.setVisible(true);
    Thread count = null;
    String urlStr = null;
    int sleepTime = 0;
    Image image = null;
    // called only for an applet - unless called explicitely by an appliaction
    public void init() {
                   sleepTime = Integer.parseInt(getParameter("refreshTime"));
              urlStr = getParameter("jpgFile");
    // called only for an applet - unless called explicitely by an appliaction
    public void start() {
    count=(new Thread(this));
    count.start();
    // called only for applet when the browser leaves the web page
    public void stop() {
    count=null;
    public void paint(Graphics g) {
    try{
    URL location=new URL(urlStr);
    image = getToolkit().getImage(location);
    }catch (MalformedURLException mue) {
                   showStatus (mue.toString());
              }catch(Exception e){
              System.out.println("Sorry. System Caught Exception in paint().");
              System.out.println("e.getMessage():" + e.getMessage());
              System.out.println("e.toString():" + e.toString());
              System.out.println("e.printStackTrace():" );
              e.printStackTrace();
    if (image!=null) g.drawImage(image,1,1,320,240,this);
    // called each time the display needs to be repainted
    public void run() {
    while (count==Thread.currentThread()) {
    try {
    Thread.currentThread().sleep(sleepTime*1000);
    } catch(Exception e) {}
    repaint(); // forces update of the screen
    // end of PlayJpg.java
    My Html file looks like here:
    <html>
    <applet code="PlayJpg.class" width=320 height=240>
    <param name=jpgFile value="http://Localhost/playjpg/snapshot0.jpg">
    <param name=refreshTime value="1">
    </applet>
    </html>
    I only get the first frame picture for ever by my html.But the jpg file is dynamic.
    Why?
    Can you help me?
    Thanks.
    Joe

    Hi,
    Add this line inside your run() method, right before your call to repaint():
    if (image != null) {image.flush();}Hope this helps,
    Kurt.

  • Got a replacement Ipod Touch 3rd Generation and backed up to store version on computer and now it will not work. Goes into restore mode but cant restore. Any suggestions?

    Got a replacement Ipod Touch 3rd Generation and backed up to store version on computer and now it will not work. Goes into restore mode but cant restore. Any suggestions

    What happens when you try to restore? Error message?

  • Dynamic Image (.gif) from URL into adobe Form by SFP

    Hi all
    I post the comment of Shamila because I have the same problem
    I need to place an image in the Adobe form based on the url.
    I have written the following formcalc script in the image field form ready action
    ImageField1.value.image.href = "http://www.adobe.com/imageshome/pdfgift_home.gif"
    But when i view the form , the image field is empty, and when i click on the blank space of the image field, a popup appears to select the image............
    How can i show the image from url in the form..........
    Regards,

    Hello,
    have you checked these basics documents?
    When you need to send a picture into the offline form: another image question - using Regular ABAP not web dynpro and Display a logo dynamically in adobe form
    Where to start with scripting: http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    Also try: Re: Dynamic R/3 Image URL in Adoeb Form
    regards, Otto

  • Dynamically passing text and url-based images as an input parameter to cf8 report builder

    I'm unsuccessfully trying to dynamically pass text and url-based images to a group footer or the detail section via an input parameter or even hardcoded. The field has the attribute 'XHTML Text Formating' set to True. The following are failed samples of a simplified value:
    "<img height=’300’ alt=’Document’ width=’300’ src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    or
    "<img src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    This just results in the above text being output. The end result would have various text and images from a database as input by a user, thus the reason I cannot just use the hyperlink information attribute as I could if it were a single known image. I tried rtf and pdf report types. Ideas?

    HTH,
    Thanks. I'll keep that in mind, although I don't know how many images my user might need or what sizes so that might be tricky.
    Since my target output is rtf so that MS Word can be used to edit the result, I added a pagebreak to a MS Word doc and used the resulting html source to replace the rich text editor source code for the page break, but that did not help either. The page break was so a user could add an image later. Something is wrong with the Report Builder related to intepreting XHTML, especially anything that has an attribute, including URL-based image links. I hope they try to provide another update before CF9. I doubt my client will be going to CF9 for some time, since they are just completing the migration to CF8.
    BrianO

  • Content generation error: invalid url for web content overlay

    Hi,
    I am having an error message " content generation error: invalid url for web content overlay" when I want to upload the article.
    I don't have any link with that article and this is my 1st time having this kind of error. I am using indesign CC
    Please help.
    Thanks,
    Rush O

    I’ve found watching the process helpful to narrow down the page.
    Working off a duplicate of the file, delete one layer at a time until you figure out what layer the problem is on.
    From there it’s a bit easier to narrow down.

  • What is the right Call Back url for twitter OAuth in BlackBerry eclipse plugin 9550 simulator

    Hi friendz
    Being optimistic to get the proper help regarding the "Call Back" Url for twitter, I'm here. Actually I'm implementing 
    "TwitterAPIME-RIM-OAuthSample" for twitter. Here I am feeling helpless when callback url has been asked.
    I read somewhere that call back url is not required for java me. But here after putting my credentials in web view, I can't return back to my app as I'm passing "" in callback url param(as I think).
    How to handle this thing... please suggest me??

    CallBack URL is the url where the twitter redirects after successful authentication. The callback url can be a webpage that builds in any web tech like php etc. for the application. Then the mobile app moves to that redirected page after successful authentication. We can set www.google.com as Callback Url. In that case we need to check the url in the onPageStarted method of the WebViewClient as to finish the webview otherwise it redirects it to www.google.com.
    if (uri != null && uri.toString().startsWith(TwitterConnector.CALLBAC​K_URL)) {
     finish();

  • HSDIO Dynamic Generation of Digital Signals on Separate Non-sequential Ports Using the PCI-6542

    I am using the PCI-6542 trying to generate serial data timing on separate non-sequential ports 8, 9 and 16 as shown in the attached Digital Waveform Editor JPEG file
    I would like to be able to send binary data to ports (lines) 8, 9 and 16 without disturbing the other 29 ports on the PCI-6542 board. Looking on various HSDIO examples I don't see the capability of being able to send dynamic generation in binary format to a group of ports or being able to mask out non-timing involved ports like you can in static generation. 
    Was anyone successful in implementing this type of serial binary timing waveforms using the PCI-6542 board.
    Please advise.
    Thanks

    Hi Nycor,
    Outputting your data on lines that you specify is indeed possible on HSDIO cards.  You just need to list the channels you want to use in your Channel List when call the niHSDIO Assign Dynamic Channels VI.  For example, for lines 8, 9, and 16, you would input 8,9,16 into the Channel List.  Order in this list matters, so the first waveform in your file will correspond to line 8, second waveform to line 9, etc.  If your waveforms are out of order in your file, then rearrange the Channel List accordingly.
    One of my colleagues here is actually working on an example that implements this; I believe it may be for an open service request that you have.  I will speak with her when she is done and see if there is some example code we can provide that demonstrates this.  If you have further questions, I am happy to help out here, but you will likely get faster response through your open service request via phone and email.
    Regards,
    Chris E.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • How to render image dynamically in ADF using URL

    Hi all,
    I have a requirement where i need to render the images dynamically using the url. As the url are of the IPM Application and each of the url is associated to a particular image of a particular document. I have tried making the URL Data Control but couldn't able to get the Image as per the document,even the image is not being rendered onto the page.I want the whole IPM console to be rendered on my jspx page.
    Note- It is not a wsdl url.
    Please suggest how should i implement this
    thanks in advance

    if you decompile the imaging.ear file, there is a web.xml file which you can add the following parameter:
    <context-param>
    <param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name>
    <param-value>never</param-value>
    </context-param>
    or take a look at      Receiving "Warning: Unable to load content in a frame. Frame content will load at the top level." When Trying to Use the <af:inlineFrame> Component [ID 1266770.1] on Oracle Support.
    Make sure you take a copy of the imaging app before you make changes. You can then upload back through the weblogic console.
    Sudi

  • Back url from form?

    Hello.
    I have: a link, a report, a form
    When I set the link on a column on the report, it calls the form. (I also have edited the link so that the primary key columns are passed as parameters to the form to provide UPDATE/DELETE.)
    What I want to do is: Once the user submits the form, the form should redirect to the page where the report was displayed, and pass the parameters that were on that previous page. (basically, go back to where the user came from--exact url, which shows the update on the report) Does anyone know how to do this?
    The best solution would be for the form to open on the same page, then the form automatically refreshes the same url. Any ideas?
    (I have been looking at it too long, need fresh eyes/thoughts.!)
    Thanks!
    Robin
    Message was edited by:
    robin.miller

    Take a look at this thread, I think it'll help you.
    How to get page url from a Dynamic Page?

  • Dynamic generation of form to show table entries

    Dear experts,
    I am aware of how to dynamically program for form generation when the layout static and is already defined in transaction SFP.
    However I have a requirement wherein the form layout is not available . But the form should get generated dynamically and display values from a table in a simple field - value format. ( Just the way SE16 displays table content , the only difference being output should be in a PDF)
    Any pointers how I can progress on this.
    Appreciated your inputs.
    Thank you.
    With regards,
    Sahir.

    How does default checked checkboxes work for checkboxes of type String[]?
    The following code works, but it is for form property of type String, instead of String[]:
    <form-property name="prop" type="java.lang.String" />
    form.set("prop", "true");
    <html:checkbox property="prop" value="true"> // checked by defaultThis is what I tried for type String[], modelling it off the ideas of the above code, but it does not work:
    <form-property name="prop" type="java.lang.String[]" />
    String[] propArray = {"1", "4"};
    form.set("prop", propArray[]);
    <html:checkbox property="prop" value="1">  //should be checked by default, but is not
    <html:checkbox property="prop" value="2">
    <html:checkbox property="prop" value="3"> 
    <html:checkbox property="prop" value="4"> //should be checked by default, but is notWhy does it work for String but not String[]? How do I make it so that they are checked by default for type String[]?

  • Issue passing dynamic paramters using GO URL in OBIEE 11g

    Hi All,
    I am trying to implement a GO URL and pass 6 dynamic paramters to the target dashboard page.
    The issue is that, When I navigate from the column which is having GO URL, It is just passing the first parameter among the 6 parameters.
    URL:
    '<a href=http://servername/analytics/
    saw.dll?GO&path=/shared/xxx/aa%20bb/report%20one
    &Action=Navigate&P0=6&P1=eq&P2="Fact%20-%20xxx".ID1&P3='||CAST("Dim - Abc"."One ID" AS CHAR)||'&P4=eq&P5="Fact%20-%20xxx".ID2&P6='||CAST("Dim - Abc"."Two ID" AS CHAR)||'&P7=lt&P8="Fact%20-%20xxx".DATE&P9='||CAST(TIMESTAMPADD(SQL_TSI_DAY,1,"Time"."Day") AS CHAR)||'&P10=eq&P11="Fact%20-%20xxx"."Three%20ID"&P12='||CAST("Dim - Abc"."Three ID" AS CHAR)||'&P13=ge&P14="Fact%20-%20xxx".DATE1&P15='||CAST(TIMESTAMPADD(SQL_TSI_DAY,1,"Time"."Day") AS CHAR)||'&P16=eq&P17="Time".Day&P18='||CAST("Time"."Day" AS CHAR)||'style="text-decoration:none;">'||"Dim - Abc.Name"||'<--/a>'
    When I try with actual values for all the 6 parameters, The parameters are being passed perfectly.
    Also I have tried passing each parameter individually in the same syntax as in the above URL and it is working fine.
    Also I have tried the new syntax of GO URL i.e.,
    '<a href=http://servername/analytics/
    saw.dll?GO&path=/shared/xxx/aa%20bb/report%20one
    &Action=Navigate&col1="Fact%20-%20xxx".ID1&val1='||CAST("Dim - Abc"."One ID" AS CHAR)||'&op1=eq&col2="Fact%20-%20xxx".ID2&val2='||CAST("Dim - Abc"."Two ID" AS CHAR)||'&op2=eq&col3="Fact%20-%20xxx".DATE&val3='||CAST(TIMESTAMPADD(SQL_TSI_DAY,1,"Time"."Day") AS CHAR)||'&op3=lt&col4="Fact%20-%20xxx"."Three%20ID"&val4='||CAST("Dim - Abc"."Three ID" AS CHAR)||'&op4=eq&col5="Fact%20-%20xxx".DATE1&val5='||CAST(TIMESTAMPADD(SQL_TSI_DAY,1,"Time"."Day") AS CHAR)||'&op5=ge&col6="Time".Day&val6='||CAST("Time"."Day" AS CHAR)||&op6=eq'style="text-decoration:none;">'||"Dim - Abc.Name"||'<--/a>'
    Even with this syntax, The issue is same that I am only able to pass the first filter.
    Anyone please help.
    Thanks in Advance.

    To avoid encoding problems use POST method. Here is js example for OBIEE 10g, but I bellieve you will find similar XML syntax in 11g.
    function getGoXML(P){
         var goXML = '<sawx:expr xmlns:sawx="com.siebel.analytics.web/expression/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawx:logical" op="and">';
         for (var i=0; i<P.length-1; i=i+2){
              goXML = goXML + '<sawx:expr xsi:type="sawx:comparison" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" op="equal">';          
              goXML = goXML + '<sawx:expr xsi:type="sawx:sqlExpression">' + P[i] + '</sawx:expr>';
              goXML = goXML + '<sawx:expr xsi:type="sawx:untypedLiteral">' + P[i+1] + '</sawx:expr>';
              goXML = goXML + '</sawx:expr>';          
         goXML = goXML + '</sawx:expr>';
         return goXML;
    function dashboardPageNav (navParams){     
         var tForm = saw.createForm("customNavForm");
         tForm.action = saw.commandToURL("Dashboard");
         saw.addHiddenInput(tForm, "PortalPath", navParams.portalPath);
         saw.addHiddenInput(tForm, "Page", navParams.portalPage);
         saw.addHiddenInput(tForm, "Action", "Navigate");
         saw.addHiddenInput(tForm, "StateAction", "NewPage");
         saw.addHiddenInput(tForm, "P1", "dashboard");
         saw.addHiddenInput(tForm, "P0", getGoXML(navParams.P));
         tForm.submit();
    dashboardPageNav({
         portalPath: '<portal path>',
         portalPage: '<page name>',
         P: new Array(                         
              '<param1 name>', '<param1 value>',
              '<param2 name>', '<param2 value>',
              '<param3 name>', '<param3 value>',
              '<param4 name>', '<param4 value>'
    });

  • HT1386 ipod touch 4th generation wont back up/itunes wont open/cant login/

    Hi we bought a ipod touch 4th generation for our daughter for her birthday, downloaded the latest version of itunes to the computer downloaded then we attached the ipod to the computer with the usb cable, it picked up the ipod said it was backing up 2 of 7 thats it hasnt moved on, so she hasnt been able to use itunes as its not syncing, also we cant access the itunes store or itunes help as it says we are not connected to the internet (we clearly are) can anybody help or give some advise, we are currently using windows 7 professional (home version) its very frustrating as the other daughter has itunes on her laptop and its working great any help would be greatly appreciated thanks, i have managed to download another programme for her to download songs onto and put onto her ipod and this works (ITUNES doesnt) thanks.

    See here for troubleshooting assistance: iOS: Troubleshooting backup issues in iTunes
    B-rock

  • Dynamic list to generate url variable

    Hello, I am using a dynamic list to pull product codes from a
    database. I then want to pass the code into a url variable when it
    goes to the results page. This is so customers can chose which code
    they want to go to a detail page about. I already have the dynamic
    list working, I just can not figure out how to embed the selected
    code into a url variable. For example I want it to do the
    following:
    sitename.com/search.php <--- here is where you start and
    make the selection then it brings you to:
    sitename.com/details.php?code=202 <---- code202 was
    selected on previous page in dynamic list.
    I know how to do it by pulling results from a database and
    generating links for each one, but I need to do it from a dynamic
    drop down list.
    Here is the coding that I was trying to use:
    Thank you for your assistance.

    Sorry, dumb error on my part. Used method=post rather then
    get.

Maybe you are looking for

  • Disjointed rollover question

    I have a floor plan of a shopping center with 24 rollover buttons.  Each button has been sliced and linked to a frame (swap image) that shows the facade of a store.  All photos (24 in all) preside in the same location on the canvas.  Here is my probl

  • Regarding types of bridging/bridges

    Hi All, I'm reading Richard Deals book for my CCNA. While i was re-reading the bridging part. I came across the below shaded lines. Do  we still use such types of bridges/bridging methods ? Is it useful to  dig into understand these type of bridging

  • Why is my history blank?

    My history has stopped working, and no longer shows or keeps the sites I have seen in either the recent history or show all history and stays blank. The address bar is unaffected though. What is wrong and how do I fix it?

  • Audio scrubbing in Encore CS4?

    It would be very helpful to have audio scrubbing, as I am trying to adjust subtle timing issues for subtitles.  Is there any way to get audio scrubbing in Encore CS4?

  • Print spooler not working since installing LinkSys WRT 160N

    Since installing my WRT160N my printers have stopped working. All printer drivers have been removed including acrobat and my fax. Even if I try reinstalling my drivers, I get the following error: Spooler SubSystem App has encountered a problem and ne