Accessing LOV in Javascript

Hi Everyone,
I'm on Apex 4.1.1 and I have this requirement.
I have a form where there are multiple select lists and radio buttons which the user uses to configure features of a particular object being created using that form.
I also have to show a text string that changes dynamically based on the currently made selections to give the users a description of what they have selected.
I have used javascript to do this and it works fine. However I need help in one feature.
I have 4 select lists that list colours. Now these colours have abbreviations (for e.g. WHITE -> WHT) which I need to add in the text description. But these abbreviations are available only in a table. I have to get these to the front end for which I thought I'll use a LOV which gets it from the table.
I want to know if there is a way to access this LOV in a page javascript. If so then how do I do it?
Any help would be appreciated.
Regards,
Arijit
Edited by: Arijit Kanrar on Feb 7, 2013 12:24 PM
Edited by: Arijit Kanrar on Feb 7, 2013 12:25 PM

Example for EMP/DEPT:
Create a PLSQL region with source:
htp.p('<script type="text/javascript">');
htp.p('var gaDepartments = ');
apex_util.json_from_sql(q'!
select deptno, dname, loc
from dept
htp.p(';');
htp.p('</script>');This will create an array stored in a global variable.
I have a tabular form with sql
select
"EMPNO",
"EMPNO" EMPNO_DISPLAY,
"ENAME",
"HIREDATE",
"SAL",
"DEPTNO"
from "#OWNER#"."EMP"I changed column "DEPTNO" to be based on an LOV so that a select list is generated and the DNAME column is used as display column.
I then bind to the onchange event
$("td[headers='DEPTNO'] select").change(function(){
   var lFind = $(this).val();
   $(gaDepartments.row).each(function(){
      if(this.DEPTNO==lFind){
         alert(this.DNAME + ' is located in ' + this.LOC);
         return false;
});This will iterate over the objects in the array until it has found the entry associated with the value now selected in the list and alert the dname and loc. Mind the capitalised member names as they are case sensitive.
Let's say i did this on a page item select list and want to affect another page item. I'd create a dynamic action which fires on change of the select list item. Execute javascript as true action:
   var lFind = $(this.triggeringElement).val();
   $(gaDepartments.row).each(function(){
      if(this.DEPTNO==lFind){
         alert(this.DNAME + ' is located in ' + this.LOC);
         $(this.affectedElements).val(this.DNAME);
         return false;
   });Set the item to be affected in the affected elements region.
This should allow you to set it up, given that you understand a bit of javascript/jquery and dynamic actions. Otherwise, set up an example on apex.oracle.com!

Similar Messages

  • Access CFC in Javascript

    Okay, so I did the whole
    <cfinvoke component="myCFC" method="init"
    returnvariable="myObj">
    Now is it at all possible to access this from
    JavaScript?

    it's no different than any other CF code.
    you can do:
    <script type="text/javascript">
    var myVariable = "#myObj.foo()#";
    </script>
    (assuming the foo() method returns a string... and that the
    code is within <cfoutput> blocks)
    but whether it's a CFC or any other CF code, you still have
    the client side (JS) / server side (CF) issues.

  • Javascript Error while accessing LOV flashlight

    Hello I am getting javascrip error and the Mouse Busy when I try to access any LOVs in selfservice OAF pages. I am on IE 7.
    Any clue how to resolve this?

    Hi Arun,
    Can you try the same project on any other machine and browser.
    Anoop

  • Change from SelectList to Popup LOV, Onchange Javascript breaks. Apex 3.2.1

    Hi,
    I have a pretty standard piece of Javascript that populates two page items based upon the result of a select list.
    I'd like to change the select list to a Pop-Up LOV, but this breaks the functionality.
    I presume that I need to use a different var get function, however, have had no luck in trialing different solutions.
    Can anyone help?
    Details Below.
    Regards-
    Ronald.
    Function Overview:
    Select List P4_PRODUCT_ID selects two product parameters: area and item, and puts them into P4_AREA_ID and P4_ITEM_ID.
    P4_AREA_ID and P4_ITEM_ID are pop up LOV's and happily accept the text input.
    I wish to change P4_PRODUCT_ID to also be a pop up LOV, but when doing so, it breaks the dynamic functionality.
    CODE:
    Select List: P4_PRODUCT_ID
    HTML Form Element Attributes: onchange="pull_multi_value(this.value)";P4 Page Header:
    You'll see that I've tried several methods, none worked. Am I using the wrong one?
    <script type="text/javascript">
    <!--
    function pull_multi_value(pValue){
    //     var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=Set_Multi_Items',0);
           var get = new htmldb_Get(null,html_SelectValue('pFlowId'),'APPLICATION_PROCESS=Set_Multi_Items',0);
    //     var get = new htmldb_Get(null,html_GetElement('pFlowId').innerHTML,'APPLICATION_PROCESS=Set_Multi_Items',0);
    //     var get = new htmldb_Get(null,html_GetElement('pFlowId').innerHTML=$v(pFlowId),'APPLICATION_PROCESS=Set_Multi_Items',0);       
    if(pValue){
    get.add('PRODUCT_ID',pValue)
    }else{
    get.add('PRODUCT_ID','null')
        gReturn = get.get('XML');
        if(gReturn){
            var l_Count = gReturn.getElementsByTagName("item").length;
            for(var i = 0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }else if(l_El.tagName == 'SPAN' &&
    l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    get = null;
    //-->
    </script> Application Process: Set_Multi_ItemsDECLARE
    v_area VARCHAR2 (200);
    v_item VARCHAR2 (200);
    CURSOR cur_c
    IS
    SELECT AREA_ID, ITEM_ID
    FROM PRODUCTS
    WHERE PRODUCT_ID = TO_NUMBER (v ('PRODUCT_ID'));
    BEGIN
    FOR c IN cur_c
    LOOP
    v_area := c.AREA_ID;
    v_item := c.ITEM_ID;
    END LOOP;
    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 ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P4_AREA_ID">' || v_area || '</item>');
    HTP.prn ('<item id="P4_ITEM_ID">' || v_item || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS
    THEN
    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 ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P4_AREA_ID">' || SQLERRM || '</item>');
    HTP.prn ('</body>');
    END;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Looking at all that code, I can suggest one way of debugging the issue(Its a bit hard to guess what went in this case,particularly when the problem could be at so many places).
    1. Run your PLSQL as an anonymous block and check if the generated XML structure is what you expect.
    2. Check Firebug Console (if you have it) if an ajax request is send when the item is changed.
    3. Print out the return XML as a string on the screen so that you can make sure it what you wanted(use alert function or append to some page element)
    4. Now try your XML parser JS section starting with the obtained XML as a static variable, trying printing out the parsed out values at different stages
    5. Setting the page items shouldn't be much of a trouble if everything else worked fine.
    Some Observations: If you are on Apex 4.0 wouldn't a Dynamic Action save you all this trouble (Two SetValue processes). Even otherwise you seem to be fetching two id's from the Ondemand process..Can't you just concatenate them with some separator and send that as the result stream(htp.p), handling them in JS would be simple using the split function. If the data is more complex you could return it as a JSON string and parse it with fewer lines of code.
    Found a problem with the code :
    get.add('PRODUCT_ID',pValue)Do you have a page item by that name(PRODUCT_ID) ? else change it to
    get.add('P4_PRODUCT_ID',pValue)and change the following in ur PLSQL process code
    PRODUCT_ID = TO_NUMBER (v ('PRODUCT_ID'));to
    PRODUCT_ID = TO_NUMBER (v ('P4_PRODUCT_ID'));But as I said earlier, Debugging it step by step might be easier.

  • LOVs and JavaScript

    Hi,
    I am trying to use LOVs created with Portal Application inside PL/SQL PDK created portlets.
    Anybody has done that?
    Also, is there a way to use JavaScript with PL/SQL PDK?
    I saw this call inside portal geberated html:
    PORTAL30.wwv_javascript.fetch_script?p_name=genlist_popup
    anybody knows how to generate it in custom portlets?
    Thank you

    Yuri,
    One of the features of the OWA toolkit is the htp package. The htp packages is used to create html from plsql. There are two procedures that you can use.
    1. htp.script
    prints html tags for a macro scripting lanugage such as JavaScript, VBScript, etc. It takes in: cscript, clanguage.
    Take a look at the package for more info.
    2. htp.p
    If you use procedure "p" you can insert html tags into your plsql code by placing the tags in quotes...
    htp.p('<script language="Javascript" src="http://test.js"></script>');
    Hope this helps,
    Sue

  • Accessing Applet in javascript.

    I have an applet renedered using java plugin. thru object tag. I want to access public method of this applet thru javascript. Anybody has any idea or sample code please send it accross.
    following is the HTML code
    Regards
    <html>
    <head><title>Sostenuto</title><script language=javascript>
    function callme()
    alert(document.applets.length);
    alert(document.PumaApplet.jsp('testing'));
    </script></head>
    <body BGCOLOR="#ffffff" LINK="#000099" topmargin=0 leftmargin=0 SCROLL='auto' onload="callme()"><SCRIPT LANGUAGE="JavaScript"><!--
    var info = navigator.userAgent; var ns = false;var ie = (info.indexOf("MSIE") > 0 && info.indexOf("Win") > 0 && info.indexOf("Windows 3.1") < 0);
    //--></SCRIPT>
    <COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
    var ns = (navigator.appName.indexOf("Netscape") >= 0 && ((info.indexOf("Win") > 0 && info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
    //--></SCRIPT></COMMENT>
    <SCRIPT LANGUAGE="JavaScript"><!--
    if (_ie == true)
    document.writeln('<OBJECT id="PumaApplet" classid="clsid:CAFEEFAC-0013-0001-0001-ABCDEFFEDCBA" WIDTH=1024 HEIGHT=768 codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_3_1_01a-win.cab#Version=1,3,1,01"><NOEMBED><XMP>');
    else if (_ns == true)
    document.writeln('<EMBED type="application/x-java-applet;version=1.1.2" java_CODE="PumaApplet.class" java_CODEBASE="." ARCHIVE="/Client_Sostenuto.jar" WIDTH=1024 HEIGHT=768 pluginspage="http://java.sun.com/products/plugin/1.1.2/plugin-install.html"><NOEMBED><XMP>');
    //--></SCRIPT>
    <APPLET CODE="com.sunrisesw.puma.presentation.applet.PumaApplet.class" archive='Client_Sostenuto.jar' CODEBASE = 'http://163.122.39.142:8080/' WIDTH=1024 HEIGHT=768 ></XMP>
    <PARAM NAME=CODE VALUE="com.sunrisesw.puma.presentation.applet.PumaApplet">
    <PARAM NAME=CODEBASE VALUE="http://163.122.39.142:8080/">
    <PARAM NAME=ARCHIVE VALUE="Client_Sostenuto.jar"><PARAM NAME = SERVLETURL VALUE= /servlet/sostenuto><param name="serial_number" value=To1010mC8917201832472555At>
    <PARAM NAME="CENTRALTIME" VALUE=" 2003-04-01 19:50:13.855"><PARAM NAME="PWDREMINDER" VALUE=" ">
    </APPLET>
    </body >
    </html>

    PS: MAYSCRIPT (imho) is for the reverse - accessing javascript from java With IE6.0/NN7.02 and JRE1.4.2beta, I've found that html file no longer needs to be converted with htmlconverter. Furthermore:
    1) a simple <APPLET>...</APPLET> tag is all that is needed (i.e., no longer is there a need for <OBJECT>...</OBJECT> for IE, or <EMBED>...</EMBED> for NN).
    2) MAYSCRIPT="true" is all that's needed for Java<-->JavaScript communications via LiveConnect.
    For a demonstration, check out the link shown below:
    http://www.aokabc.com
    ;o)
    V.V.

  • Accessing jar inside  javascript

    Hi,
    Is there way to access a jar inside a javascript?

    BigDaddyLoveHandles wrote:
    anu1 wrote:
    HTML mailto has 255 character limit. I need to send more than 7000- characters in its body. Any advise how it can be done.
    Some body suggested me to use jar inside a javascript.Very good. Next time you ask a question, why not provide this sort of detail?Better still, next time you get ridiculous-sounding advice, ask the person who gave you that advice for more details. Or why you should do that. Or how you should do that. Because that particular piece of advice isn't just ridiculous-sounding, it's just plain ridiculous.
    Or it's possible you weren't really given ridiculous advice, it's possible you misunderstood. In which case asking the person who gave you the advice to clarify it would have been a good strategy too.

  • Access denied executing Javascript

    Hello all
    I need help please.
    I have programmed a portal application where I have used a Javascript Library (tinyMCE editor). Everything works fine in Internet explorer and Mozilla firefox when I execute it in the portal we use for development. When I execute this same development in the productive machine it works in firefox but in explorer i received a javascript error: Access Denied and the editor doesn´t show properly.
    Please, I need help with this. I don´t know where to look or what to do.
    Any help will be rewarded with points.
    Thanks in advance

    Hi,
    i want to replace the standdard html editor in the Web Page Composer with the tinyMCE. I followed the steps explained in this [document|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f04b5c5d-3fd2-2a10-8ab0-8fa90e3ac162]. When I launch the editor, for example by creating a new paragraph, I see the TinyMCE UI in the popup window but I can't access the functionality. A Javascript Error is also appearing : Access denied... So I tried to locate the error. I copied the source text of the popup window and created a new html file in km-content with the source code. When I am deleting the function call EPCM relaxDocumentDomain everything works fine. So I tried to implement the following code into the function relaxDocumentDomain:
    EPCM.relaxDocumentDomain = function(){
    try {
      if(noDomainRelaxation == 'true') {
          //Don't Relax the domain
    } catch(err)
      var newDomain = this.getRelaxedDomain();
        if( newDomain != document.domain ){
          document.domain = newDomain;
        this.calculateDynamicTop();
    and changed the following code in the tiny_mce.js from
    document . write('< script id=__ie_onload defer src= \ 'java script:"" \ ';> < \ / script>');
    to
    document . write('< script id=__ie_onload defer src= \ 'java script:"" \ ';>noDomainRelaxation = 'true' < \ / script>');
    But that does not work, because the the variable noDomainRelaxation is declared after the check in the relaxDocumentDomain function. Does anybody have an idea how to solve this problem? Is it perhaps possible to set the right document domain in the tinymce itself? Thanks.
    Edit: Problem solved by using the latest TinyMCE Version.

  • Access denied in javascript

    Hi all
    I have made additional software for the editor of the email bsp of the SAP CRM system.
    This new software is called in an popup from without the default SAP CRM email editor.
    Via an custom button.
    In the default SAP CRM email editor there are several javascript libraries available which are used in that BSP page.
    When i try to access them from without the new software within the popup. What should be possible.
    The parent window can always be found via the 'WINDOW.OPENER'
    It returns to me a javascript error : Access Denied.
    I have checked if everything is in the same domain, and that is the case.
    Also i made a custom bsp which opens the new software in a popup, and in that case it works.
    What could it be?
    Kind regards,
    Anton Pierhagen

    Hello,
    I have the same issue.
    I have relaxed the domain from my iframe so as I could launch some functions but when I try to click on an input field type Date, the popup cannot be displayed.
    From my parent :
    <script>
      function resizeIframe(width,height)
        document.getElementById('id_mon_iframe').width = width;
        document.getElementById('id_mon_iframe').height = height;
    </script>
    <iframe
    width="100%"
    name="frame_object"
    src="/sap/bc/bsp/sap/my_test/index.do"
    frameborder="0"
    id='id_mon_iframe'>
    </iframe>
    From my iframe :
          <script type="text/javascript" language="JavaScript">
           function relaxDomain(input)
             if (input.search(/^\\d+\\.\\d+\\.\\d+\\.\\d+$/) >=0 )
               return input;
             var lnDotPos = input.indexOf(".");
             return (lnDotPos >= 0) ? input.substr( lnDotPos + 1 ) : input;
           function oniframeload()
             var result = relaxDomain(document.domain);
             var width = 2100;
             var height = document.body.scrollHeight + 50;
             if(result != document.domain)
               document.domain = result;
             parent.resizeIframe(width,height);
           </script>
         </htmlb:form>
       </htmlb:page>
    </htmlb:content>
    JS Error message :
    Détails de l’erreur de la page Web
    Agent utilisateur : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
    Horodateur : Sun, 21 Dec 2014 15:10:28 UTC
    Message : Accès refusé (Access Denied).
    Ligne : 125
    Caractère : 3
    Code : 0
    URI : http://xxxxx.xxxxx.xxx:xxxx/sap/public/bc/ur/Design2002/js/popup_ie6.js?6.0.17.0.0
    Anyone with an idea?
    Thx.

  • Access java from javascript in firefox

    Hi,
    I am trying to access java method from javascript.
    It works fine with ie, but firefox somehow brings up the error
    saying the method defined in java is not a function.
    I am calling like.
    document.applets["myapp"].soundAlarm();
    I have put MAYSCRIPT in the applet tag.
    still not works.
    Does anyone have idea ?
    Thanks

    Try with
    document.myapp.soundAlarm();I assume that the name attribute of the APPLET is myapp.
    Note the MAYSCRIPT is useless in your context. MAYSCRIPT is used when from Java you need to access the JSObject.
    See http://www.rgagnon.com/topics/java-js.html for examples.
    Bye.

  • Accessing OAMessageStyledTextBean in javascript

    There is a requirement which goes like this:
    there are three fields (they are the items of an AdvancedTable)
    Field 1 Field 2 Field 3.
    Field 3 is readonly (of type OAMessageStyledTextBean).
    Field 1 & 2 (of type OAMessageTextInputean).
    If there is a change in Field 1 then Field 2 = Field 1 + Field 3.
    I have written a javascript with setOnchange event on Field 1.
    The Problem is ,I am not able to access the Field 3 that is readonly,,
    I have tried this using document.getElementById(AdvancedTableRN:Field3:0)
    0 corresponds to the first row.
    For this readonly field alone,,, i get value as 'undefined' when tried to see the value in alert.
    But the above holds good for other two fields.
    Can anyone suggest on how to proceed? Also, it would be greatly appreciated, if anyone could name a book or doc that has javascripts related to OAF.

    Hi Elmer,
    Actually I wrote code that was firing for evry row in the VO those are being dispalyed, so you can modify it and it also validates a few condition so just refer it as Pseudo code let me know if I can help you
    public String calculate()
    XXEGASRLinesVOImpl pervo = getXXEGASRLinesVO1();
    Row row[] = pervo.getAllRowsInRange();
    String Flag = "NO ERROR";
    for (int i=0;i<row.length;i++)
    XXEGASRLinesVORowImpl rowi = (XXEGASRLinesVORowImpl)row;
    //System.out.println("xxDebug Checking to delete PersonId => "+rowi.getLineId());
    if(rowi.getShipQty()==null)
    rowi.setTotal(null);
    if(rowi.getUnitPrice()== null)
    rowi.setTotal(null);
    if(rowi.getShipQty()!= null)
    if(rowi.getShipQty().compareTo(0)<=0)//|| rowi.getShipQty().compareTo(0)== 1)
    System.out.println("Testing"+rowi.getShipQty());
    Flag = "Line: "+(i+1)+ " Qty";
    rowi.setShipQty(null);
    rowi.setTotal(null);
    if(rowi.getUnitPrice()!= null)
    if(rowi.getUnitPrice().compareTo(0)<0)
    Flag = "Line: "+(i+1)+" Unit Price";
    rowi.setUnitPrice(new Number(0));
    rowi.setTotal(new Number(0));
    if (rowi.getShipQty()!= null&& rowi.getUnitPrice() !=null)// && rowi.getSelectFLag().equals("Y"))
    if(rowi.getUnitPrice().compareTo(0)>0 && rowi.getShipQty().compareTo(0)>0 ){
    System.out.println(rowi.getShipQty().toString());
    oracle.jbo.domain.Number Total = rowi.getShipQty();
    //Total = Total * 2;//rowi.getUnitPrice();
    Total =rowi.getShipQty().multiply(rowi.getUnitPrice());
    rowi.setTotal(Total);
    Regards,
    Reetesh Sharma

  • Accessing HTMLB from javascript

    Hi expert,
    Can someone explain how to access the attributes,methods avialable in javascript to access htmlb objects in a page,
    Like for e.g.,
    htmlbSL(this,2,'SUBMITVALUES:HandleSubmit')
    Is there any document available?
    Thank you
    AP

    Hi AP,
    I believe there is no documentation avaliable about this.
    Maybe because this accessing method is not right to do
    but I can explaint about the function htmlbSL
    function htmlbEL(this,2,'SUBMITVALUES:HandleSubmit');
    this                      = HTML element.
    2                         = event type index.
    SUBMITVALUES:HandleSubmit = objectID:eventName
    if you want to know list of event type index.
    here the list:
    <b>EVENT TYPE                  INDEX</b>
    'htmlb:breadCrumb:click'      1
    <b>'htmlb:button:click'          2</b>
    'htmlb:checkbox:click'        3
    'htmlb:image:click'           4
    'htmlb:link:click'            5
    'htmlb:radioButton:click'     6
    'htmlb:tabStrip:click'        7
    'htmlb:tree:click'            8
    hope this can help you.
    respeck,
    -adyt-

  • Accessing LOV from Portlet

    I have an LOV[ListOfValues] application which is installed in the Application Server and my Portal application running in my Portal Server.
    Is it possible to call that LOV file[any jsp page] as a Popup Window
    from the portlet window?

    Hi,
    This is the snippet of code I am using but I am still unable to access the image.
    <p class="portlet-font">Welcome, this is the <%= renderRequest.getPortletMode().toString() %> mode.</p>
    img src="<%=request.getContextPath()%>/portal/htdocs/images/documents.gif" border=0
    </P>
    Note. the <> brackets were removed from the above snippet in order to display it in this post.
    When I view the generated source in the portal the img src points to /portal/htdocs/images/documents.gif but the image is not displayed.
    Does anyone know why this is not working for me ?
    </br>
    Just to add to this post I have also tried
    renderResponse.encodeURL(renderRequest.getContextPath()+"/htdocs/images/documents.gif")
    which just returns a very long strong which still doesn't load the image.
    I am beginning to think that you cannot load images from a JSR 168 portlet.
    The sample JSR 168 portlet I have which also has images that failed to load.
    Does anyone have any thoughts on what I am doing wrong / missing.
    Thanks,
    Message was edited by:
    user535862
    Message was edited by:
    user535862
    Message was edited by:
    user535862

  • Error while accessing App_Session in javascript.

    Hi All,
    I had wrote a Jquery function, before fetching the data from applciation iam trying to check the APP_Session variable but syntax is the problem could you please help me
    how we can resolve the problem.
    <script type="text/javascript">
    $( function() {
        $("#P1_ENG_PART1").autocomplete({
            source : function( request , response) {
                            data = getJParticipant(request.term);
                            response( data );
            focus  : function(event , ui){
                        event.preventDefault();
    function getJParticipant(key)
       // Here i want to check the App_session logic code and hence i had implmented which is not working.
           Can any one help me how we can resolve the below problem.
         if (&APP_SESSION.) is not null then
          var ajaxRequest = new htmldb_Get( null , '&APP_ID.' , 'APPLICATION_PROCESS=GET_JPARTICIPANT' , 0);
       ajaxRequest.add( 'G_MX01' , key);
       ajaxResult = ajaxRequest.get();
       return ((ajaxResult.length>0)? ajaxResult.split( '~' ):null);
    end if;
    </script>Thanks,
    Anoo..

    Hi Anoo,
    you can use app_id,page id ,session in javascript function,see the code given below
    $v('pFlowId') // APP_ID
    $v('pFlowStepId') // APP_PAGE_ID
    $v('pInstance') // SESSIONEdited your code, try it.
    <script type="text/javascript">
    $( function() {
        $("#P1_ENG_PART1").autocomplete({
            source : function( request , response) {
                            data = getJParticipant(request.term);
                            response( data );
            focus  : function(event , ui){
                        event.preventDefault();
    function getJParticipant(key)
       // Here i want to check the App_session logic code and hence i had implmented which is not working.
           Can any one help me how we can resolve the below problem.
         if ($v('pInstance')) is not null then
          var ajaxRequest = new htmldb_Get( null , '&APP_ID.' , 'APPLICATION_PROCESS=GET_JPARTICIPANT' , 0);
       ajaxRequest.add( 'G_MX01' , key);
       ajaxResult = ajaxRequest.get();
       return ((ajaxResult.length>0)? ajaxResult.split( '~' ):null);
    end if;
    </script>Regards,
    Jitendra

  • Accessing LOV available via methods throws No Such Property error

    I am using select <af:selectOneChoice> compoent (Same issue with other components too) with LOV from Model Driven data available in the following structure
    Model(created as Data Control) -> findPD1(String s1, String s2) -> PD1(object of class PD1) -> findPD2(String s3) -> PD2(object of class PD2) -> List<String> itemValue
    Where itemValue has get and set method.
    While running I get the following error
    JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-29000. Error message parameters are {0=groovy.lang.MissingPropertyException, 1=No such property: element for class: java.lang.String}
    Where as, the same works if we move the itemValue under Model like
    Model(created as Data Control) -> List<String> itemValue
    I am using JDeveloper version 11.1.2.3 the same works fine with 11.1.1.2 is this a regression?
    find some code from source below
    From Page def
    +<list IterBinding="testValueIterator" ListOperMode="navigation" ListIter="testValueIterator" id="testValue"+
    DTSupportsMRU="true" SelectItemValueMode="ListObject">
    +<AttrNames>+
    +<Item Value="element"/>+
    +</AttrNames>+
    +</list>+
    +<accessorIterator MasterBinding="findComponentIterator" Binds="testValue" RangeSize="25" DataControl="StorageModel"+
    BeanClass="java.lang.String" id="testValueIterator"/>
    From JSFF page
    +<af:selectOneChoice value="#{bindings.testValue.inputValue}" label="#{bindings.testValue.label}"+
    +required="#{bindings.testValue.hints.mandatory}"+
    +shortDesc="#{bindings.testValue.hints.tooltip}" id="soc2">+
    +<f:selectItems value="#{bindings.testValue.items}" id="si2"/>+
    +</af:selectOneChoice>+
    Please help me to fix this issue
    Thanks,
    Sabareesh

    Hi Frank,
    Thanks for your help.
    Here I am using the LOV using Data Control binding so #{bindings.testValue.items} itself gives the Collection of 'SelectItem'
    After some analysis I reduced the problem description.
    Created below two classes in model project
    public class MyData  {
        private ClassOne co;
        public MyData() {
            super();
            co = new ClassOne();
            List<String> pp = new ArrayList<String>();
            pp.add("Item1");
            pp.add("Item2");
            pp.add("Item3");
            co.setPp(pp);
        public ClassOne findCO() {
            return co;
        public void setCo(ClassOne co) {
            this.co = co;
        public ClassOne getCo() {
            return co;
    public class ClassOne {
        private List<String> pp;
        public ClassOne() {
            super();
        public void setPp(List<String> pp) {
            this.pp = pp;
        public List<String> getPp() {         
            return pp;
    }Created the Data Control from the Class MyData ( Right click MyData class select Create Data Control -> click OK)
    Drag and drop findCO() --> pp in a jsf page (in view project) --> Run --> we are getting below Exception
    oracle.jbo.JboException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-29000. Error message parameters are {0=groovy.lang.MissingPropertyException, 1=No such property: element for class: java.lang.String}
    but if we remove getCo() and setCo() methods from MyData.java then it works perfectly fine
    Also this problem didn't occur on 11.1.1.6 R1 but occurs on 11.1.2.3 R2.
    Not able to understand this strange behavior, please help.
    Hope this is an regression issue and need to raise the bug. Please confirm.
    Is there any other workaround other than removing getCo() and setCo() methods?
    Thanks,
    Sabareesh.

Maybe you are looking for

  • CS6 5.0.2 Update

    How to resolve: Adobe Bridge CS6 5.0.2 Update There was an error downloading this update. Please quit and try again later. Error Code: U43M1D220

  • Large Disks On Solaris Intel 8EA

    I am trying to setup a Large Disk ( 27 or 40 GB Maxtor ) using Solaris 8EA on a Pentium Pro MAchine. The Disk Partitions fine and am able to setup multiple Filesystems for 8 or 9 GB's easily. But when trying to access these Filesystems online I get s

  • Thinkpad Yoga battery 0%, not charging

    Please help. I have a Thinkpad 13 Yoga and it is showing 0 charge and is not charging. 

  • STOPVPN and sever have Abend...Please, help me.

    BM39SP1 on the NW65SP7 only C2S When do: STOPVPN - server often have abend.. How resolver this problem ? TGis abend-log.: Novell Open Enterprise Server, NetWare 6.5 PVER: 6.50.07 Server BRD1 halted Friday, June 6, 2008 3:07:59.224 pm Abend 1 on P00:

  • Reg. Confirmed Quantity in Sale Order

    Hi All,         I am facing a problem while creating the Sales Order , I have trading materil for which i have 200 materils in stock. But when i create the Sales Order there is no confirmed quantoty. Also when i do a Availabily Check in Sales Order i