How to access af:table JSF EL variable in scriptlet?

Hi,
I have an <af:table> tag that iterates over a collection like this:
<af:table emptyText="No items were found"
value="#{viewUsersHandler.users}"
var="user" rows="20" banding="row"
bandingInterval="1">
<% User user=pageContext.getAttribute("user"); //RETURNS NULL!
%>
</af:table>
How can I access the JSF EL variable, "user" in my scriptlet?
pageContext.getAttribute("user") returns me a null

Found that the solution doesn't really work in my context after all:
<c:set var="user2" value="${user}" scope="page"/>
seems to be only executed once, not every iteration, therefore only the very first row of the table is set as "user2" in pageContext
Does anyone know how I can get <c:set var="user2" value="${user}" scope="page"/> to be executed again every iteration? I tried it in <af:table> and <af:forEach> but both don't work.
Oops, I found out the solution:
use <c:set var="user" value="${user}" scope="page"/>
to make it accessible via PageContext
Hi,
I have an <af:table> tag that iterates over a
collection like this:
<af:table emptyText="No items were found"
alue="#{viewUsersHandler.users}"
var="user" rows="20"
banding="row"
bandingInterval="1">
/RETURNS NULL!
/af:table>
How can I access the JSF EL variable, "user" in my
scriptlet?
pageContext.getAttribute("user") returns me a null

Similar Messages

  • How to access internal table data from webdynpro to Flex application.

    Hi Connoisseur
    The data transfer from Abap WebDeypro to flex island works well. I followed , there is an example from Thomas Jung (by the way as always Great Work) and  Karthikeyan Venkatesan (Infosys) but this example covers simple type only.
    There is no example with complex types like arrayCollection which handle the transfer of data from flex to WebDynpro.
    i tried to do pass internal table value  to flex-datagrid.but its not work.
    i would like to know
    1.how to access internal table data from webdynpro to Flex application.
    2.how to pass the internal table to flex-datagrid.
    2.how to pass dynamically in ADOBE flex.
    3. how to do Flex is receiving the wd context data?
    4. how can we update WD context with FLEX data.
    Ple give me sample example and step by step procedure.
    Regards
    laxmikanth

    Hi Laxmikanth,
    Please refer this...
    Flash island: update complex type from flex
    Cheers..
    kris.

  • How to access the Custom Data type variable given in Expression edit control To and From LabVIEW

    Hello, I would like to know how to access the custom data type variable given in the Espression Edit Control from LabVIEW and vice-versa
    Say, the FileGlobals.Reference_Handle (Custom Data Type Variable) contains the
    VISA I/O session (Which in turn contains VISA_DeviceName: String, Session: Number),
    Channel1: Number and
    Channel2: Number
    I am expecting the user to give FileGlobals.Reference_Handle as the input at the ExpressionEdit Control in the edit screen of the VI Call.
    I would like to know how to get the values of this custom data type to LabVIEW?
    Say, if I have the Cluster in LabVIEW like VISA I/O session (Deive Name and Session Number), Channel1 and Channel2
    how do i need to set this cluster to the Custom Data type variable in TestStand?
    Thanks and Regards
    Prakash 

    Hi,
    TestStand to LabVIEW: i didnt understand what you r trying to achieve. But if you are using references, Use Property nodes and Invoke nodes to achieve what you want in LabVIEW.
     LabVIEW to TestStand: check the image below: You need to click the button next to 'container'. I have used a cluster output in the VI.
    Hope this helps
    .......^___________________^
    ....../ '---_BOT ____________ ]
    ...../_==O;;;;;;;;_______.:/
    Attachments:
    1.JPG ‏187 KB

  • How to access XI_AF_MSG table in Composite Application Framework Java Code

    Hi Experts,
    I've no knowledge about PI. In one of my projects, I need access the XI_AF_MSG table of PI through java code in a composite application.
    How do I access this table? I've searched this forum for this query but the replies say that any SQL editor can be used to access XI_AF_MSG table. But my question is; How do I get the login details of the database? In the first place, how do I access the underlying database layer of PI? Is there any JAR file which can be used to make the connection?
    It would be of great help if any expert on this can give me a detailed reply.
    Thanks a lot in advance.
    Best Regards,
    Nitin

    Hi Nitin,
    The AFW runs on the J2EE Engine, so this table is in the Java Schema of the database and thus not visible in the ABAP stack. I guess you can use any tool your database provider offers for looking at table contents (e.g. SQLPlus).
    Regarding how to access the table please contact you basis administrator they will have access to the tables as they have j2ee_admin login ids and pwds.
    Regards
    joel

  • How to create a table with a variable

    Hi everyone!
    I have a procedure which receives a table name as a parameter and need to create a table using that name
    For example:
    PROCEDURE REFRESH_REPORTS (table_name varchar2) IS
    BEGIN
    table_name_REPORT := table_name;
    execute immediate 'create table table_name_REPORT .....
    But I don't get this working. I am just adding this procedure as a part of a package which is used for web/online reports.
    Could someone guide me on how I could create this table?
    I was getting errors like invalid table name and I even tried to use a variable which stores the entire sql statement and concatenated with the table name's variable but still that was not working.
    Thank You so much in advance.
    Nithya
    Edited by: user645399 on Jan 20, 2010 9:42 PM

    user645399 wrote:
    Thank You so much for the valuable feedback.
    My agency requires some reports to be generated at a certain interval, after a certain type of batch load. A few different types of reports will be generated and usually we have scripts which we run to generate the necessary tables and extract the reports from there. We retain the tables for verification purpose as it stores some valuable status of some customers and so on, which we will not be able to generate again easily. The table will have around 50,000 - 100,000 records averagely. Sometimes more.
    I am automating the process now as per client's request.
    So, I thought of using the same script to automate it in the web. For table name we usually changed them manually.
    Now, when the user runs, he or she have to give them table name/ report name.
    I thought of concatinating the sysdate and report name but what if there is a problem and the user runs it for a second time?
    Unless I have a separate part of the coding to take care of this issue.
    Please advice if there is an alternative.
    Thank You Very Much.
    Cheers!
    NithyaSo why is it necessary to create a table just to create a report?
    You really, really need to rethink this entire process from the beginning, not just try to shoehorn in something from a current, astoundingly bad, design.

  • How to access a table present in same database

    I have one mc_pl_st tables in mcs_owner schema, but am accessing from another schema age_owner schema,but both schemas are in same database.
    Shall I use user_name.table_name to access the table present in other schema present in same database
    Pls suggest,
    Thanks

    T.PD wrote:
    Skalny wrote:
    859486 wrote:
    Shall I use user_name.table_name to access the table present in other schema present in same databaseYes, you must use schema name if you want to access table or other object, which belongs to different user.You could also use synonymes created by the tables owner:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7001.htm
    How ever, the user accessing must have SELECT (and INSERT/UPDETE/DELETE?) permissions granted.And also we can use public synonymes.

  • How to access a table of SAP standard SAP method from external program

    Hi Friends,
    I have to access a table and modified it defined in a standard SAP method (PROCESS_INPUT_FILTER) of class (CL_HANDLE_MM).
    As we normaly do it in case of Standard program
    for example: ('(SAPLMEPO)ett[]') here we are accessing internal table ett defined in SAPLMEPO.
    so how we can do the same thing if some thing defined in standard SAP method.
    Pl. help.

    Thanks for the info guys, it will come in handy.
    I need to validate that a number is entered with zero or one decimal place, then make sure it is evenly
    divisible by .5 in order to test for whole or half numbers only. If not, I use an alert to
    display a message when the user leaves the field.
    If there is a better way to achieve this, I am all ears!
    Thank you for your time,
    Gary

  • How to access the table type field in the structure

    Hi All,
    I have a BADI CRM_MKT_ADR_SEARCH and a method CHANGE_SEARCH_RESULTS in this method I have a parameter CT_BP_CP_CHANNEL .This parameter has type CRMT_BP_CP_CHANNEL_TAB(this is table type) this has the line type CRMT_BP_CP_CHANNEL(this is structure) in this line type we have one field addrnumber.How to access this field in my method?Please help me in this regard.

    data lw_tab type CRMT_BP_CP_CHANNEL.
    loop at CRMT_BP_CP_CHANNEL_TAB into lw_tab.
       lv_field = lw_tab-addrnumber.
       <further processing>
    endloop.

  • How to access af:table rows in JavaScript

    Hi,
    I have a requirement to access af:table rows in java script.I tried the same using following code.
    getRows returns the correct no of rows from the table, but table.getValue() returns null.
    var table = AdfPage.PAGE.findComponentByAbsoluteId('t1');
    if (table != null){
    alert(table.getRows());
    alert(table.getFirst());
    alert(table.getValue());
    Any pointers on how i can achieve this.

    We have a requirement where in,we have to check if the order number is already added to the cart(cart here is a table)
    and this validation needs to be done as soon as you enter 10 digits in the input field for order number.
    in short,order need to validated if its duplicate order against table at client side(sson as you enter 10 digits in order number)
    initially I was trying to implemet this with ServerSide listner as below
    Java script on page :
    function addDuplicate(evt) {
    var source = evt.getSource();
    AdfCustomEvent.queue(source, "MyCustomServerEvent",
    false);
    event.cancel();
    Bean method
    public void callAddDuplicateSeverEvt(ClientEvent clientEvent) {
    ADFContext.getCurrent().getPageFlowScope().put("dupOrderNumFlag", "N");
    System.out.println("in handle Add duplicate::"+ ADFContext.getCurrent().getPageFlowScope().get("dupOrderNumFlag"));
    input text on page
    ====
    <af:inputText label="" id="it1" value="#{pageFlowScope.dspOrderNum}"
    columns="14" autoComplete="off" styleClass="orderveritext"
    maximumLength="10" >
    <af:clientListener method="validateOrderNumChars" type="keyPress"/>
    <af:clientListener method="enableAddButton" type="keyUp"/>
    <af:clientListener method="addDuplicate" type=" keyPress "/>
    <af:serverListener type="MyCustomServerEvent"
    method="#{viewScope.HLKioskBean.callAddDuplicateSeverEvt}"/>
    </af:inputText>
    Problem with this solution is My application is KIOSK app(touch screen) on every key press in order num input field screen flickers,looks like its trying to do Full page rendering(though i do not have any PPR) in every call to serverListerner.
    Please advise.

  • How to access remote tables on Oracle from Access fron end?

    Note: Access application and access tables are in separate .mdb files.
    I've successfully migrated my Access 2000 tables to Oracle. And there were no errors during the migration. The two original Access tables were renames to tblBOMdetail_L and tblPartInfo_L and two new linked tables were created with the _R name. Mapping queries were created for tblBOMdetail and tblPartInfo.
    However, when I launch my Access application, I get the following error: "The Microsoft Jet database engine cannot find the input table or query 'tblPartInfo'. Make sure that it exists and that its name is spelled correctly."
    Is there something more that I have to do to enable this connection. I already have the necessary ODBC connection set up.
    Thanks.

    Hi ,
    The first thing you need to verify is that you can view the data in the tables with _R appended to their name. This will verify whether the ODBC link is set up correctly and pointing at the correct Oracle table in the Oracle database.
    Another point. Are you still using 2 .mdb files? If so since your data is now in Oracle it may be prudent to use only one .mdb.
    If you need more help then please contact [email protected]
    John

  • How to access a table of another function ?

    Hello,
    I am writing a function called TEST that calls the "BAPI_DOCUMENT_GETDETAIL2"
    now in the declaration of the "BAPI_DOCUMENT_GETDETAIL2" under the tables tab there are the following tables:
    OBJECTLINKS.
    DOCUMENTFILES.
    How can i access the information these tables from function TEST ?
    How can i get a reference to these two tables found in "BAPI_DOCUMENT_GETDETAIL2" from within the TEST function?

    Hi Hassan,
    Write the following codes in your TEST function module:-
    Also fill the values of dokar, doknr, doktl and dokvr on your own to get the required entries in the tables Documentfiles and Objectlinks.
    DATA : dokar TYPE draw-dokar,
                doknr TYPE draw-doknr,
                doktl TYPE draw-doktl,
                dokvr TYPE draw-dokvr,
                DOCUMENTFILES type table of BAPI_DOC_FILES2,
                OBJECTLINKS type table of BAPI_DOC_DRAD.
    CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
        EXPORTING
          documenttype               = dokar
          documentnumber             = doknr
          documentpart               = doktl
          documentversion            = dokvr
        TABLES
          objectlinks                  = objectlinks
          documentfiles              = documentfiles
    NOTE : PLease award points if you are satisfied by the solution :).
    Thanks and regards,
    Ravi .

  • How to create a table using a variable or flat file ?

    Hello All,
    I want to create a table in which column names and data type will be read from a flat file or a variable.
    How can i do this ? Any suggestations are appricaible.....
    Regards,
    Ashish

    How about using this code.
    Used Directory object EXT_DIR where the input file abc.txt is located with the below mentioned data
    TABLE SANJ_TEST
    SANJ_AB NUMBER(6)
    SANJ_BC VARCHAR2(100)
    Declare
    v_file utl_file.file_type;
    z varchar2(100);
    v_cnt number :=0;
    v_str Varchar2(1000) :='';
    v_tab varchar2(40);
    v_col varchar2(30);
    v_data_type varchar2(30);
    Begin
    v_file := utl_file.fopen('EXT_DIR','abc.txt','r');
    loop
    utl_file.get_line(v_file,z);
    if substr(z,1,5) = 'TABLE' then
    if v_cnt <> 0 Then
    v_str := v_str||')';
    execute immediate v_str;
    end if;
    v_cnt := 0;
    v_str := 'Create Table ';
    v_tab :=Ltrim(Rtrim(substr(z,7)));
    v_str := v_str||v_tab||'(';
    Else
    dbms_output.put_line('count in else start '||v_cnt);
    v_col := ltrim(rtrim(substr(z,1,30)));
    v_data_type := ltrim(rtrim(substr(z,31)));
    if v_cnt=0 then
    v_str := v_str||v_col||' '||v_data_type;
    else
    v_str := v_str||','||v_col||' '||v_data_type;
    end if;
    v_cnt := v_cnt+1;
    End if;
    End loop;
    utl_file.fclose(v_file);
    Exception
    When NO_DATA_FOUND then
    v_str := v_str||')';
    execute immediate v_str;
    dbms_output.put_line('In excep '||sqlerrm);
    utl_file.fclose(v_file);
    End;
    /

  • How to access "Display Time" / Slide Duration variable?

    I'm using Adobe Captivate 4, and I'm trying to programmatically access the "Display Time" for the current slide (ie: the slide duration).
    How do I do that? I've looked through all the system variables in the actions dialog but to no avail.

    Hi Lilybiri,
    I retried it this morning and it works for me. Here are some pointers:
    I think it's a coincidence if CP hung when inserting the animation. It never did for me and I inserted it before and after. It's a possibility but I doubt.
    Make sure that slide1Duration is written with a lowercase "s" and a capital "D". I noticed that you wrote it with a capital "S".
    It works in TC and RollOver TC but it's not working with the click box captions. However, I could not get a standard variable like $$CaptivateVersion$$ to appear in the CB caption either.
    I really think that your issue lies with the capital "S". Give it a try.
    Finally, I'm not a good person to recommend books. I have learned AS2 and AS3 just from the Adobe help file. I never read a book or tutorial beside the help. Also, my background being a s/w developer, catching up with AS3 was not that much of an issue since I understand all the OO (Object Oriented) concepts. If you ever have questions about AS3, let me know and I'll try to help you out.
    Yves

  • How to access ucm table from external application?

    Hi All.
    Is it possible to access an ucm table (configuration manager-> tables) from of the other external application?
    If yes, how to do it?
    Regards,
    Diovani

    It's just another DB table so JDBC would work fine.
    You can connect to the UCM schema using a free tool like Oracle SQLDeveloper and look at the tables this alos uses a JDBC connection.
    HOWEVER
    I would not really recommend you use this approach without knowing a lot more. Certainly you should not have an external application making changes to the UCM DB. If you just want to read data SQL over JDBC is fine
    BUT
    It is better really to use the existing UCM services to access the data - if there is not a service that does what you want then you create it. This keeps you within the same design pattern of UCM and means you can continue to benefit from security and other rich services that UCM provides over and obove JDBC
    Tim

  • How to access a table from one view in another view via ABAP source code.

    Hi experts, I need your help.
    I am working in SAP CRM 2007 developing code modifiying views using transaction "BSP_WD_CMPWB" and my problem is the following:
    After the "Account Identification" process I go to "Create Case" and click in "Complaints" option in the navigation bar.
    Here there are several views involved, like "General data" and "Parties involved"
    "General data" belongs to the component "BT126H_CALL" and the name of the view is "SCDetails.htm"
    "Parties involved" belongs to the component "BTPARTNER" and the name of the view is "Partner.htm"
    The "Partner.htm" view has a table that is displayed using a "<chtmlb:configTable . . . table = "//BTPartner/Table" instruction.
    I need to acces the table "//BTPartner/Table"  that belongs to "Partner.htm" in the view "SCDetails.htm" and add data into it.
    How can I do that ?
    Add the data in the view "Partner.htm" itself is very simple, I am using the "EH_ONINSERT" method but I have not idea how to do that from "SCDetails.htm".
    Thanks in advance for your help.
    Best Regards.
    Exequiel.

    Hi,
    as I understand from your question you would like to add a partner to the complaint document.
    The complaint document is a 1Order document and has the root genil node named BTOrder. Using the genil relationships you have to get the BTPartnerSet and then the right Partner Relationship.
    You will find a lot of information in the newsgroup on how to do this by doing a search.
    But a quick help would be to use the sapgui transaction genil_model_browser, component set ONEORDER and using the tree structure navigate from the BTOrder root node to the Partner set.
    Best regards,
    Erika

Maybe you are looking for

  • IOT tables ..Analyze

    I see that Oracle Index Organized Tables are not getting analyzed by itself. Is this expected? Do i need to analyze this table manually ? We are using 10.1.0.5 Thanks

  • Workbook could not open

    hello all I am trying to open workbooks from one of the computers in the project and i get the message "Workbook could not opened, since it was comppresed".The long text is talking about insttaling Microsoft JAVA patch. Will this patch solve the prob

  • Modal Window to external Url

    Hello all! I found some forum posts but I couldn't find a solution on that. We are having two WDJ applications, running in portal. In application "A" I want to call application "B", whilst App "A" needs to be unmodifieable. I would prefer a pop up wi

  • How to Search by *Displayed* Value

    When a format mask is applied to numeric field in an Innteractive Report, e.g. 999G999G999G999G999G990, search operations from the Search Bar do not match any entries if the mask characters are included. For example, the data value from the database

  • 4-line e-mail header is missing from printed e-mail off hp e-printer

    This happened suddenly, from one day to the other.. Now when I receive an e-mail to my customized hp-eprint printer, there is no To / FROM / DATE / SUBJECT line anymore How can I restore it? Thank you. This question was solved. View Solution.