DataBinding in uix:shuttle using Runtime Expressions

I'm trying to use the uix:shuttle component and dynamically set each option based off of values retrieved from the database. I'm using a java bean to grab a RowSet, which I will loop through to set my values for the leading and trailing values of the shuttle.
First, is it possible to use java scripting variables as the values. Example:
String val1 = "Option 1";
String val2 = "Option 2";
<uix:shuttle name="screenShuttle"
leadingHeader="Report List"
trailingHeader="User's Report List"
size="5">
<uix:leading>
<uix:list>
<uix:contents>
<uix:option textBinding="<%=Val1%>"/>
<uix:option textBinding="<%=Val2%/>
</uix:contents>
</uix:list>
</uix:leading>
How can I get uix to recognize my variable values?
Thanks in advance!
-Teri
[email protected]

Hi Teri,
Looks like you are setting the "textBinding" attribute whereas you should instead be setting the "text" attribute. The textBinding attribute must be a BoundValue object which is queried at render-time to provide the actual value.
BTW - If you don't actually know the exact number of options that you'll have ahead of time, you might want to consider writing some Java code to build up your ShuttleBean - and you can use the <uix:ref> element to include this UINode in your output. See the Developer's Guide an examle of this...
Andy

Similar Messages

  • Display PDF file in the Apex query report using HTML Expression

    Hi Folks,
    I have PDFs stored in BLOB columns along with FILE_ID column in the database.
    I want to display these to the APEX user on the page at runtime.
    I have created a SQL Query report page to display FILE_ID column.
    I am using HTML Expression property of the FILE_ID column to pull the image from the table using PROC_DISPLAY_DOCUMENT procedure.
    I typed folowing code int the HTML Expression text area of the FILE_ID column of the report page :
    <img src="#OWNER#.proc_display_document?p_id=#file_id#"/>
    I am using following Procedure code:
    create or replace procedure "PROC_DISPLAY_DOCUMENT"(p_id number) as
    s_mime_type varchar2(48);
    n_length number;
    s_filename varchar2(400);
    lob_image blob;
    Begin
    select MIME_TYPE,dbms_lob.getlength(blob_content),file_name,blob_content
    into s_mime_type,n_length,s_filename,lob_image
    from tbl_upload_file
    where file_id = p_id;
    owa_util.mime_header(nvl(s_mime_type, 'application/octet' ),false);
    --set the size so the browser knows how much it will be downloading
    htp.p( 'content-length: '|| n_length );
    --The file name will be used by the browser if the users does a "save as" 
    htp.p( 'content-Disposition: filename="' || s_filename ||'"');
    owa_util.http_header_close;
    --Download the BLOB
    wpg_docload.download_file( lob_image );
    exception
    WHEN NO_DATA_FOUND THEN
    RAISE_APPLICATION_ERROR(-202121,'Record matching screenfield filename not found, PROC_DISPLAY_DOCUMENT.');      
    end;
    --This is very Important
    --grant execute on PROC_DISPLAY_DOCUMENT to public;
    This code does not work and report does not display PDF image.
    Any help to troubleshoot this code will be appreciated.
    Thank you in advance.
    Jaya

    Hi Dimitri,
    I hope you can see HTML Expression code now. Thank You for responding.
    I have PDFs stored in BLOB columns along with FILE_ID column in the database.
    I want to display these to the APEX user on the page at runtime.
    I have created a SQL Query report page to display FILE_ID column.
    I am using HTML Expression property of the FILE_ID column to pull the image from the table using PROC_DISPLAY_DOCUMENT procedure.
    I typed folowing code int the HTML Expression text area of the FILE_ID column of the report page :
    [!--  img src="#OWNER#.proc_display_document?p_id=#file_id#" ]
    I am using following Procedure code:
    create or replace procedure "PROC_DISPLAY_DOCUMENT"(p_id number) **
    mimetype varchar2(48);
    n_length number;
    s_filename varchar2(400);
    lob_image blob;
    Begin
    select MIME_TYPE,dbms_lob.getlength(blob_content),file_name,blob_content
    into s_mime_type,n_length,s_filename,lob_image
    from tbl_upload_file
    where file_id = p_id;
    owa_util.mime_header(nvl(s_mime_type, 'application/octet' ),false);
    --set the size so the browser knows how much it will be downloading
    htp.p( 'content-length: '|| n_length );
    --The file name will be used by the browser if the users does a "save as"
    htp.p( 'content-Disposition: filename="' || s_filename ||'"');
    owa_util.http_header_close;
    --Download the BLOB
    wpg_docload.download_file( lob_image );
    exception
    WHEN NO_DATA_FOUND THEN
    RAISE_APPLICATION_ERROR(-202121,'Record matching screenfield filename not found, PROC_DISPLAY_DOCUMENT.');
    end;
    --This is very Important
    --grant execute on PROC_DISPLAY_DOCUMENT to public;
    This code does not work and report does not display PDF image.
    Any help to troubleshoot this code will be appreciated.
    Thank you in advance.
    Jaya

  • Using ${something} expressions in jsp

    hello,
    i'm writing a small web application using struts, hibernate, tomcat, my problem is that expressions ${some_formbean_property} written in jsp stay in html code to, they should be replaced with value of the property, what i have to do to fix it??
    thanks a lot

    In a JSP2.0 container, ${expr} is a runtime expression.
    if you use tomcat 5, and declare your web.xml as version 2.4, you can use ${expr} anywhere that you can use <%= expr %>
    So you can use it anywhere in template text, and also as an attribute to any tag that takes a runtime expression.

  • I want to use the expression edit control in a VC++ DLL, how?

    Good morning,
    as mentioned I want to use the expression edit control in my DLL written with VSC++ 2005 MFC. But I ran into some problems:
    If I just add the ExpressionEdit control from the toolbar to my dialog then the dialog will not be shown during runtime. As soon as I delete the control the dialog shows up.
    In the TS examples is one called 'TCL' (...National Instruments\TestStand 4.1.1\Examples\Tcl\source\EditSubstep). This is programmed in C++ and uses the expression edit control.
    The original dll works fine but as soon as I compile the editsubstep with my VS 2005 I get a runtime error (see image).
    What do i have to do to be able to use this control?
    Has anybody an working example for me?
    Cheers Frank
    Solved!
    Go to Solution.
    Attachments:
    fehler.JPG ‏21 KB

    @juergen: how do I know which lib I am using?
    I am using this COM-Control: c:\programme\national Instruments\testStand 4.1.1\bin\exprEdit.dll
    @Doug: I created the sequence as you described and used this for debugging to find out where the problem is.
    I found out, that the problem must be somewhere here:
    dlgcore.cpp
    BOOL CWnd::CreateDlgIndirect(LPCDLGTEMPLATE lpDialogTemplate,
    CWnd* pParentWnd, HINSTANCE hInst)
    Line 314:
    hWnd = ::CreateDialogIndirect(hInst, lpDialogTemplate,
    pParentWnd->GetSafeHwnd(), AfxDlgProc);
    Without the ExpEdit-control hWnd has a Value
    with control hWnd is 0.
    This is what I found out so far.
    Frank

  • Uix:shuttle component

    I'm trying to use the uix:shuttle component and dynamically set each option based off of values retrieved from the database. I'm using a java bean to grab a RowSet, which I will loop through to set my values for the leading and trailing values of the shuttle.
    First, is it possible to use java scripting variables as the values. Example:
    String val1 = "Option 1";
    String val2 = "Option 2";
    <uix:shuttle name="screenShuttle"
    leadingHeader="Report List"
    trailingHeader="User's Report List"
    size="5">
    <uix:leading>
    <uix:list>
    <uix:contents>
    <uix:option textBinding="<%=Val1%>"/>
    <uix:option textBinding="<%=Val2%/>
    </uix:contents>
    </uix:list>
    </uix:leading>
    How can I get uix to recognize my variable values?
    Thanks in advance!
    -Teri
    [email protected]

    Let me try that again. Here is the bottom:
    String display = fieldRowLeading.getAttribute("DisplayName").toString();
    %>
    <uix:option selected="False" value="<%=field%>" text="<%=display%>" longDesc="<%= desc%>" />
    </jbo:RowsetIterate>
    </uix:contents>
    </uix:list>
    </uix:leading>
    <uix:trailing>
    <uix:list multiple="true">
    <jbo:RowsetIterate datasource="dsUsedDisplayFields" userange="false" >
    <jbo:Row id="fieldRowTrailing" datasource="dsUsedDisplayFields" action="Active"/>
    <% String field = (String)fieldRowTrailing.getAttribute("FieldName");
    String desc = (String)fieldRowTrailing.getAttribute("Description");
    String display = (String)fieldRowTrailing.getAttribute("DisplayName");
    %>
    <uix:option selected="False" value="<%=field%>" text="<%=display%>" longDesc="<%= desc%>" />
    Long postings are being truncated to ~1 kB at this time.

  • Possible to use an expression for a property path?

    Hello,
    I've run into a problem.  I want to use SetNumElements on an array, for which I'd like to vary the first "array" parameter based on an iteration of a loop.   I want to increment the size of a different array for every iteration of a "for each" loop.  The array which the forEach loop is iterating over contains the names of the arrays contained in Parameters.  So I'm trying to use an expression to build the property path within the SetNumElements parameter, but it is complaining.  My expression is:
    SetNumElements("Parameters." + Locals.CurrentElement, GetNumElements("Parameters." + Locals.CurrentElement) + 1)
    I get "expected array, found string" syntax error.
    Is it possible to "build" the property name string in this function?  I see the "evaluate" function, but that seems it will try to return the contents of the property, which I don't want.  I just want to build the array name itself.
    Thanks for any input.
    David Jenkinson

    Hello David,
    It looks like you are evaluating a specific element (in this case that element is a string).
    Here is a simple example of what I believe your overall objective is:
    Parameters.Random is an array of numerics with 10 elements 
    Locals.String = "Random"
    In my statement step I have:
    SetNumElements(Evaluate("Parameters."+Locals.String), 1)
    So essentially we must use evaluate when building an expression for the entire array, not just one element.
    If the expression you want is contained in that array (ie if Parameters.StepTypesToSearchFor[1] = some string of the array ("locals.array") then you will need another Evaluate() function to evaluate that expression.
    As an aside, this will only change the size at runtime, the variables (unless they are Station Globals) will return to the defaults when the execution is complete.
    With warm regards,
    David D.

  • Using Scriptlet expressions as attribute values in taglibs

    Hi,
              While calling a custom tag in a JSP page that has attributes set up to
              accept scriptlet expressions in the TLD, a space is required before and
              after the variable like in <abc:xyz attr1=<%= xyz %> />
              otherwise, the JSP page does not compile. Using Weblogic 5.1.0 SP5 on
              Windows NT.
              

    Runtime expression values work fine. Sounds like an unbalanced tag problem.
              Inproperly quoted strings?
              "Jason Southern" <[email protected]> wrote in message
              news:3c644246$[email protected]..
              >
              > I'm running WL6.1 SP1 on Windows 2000 and I cannot seem to get WebLogic to
              handle
              > runtime expression values for taglib attributes. I'm using a standard
              container
              > tag (no empty body) and I receive the following error:
              >
              > Parsing of JSP File '/file.jsp' failed:
              > no corresponding open tag for tag extension close: //[ null;
              >
              > I have the declared the the tag attribute in the TLD to allow for runtime
              expressions
              > in the TLD (<rtexprvalue>true</rtexprvalue>).
              >
              > Anyone else had this problem. Is this a known bug?
              >
              > "Suneel Parthasarathy" <[email protected]> wrote:
              > >Hi,
              > >While calling a custom tag in a JSP page that has attributes set up to
              > >accept scriptlet expressions in the TLD, a space is required before and
              > >after the variable like in <abc:xyz attr1=<%= xyz %> />
              > >otherwise, the JSP page does not compile. Using Weblogic 5.1.0 SP5 on
              > >Windows NT.
              > >
              > >
              >
              

  • UIX:shuttle

    hi,
    I am trying to use the shuttle tage in the jsp. The problem is how to? I used the code example given in the help but the page fires about wrong syntax.
    herez what i 've done. This is the basic structure.
    After doing this I can see that there is a "select from" list and there is a target empty list with the buttons to arrange the items in the list. But how to put some buttons inbetween like "Move" Move All" "Remove" "Remove All" to swap the items from the "From list" to the "To list" as described in many examples.
    <uix:shuttle name="someName" >
    <uix:leading >
    <tr>
    <td>
    <b>Select from</b><br>
              <select multiple="multiple" name="measureSelect" size="5" >
              <c:forEach items="${ controlViewBean.panelMeasures }" var="panelMeas" >
                   <option
                        <c:if test="${ controlViewBean.selectedByPanelMeasure[ panelMeas ] }" >
                             selected
                        </c:if>
                   >
                        <c:out value="${ panelMeas.portletMeasure.name }" />
                   </option>
              </c:forEach>
              </select>
    </td>
    </tr>
    </uix:leading>
    <uix:trailing>
    </uix:trailing>
    </uix:shuttle >
    thanks,
    vasanth

    Hi,
    You can't have <tr> <td> tags inside <uix:???> tags.
    Here's a shuttle example (to get you started):
       <uix:shuttle name="shuttle1"
                leadingHeader="Header 1"
                trailingHeader="Header 2"
                size="5">
         <uix:leading>
           <uix:list>
               <uix:option text="option 1"/>
               <uix:option text="option 2"/>
               <uix:option text="option 3"/>
               <uix:option text="This is a very very long option 4"/>
           </uix:list>
         </uix:leading>
         <uix:trailing>
           <uix:list>
               <uix:option text="2option 1"/>
               <uix:option text="2option 2"/>
               <uix:option text="2option 3"/>
               <uix:option text="2option 4"/>
               <uix:option text="2option 5"/>
           </uix:list>
         </uix:trailing>
       </uix:shuttle>I got this example from:
    http://otn.oracle.com/jdeveloper/help/topic?inOHW=true&linkHelp=false&file=jar%3Afile%3A/u01/app/oracle/product/IAS904/j2ee/OC4J_ohw/applications/jdeveloper/jdeveloper/helpsets/jdeveloper/uixref.jar!/ui/shuttle.html

  • Help in query using regular expression

    HI,
    I need a help to get the below output using regular expression query. Please help me.
    SELECT REGEXP_SUBSTR ('PWRPKG(P/W+P/L+CC)', '[^+]+', 1, lvl) val, lvl
    FROM DUAL,(SELECT LEVEL lvl FROM DUAL
    CONNECT BY LEVEL <=(SELECT MAX ( LENGTH ('PWRPKG(P/W+P/L+CC)') - LENGTH (REPLACE ('PWRPKG(P/W+P/L+CC)','+',NULL))+ 1) FROM DUAL));
    I need the output as
    correct result:
    ==============
    val lvl
    P/W 1
    P/L 2
    CC 3
    But i tried the above it is not coming the above result. Please help me where i did a mistake.
    Thanks in advance

    Frank gave you a solution in your other thread. You could simplify it if you are on 11g:
    SQL> select * from table_x
      2  /
    TXT
    TECHPKG(INTELLI CC+FRT SONAR)
    PWRPKG(P/W+P/L+CC)
    select  txt,
            regexp_substr(
                          txt,
                          '(.*\()*([^+)]+)',
                          1,
                          column_value,
                          null,
                          2
                         ) element,
            column_value element_number
      from  table_x,
            table(
                  cast(
                       multiset(
                                select  level
                                  from  dual
                                  connect by level <= regexp_count(txt,'\+') + 1
                       as sys.OdciNumberList
      order by rowid,
               column_value
    TXT                                      ELEMENT    ELEMENT_NUMBER
    TECHPKG(INTELLI CC+FRT SONAR)            INTELLI CC              1
    TECHPKG(INTELLI CC+FRT SONAR)            FRT SONAR               2
    PWRPKG(P/W+P/L+CC)                       P/W                     1
    PWRPKG(P/W+P/L+CC)                       P/L                     2
    PWRPKG(P/W+P/L+CC)                       CC                      3
    SQL>  SY.

  • I can't print wirelessly using Airport Express.  I have my HP printer connected to a USB hub, and the hub to the Airport Express, but when I select the HP from the printer list, my MacBook says the printer is "off-line" - even when it is not.

    I can't print wirelessly using Airport Express.  I have my HP printer connected to a USB hub, and the hub to the Airport Express, but when I select the HP from the printer list, my MacBook says the printer is "off-line" - even when it is not.  I've tried several USB connectors, and several different ports on my USB hub; same result.  I need to have the HP connected to the hub 'cause from there it's connected to our desktop Mac.

    Hi,
    I am currently replying to this as it shows in the iChat Community.
    I have asked the Hosts to move it to Snow Leopard  (you should not lose contact with it through any email links you get)
    I also don't do Wirelss printing so I can't actaully help either.
    10:01 PM      Friday; July 29, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I am trying to use macro express and adobe acrobat 9 profession keeps shutting down, why is this happening?  I tried to run as administrator already as well on both Macro Express and in Adobe and it still keeps shutting down.

    I am trying to use macro express and adobe acrobat 9 profession keeps shutting down, why is this happening?  I tried to run as administrator already as well on both Macro Express and in Adobe and it still keeps shutting down.

    same problem, it's been happening to me for a week or two now i'm thinking about backing up my documents and just wiping it completely, see if that works. Has anyone else tried this? I'm loosing time and have already lost a good few hours of work as it just crashes randomly. need help!!!
    - saving these threads on my favourites cause i'm about to crash . . .

  • Can I use airport express to extend my network AND stream iTunes???

    I have an airport extreme connected to the cable modem and sending a signal out to my home network. I also have a powerbook and an airport express connected to the home stereo.
    My question is, can i use the express to extend my extreme signal (to reach the back yard) and stream music from itunes at the same time? The set up utility seems to suggest that you do one or the other.
    Thanks!

    Are you sure you configured the Express to extend the Extreme's network? If you use the standard setup, the two base stations will be indistinguishable, i.e. you'll only see one entry for the wireless network.
    If you were connected to the Extreme when you configured the Express, try turning off Airport in the Airport menu and then turning it back on. The computer should pick up the stronger signal at that point.

  • How to set up time capsule with existing network that uses airport express/extreme

    I have an existing wirelss network using airport express. I want to upgrade to time capsule and use the A/P express upstairs. I dont want to delete the existing network.

    I suggest to use your airport express to extend your wireless network that is created by your new time capsule

  • How do I use airport express to extend my wireless network?

    How vcan I extend the range of my wireless network using Airport Express?

    It appears that you may have "join a wireless network" and "extend a wireless network" mixed up a bit.
    The Express can "join" virtually any wireless network produced by any manufacturer's router if it is provided with the correct settings:
    name of the wireless network
    the correct wireless security settings
    and correct password.
    "Join" is normally used for AirTunes or to connect a USB printer to the Express for remote printing.
    But, the Express does not provide any additional wirless coverage when it "joins" another wireless network.
    Apple's "Extend a wireless network" feature, which was introduced about 5 years ago, allows the Express to connect to another Apple "n" wireless router and then "repeat" or "extend" the wireless signal....providing more wireless coverage in the area where the Express is located.
    This is a proprietary setting. Apple says it will not work with devices from other manufacturers. To our knowledge, this is correct.
    Prior to 2007, Apple used a setting called WDS to allow the Express to be configured to provide more wireless coverage. Attempts were made by a number of manufacturers to standardize the WDS settings, but things were never finalized.
    The result is that Apple's older "b/g" routers were sometimes compatible with WDS settings from another manufacturer. There were a handful of products....5 or 6, as I recall....that were said to work. Some did, some didn't. Linksys had a couple of models, Netgear had one, SMC another, etc.  Extremely limited.
    Since WDS was never adopted as an industry standard, manufacturers developed their own WDS settings. Compatibility was extemely limited and unreliable. That continues to this day with WDS.
    Bottom line....It is always best to stick with the same manufacturer throughout your network as far as routing is concerned.
    If you have an newer "n" Apple router like an AirPort Extreme, the Express can extend the wireless as can along Extreme. If your Extreme is dual band, and you want to extend both bands, then you need another Extreme.
    Another responder suggested to someone that they could connect the AirPort Express to a router via Ethernet.  What exactly would that achieve?
    That is a completely different subject since this discussion is about extending a wireless network using wireless only.

  • I have a linksys WRT54G router that we use as a base. I want to use Airplay using Airport Express and hook up my stereo to it. How can i set up my Airport express without a PC/laptop? I just downloaded Airport utility on my iphone and ipad,will that work?

    I have a linksys WRT54G router that we use as a base. I want to use Airplay using Airport Express and hook up my stereo to it. How can i set up my Airport express without a PC/laptop? I just downloaded Airport utility on my iphone and ipad,will that work? And one more thing about the setup, the linksys router shich acts as a base is in a different room as the airport express which i wanted to use for airplay. So I'm hoping to hook up the Airport express via wireless signal. If i can set it up, can someone pls help me out by posting detailed instructions. Thanks so much!

    The first message that AirPort Utility will display during the auto setup will be that the Express will be confgured to "extend" the network. When AirPort Utility analyzes the network further, and sees that the Express cannot "extend" the 3rd party network, the next message will indicate that the Express is being configured to "join" the wireless network.
    Once the Express is configured, if you later go into AirPort Utility to check the settings under the Wireless tab, you will see that the Wireless Mode is indeed "Join a wireless network".

Maybe you are looking for

  • MacBook Pro 8,2 (Late 2011), Mountain Lion thunderbolt issue

    Hi! Since my upgrade to OS X 10.8.1 (Mountain Lion) yesterday the ports on the back o my 27 " thunderbolt display no longer seems to function? I can hook up my keyboard directly to my MacBook Pro (Late 2011, 8,2) and it works just fine, and it was wo

  • Oracle Forms10g view window is small

    Hi All, We just installed oracle forms10g, when we compile a form and run it, it opens in the browser but with small area of it appearing and the rest is hided. there is no scrolling or any thing. How can i make the browser open it in full size (view

  • N80 V4 software updater fails

    After all of my bluetooth and memory issues my firmware update just failed for no reason when it was updating, now my phone is completly dead, YAY!...... Anyway.... I live about 5 miles from Huntingdon where from what i have heard is a Nokia service

  • Finde Info.plist

    I was using PlistEdit Pro to edit the Finder's Info.plist and the app corrupted the file as a result of which Finder can't doesn't start anymore. I know I should have made a backup but didn't as in the past this has never been an issue. But after upd

  • PaYmEnT ErRor on ApPWoRlD

    Can download any free apps but when I try to pay for one it says payment error payment system is busy please complete your other transaction.  Never purchased anything before just free apps will not let me click on the top pull down payment options b