Need to access value on another component to cross-validate...

Hi,
I need to do a cross-validation on a field against value filled on the same form. The model is only updated after validation has completed successfully according to the Faces lifecycle, thus reading the managed bean would prove fruitless.
Does anyone know how to access a value in another field on the same form so that I can cross-validate against?
Regards...
AT

try this,
request.getParameter("<BackingBeanName:fieldName>").
This should give you the value.
HTH !

Similar Messages

  • Need to bind value attributes of Component controller with value attributes

    Hi,
    I am developing a Java Web Dynpro application which is importing RFC Model.

    Hi Kaushik,
    It is very simple to enter values in webdynpro and to update the ztable through RFC
    All you hav to do is
    1. Create the ztable , RFC to import data into that table,
    2. Create the model in webdynpro with that RFC
    3. First map the ModelInputElements to the component controller(say zid, zname) (you can have your own value attribute in component controller say id , name )
    4. Map the attributes to the view where the input field is there
    5. Now write the code as follows,
    Zxxx in = new Zxxx();
    wdContext.nodeZxx_InputElement.bind(in);
    in.setZid(wdcontext.currentContextElement().getId()); // getId component controllers attribute and getZid is model' s mapped attributre
    in.setZname(wdcontext.currentContextElement().getName()); // getName component controllers attribute and getZname is model's mapped attributre
    /* u need not have to map that model attrobute to component attribute for that */
    try
    in.execute();
    Catch(Eception e)
    e.printStackTrace();
    Regards,
    Sam Charles J.

  • View of one component need to be used in another component.

    Hi Experts,
    I have created a view in component  BP_DATA . I want to use this view in component "BP_HEAD". Can anyone please help me with the steps needed to make the view available in  BP_DATA. Do i need to do any type of binding for this.

    Hello Ansal,
    For using BP_DATA/yourview in component BP_HEAD, first you will have to expose BP_DATA view in component interface. Then you can access that view in BP_HEAD by creating component usage. Once you add the view of BP_DATA in component usage of BP_HEAD, it will be available as a normal view in this component.
    -Regards

  • Make public property of a component and access it from another component?

    Component "alpha.mxml"
    propriety: mapevent_mapready
    Component "beta.mxml"
    <alpha:alpha mapevent_mapready="some_function()" />
    how?

    Hi leonapster,
    Say in your component alpha.mxml
    <!--alpha.mxml -->
    <AlphaComponent>
         public var mapevent_mapready:Boolean=false;
    </AlphaComponent>
    <!-- Beta.mxml -->
    <BetaComponent>
    <mx:Script>
         private function init():void
              //Now you can access the mapevent_mapready property of Alpha Component as below:
              var bool:Boolean = alphaComp.mapevent_mapready;
         alphaComp.mapevent_mapready
    </mx:Script>
    <alpha:alpha id="alphaComp" />
    </BetaComponent>
    Thanks,
    Bhasker

  • Row with visibility expression - need to access values in other rows if present

    I have a row that I added and set its visibility with an expression since I want to handle its display differently than the others in its group.  So, to calculate the value I need to refer to other rows.
    The report has its first column with names of the "metrics" we are reporting on.
    Shoe Volume
    Shoe Revenue
    Shoe Revenue / Order
    Its that last one that Id like to use an expression based on the other two, but that seems rather messy in SSRS.
    The data comes from a stored procedure, and Im thinking thats a better place to handle this, rather than SSRS.
    Is there any decent solution to this in the report with an expression?

    It is a little confusing... You say that you wish to hide a row in your report based on other values in the table. That is simple to do. Just use IIf statement that will return true when you want to hide the row. Something like =IIf(Fields!Other.Value =
    17.7, True, False).
    You say that your first column has the names of Metrics and you give three names. Are all three in a single column or is it three columns?
    You also state that it is the 3rd of these that you wish to use an expression with. Does that mean that you want to hide that column and not the row? or you want to hide that column as well? Or that you want to hide this one value in the row and not the
    entire row?
    In any case, IIf statement is most often used for Hide expressions because an item (row, column, cell, table, etc.) is either hidden or visible... 2 states... and IIf returns a Boolean. You refer to other fields in the same scope using a Fields!Field_Name.Value
    syntax so simply check if the value from the other cell meets your criteria to hide.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • How does one Component access another Component via Component Interface ?

    Folks,
    Hello. I have developed my project as 2 Components ( A and B). I have created a Search Record and a Component Interface for each Component.
    Now, a push button in a page in Component A needs to access all pages in Component B via its Component Interface. What are the steps to do for Component A to access Component B via their Component Interface ?
    Thanks.

    You could define the PeopleCode to make the Component Interface work on the FieldChange event of that push button you were talking about, but it would be better to put your PeopleCode in a Save event. To do that, you would use the DoSaveNow() function on the button's FieldChange event. Then, that would trigger a save, and you could put your code on the SavePostChange of any field or on the Component itself.
    Once you decide on an event, the easiest way to start is to open the blank PeopleCode window. Also, place the Component Interface in your project. Next, drag the Component Interface from the Project and drop it into your PeopleCode editor window. This will generate a bunch of PeopleCode that you can use as a starting place.
    The Component Interface allows you to remote control a component as if your code were a user sitting at the Browser. So, when coding the program that uses the Component Interface, you have to have that mindset. It helps me to open a browser and walk through what I want my code to do. Then, I code each step as I do it online.
    There is probably a lot more that you need to know, but is this a good starting point? Is it somewhat on track with what you were asking? Let me know were to go from here with more information.

  • Can i use one JSF component's value for other component in the same page.

    Can i use one JSF component's value for other component in the same page.
    For example
    I have a <h:selectBooleanCheckbox id="myChk"> in my jsf page, i want to access its value for another component like:
    <h:commandButton disabled="#{myChk.checked}" action="myAction" value="myValue" />
    ** "myChk.checked" >> I am just asuming "checked" property is available...

    Bind the checkbox to a UIInput myChk property. Then you can reference this property from the page, e.g.
    <h:selectBooleanCheckbox binding="#{myBean.myChk}" onchange="submit();" />
    <h:commandButton disabled="#{myBean.myChk.value}" action="myAction" value="myValue" />

  • Need to access a context_node in an another view of the same component

    Hi experts,
    I need to access a context_node which is not in my view but it exist in an another view of the same component.
    The component is ICCMP_BP_DETAIL.
    i need the context_node "CUSTOMER" from the view Bupadetail to view Bupacreate. so that i can make those context_node Attributes available in the configuration screen.
    regards,
    chella.

    Hi Chella,
    You can access the context node from other view using the custom controler or getting a context node from view that you are and use the method get_parent(to get predecessor objet) or get_related_entity(to get sucessor object).
    I think the second way is easier.
    Use transaction GENIL_MODEL_BROWSER and GENIL_BOL_BROWSER to know in wich object you are and where you have to go!
    Best regards,
    Caíque Escaler

  • The circuit of my macbook is dead yet the hard drive is fine.  I need to access a file from the hard drive, how can i do this? is there a cable i can connect to another mac that will let me transfer the file?

    The circuit of my macbook is dead yet the hard drive is fine.  I need to access a file from the hard drive, how can i do this? The mac turns on the screen freezes as bright blue.  Is there a cable i can connect to another mac that will let me transfer the file?

    There is another option if the Macbook will start up in Target Disk Mode.
    Restart the computer while holding down the T key. If you see the firewire symbol moving around on the screen you can connect this one to another one in TDM. You will need a suitable cable to connect the two Macs.
    http://support.apple.com/kb/ht1661
    Firewire symbol:

  • Need to Access the dvd on another computer

    I need to access a dvd player on another mac to install some software and i have followed the apple instructions below for sharing another computers dvd and everything works until its time for me to select remote disk under devices...there is nothing there to select...The other mac shows that it is sharing it dvd player...the internet connection is working as i am able to share that computers screen but cant get it to provide me with "remote disk"...any thoughts?? I do not have an internal DVD player it has been turned into a second hard Drive...thank again
    To access a DVD or CD on another computer:
    Make sure both computers are on the same network (wired or wireless), and the DVD or CD Sharing software is installed on the computer with the optical drive.
    Make sure the computer with the optical drive is set up to share the disc.
    On a computer with Mac OS X v10.4.10 or later: Choose Apple menu > System Preferences, click Sharing, and then select the “DVD or CD Sharing” checkbox. Select “Ask me before allowing others to use my DVD drive” if you want to be notified when a computer tries to access the drive.
    On a computer with Windows XP or Vista: Open the DVD or CD Sharing control panel and select “Enable Remote DVD or CD.” Select “Ask me before allowing others to use my DVD drive” if you want to be notified when a computer tries to access the drive.
    Insert the disc into the optical drive.
    On the computer without the optical drive, select Remote Disc under Devices in a Finder window sidebar. If you see the “Ask to use” button, click it.

    If you are using two Macs you can try to do this via Target Disk Mode. Info here:
    http://docs.info.apple.com/article.html?artnum=58583

  • Need to get sequence value in another column in oracle

    Hi ALL,
    I have sql query as below
    select header_id,order_number from oe_order_headers_all.
    and data it is displaying as
    heder_id     order_number
    111            500001
    121            500400
    I need to display  another field with some sequence value like as below
    id     heder_id     order_number
    1      111                    500001
    2      121                    500400
    so how to get sequence value in another column please help me on this.
    Thnaks

    You can just use ROWNUM Pseudocolumn
    select rownum id, header_id,order_number from oe_order_headers_all

  • Need to access a dvd on another computer

    I need to access a dvd player on another mac to install some software and i have followed the apple instructions below for sharing another computers dvd and everything works until its time for me to select remote disk under devices...there is nothing there to select...The other mac shows that it is sharing it dvd player...the internet connection is working as i am able to share that computers screen but cant get it to provide me with "remote disk"...any thoughts?? I do not have an internal DVD player it has been turned into a second hard Drive...thank again
    To access a DVD or CD on another computer:
    Make sure both computers are on the same network (wired or wireless), and the DVD or CD Sharing software is installed on the computer with the optical drive.
    Make sure the computer with the optical drive is set up to share the disc.
    On a computer with Mac OS X v10.4.10 or later: Choose Apple menu > System Preferences, click Sharing, and then select the “DVD or CD Sharing” checkbox. Select “Ask me before allowing others to use my DVD drive” if you want to be notified when a computer tries to access the drive.
    On a computer with Windows XP or Vista: Open the DVD or CD Sharing control panel and select “Enable Remote DVD or CD.” Select “Ask me before allowing others to use my DVD drive” if you want to be notified when a computer tries to access the drive.
    Insert the disc into the optical drive.
    On the computer without the optical drive, select Remote Disc under Devices in a Finder window sidebar. If you see the “Ask to use” button, click it.

    If you are using two Macs you can try to do this via Target Disk Mode. Info here:
    http://docs.info.apple.com/article.html?artnum=58583

  • It says 'autorisation is need to access...' when I transfer music from one laptop to another using Home Sharing

    When I go to transfer my library from my old netbook running XP to my new one running Windows 7, I get a message after all the library is transfered saying 'autorisation is need to access...' on all the transfered files. I managed to successfully transfer a few hundred files but my laptop restarted when my anti-virus updated and since then I havnt been able to transfer anything else.
    Any help would be greatly appreciated.

    Don't bother with HomeSharing.
    Copy the ENTIRE iTunes folder from the old computer to the new computer.

  • How to retrieve a page item value in another page?

    Hi,
    how to retrieve a page item value in another page?
    say P55_COURSES_TO_EVALUATE is my page item name and it is a select list.Based on the value selected,in the next page i shd show details related to the selected value and for this i need P55_COURSES_TO_EVALUATE value in the next page.How Do I get it?When I try to retrieve the values it simply returns nothing.
    Any pointers would be really helpful.
    Thanks in advance.

    Hi,
    Could you please tell how you try use it ?
    If you set value to item P55_COURSES_TO_EVALUATE and submit page, value is saved to session state.
    Then you can use that item in any page like
    :P55_COURSES_TO_EVALUATEYou can not access page value in javascript/jQuery from other pages like
    $v('P55_COURSES_TO_EVALUATE')
    document.getElementbyID('P55_COURSES_TO_EVALUATE')
    $(#P55_COURSES_TO_EVALUATE)Because item is not in other pages. In javascript from other pages you can use
    var a = '&P55_COURSES_TO_EVALUATE.';Regards,
    Jari

  • Passing Dynamic Internal Table values to another program

    Hi,
    I have a program ZSAPNEW.
    In this I have created a Dynamic internal table <fs_emp>. The number of fields differ for each run. The values are passed into <fs_emp> in this program.  Now I need to submit thsi program from a main program ZHEAD and then display the values got from ZHEAD. For this I need to access the values retrieved from ZSAPNEW in <fs_emp> in ZHEAD. I cant figure out how to do this. I tried IMPORT ing the reference of teh field symbol too/ But its not allowing references in IMPORT/EXPORT. And since the table is of type ANY( as structure varies) I cant assign it to an internal table and then pass. Can some one suggest a solution please.
    Suzie

    Hi
    You need to know how the strcture of your table is generated In both programm:
    - Calling program:
    DATA: LR_VALUE_DESCR  TYPE REF TO CL_ABAP_ELEMDESCR,
          COMPONENT       TYPE CL_ABAP_STRUCTDESCR=>COMPONENT,
          LT_COMPONENTS   TYPE CL_ABAP_STRUCTDESCR=>COMPONENT_TABLE.
    DATA: LT_STRUC        TYPE REF TO CL_ABAP_STRUCTDESCR,
          LT_TAB          TYPE REF TO CL_ABAP_TABLEDESCR.
    DATA: L_INDEX TYPE C.
    DATA: W_LINE          TYPE REF TO DATA,
          INT_TABLE       TYPE REF TO DATA.
    FIELD-SYMBOLS: <WA>    TYPE ANY,
                   <ITAB>  TYPE TABLE,
                   <VALUE> TYPE ANY.
    DO 4 TIMES.
      CLEAR COMPONENT.
      MOVE SY-INDEX TO L_INDEX.
      CONCATENATE 'FIELD' L_INDEX INTO COMPONENT-NAME.
      MOVE CL_ABAP_ELEMDESCR=>GET_C( P_LENGTH = 4 ) TO LR_VALUE_DESCR.
      COMPONENT-TYPE = LR_VALUE_DESCR.
      INSERT COMPONENT INTO TABLE LT_COMPONENTS.
    ENDDO.
    * Workarea
    LT_STRUC = CL_ABAP_STRUCTDESCR=>CREATE( P_COMPONENTS = LT_COMPONENTS
                                                       P_STRICT     = 'X' ).
    CREATE DATA W_LINE TYPE HANDLE LT_STRUC.
    ASSIGN W_LINE->* TO <WA>.
    * Table
    LT_TAB = CL_ABAP_TABLEDESCR=>CREATE( P_LINE_TYPE = LT_STRUC ).
    CREATE DATA INT_TABLE TYPE HANDLE LT_TAB.
    ASSIGN INT_TABLE->* TO <ITAB>.
    DO 3 TIMES.
      CLEAR <WA>.
      DO 4 TIMES.
        MOVE SY-INDEX TO L_INDEX.
        CONCATENATE 'FIELD' L_INDEX INTO COMPONENT-NAME.
        ASSIGN COMPONENT COMPONENT-NAME OF STRUCTURE <WA> TO <VALUE>.
        MOVE SY-INDEX TO <VALUE>.
      ENDDO.
      APPEND <WA> TO <ITAB>.
    ENDDO.
    DATA: WA_INDX TYPE INDX.
    WA_INDX-USERA = SY-UNAME.
    WA_INDX-PGMID = 'MAXMAX'.
    EXPORT TAB = <ITAB>
      TO DATABASE INDX(XY)
      FROM WA_INDX
      CLIENT SY-MANDT
      ID 'TABLE'.
    Called program:
    DATA: LR_VALUE_DESCR  TYPE REF TO CL_ABAP_ELEMDESCR,
          COMPONENT       TYPE CL_ABAP_STRUCTDESCR=>COMPONENT,
          LT_COMPONENTS   TYPE CL_ABAP_STRUCTDESCR=>COMPONENT_TABLE.
    DATA: LT_STRUC        TYPE REF TO CL_ABAP_STRUCTDESCR,
          LT_TAB          TYPE REF TO CL_ABAP_TABLEDESCR.
    DATA: L_INDEX TYPE C.
    DATA: W_LINE          TYPE REF TO DATA,
          INT_TABLE       TYPE REF TO DATA.
    FIELD-SYMBOLS: <WA>    TYPE ANY,
                   <ITAB>  TYPE TABLE,
                   <VALUE> TYPE ANY.
    DO 4 TIMES.
      CLEAR COMPONENT.
      MOVE SY-INDEX TO L_INDEX.
      CONCATENATE 'FIELD' L_INDEX INTO COMPONENT-NAME.
      MOVE CL_ABAP_ELEMDESCR=>GET_C( P_LENGTH = 4 ) TO LR_VALUE_DESCR.
      COMPONENT-TYPE = LR_VALUE_DESCR.
      INSERT COMPONENT INTO TABLE LT_COMPONENTS.
    ENDDO.
    * Workarea
    LT_STRUC = CL_ABAP_STRUCTDESCR=>CREATE( P_COMPONENTS = LT_COMPONENTS
                                                       P_STRICT     = 'X' ).
    CREATE DATA W_LINE TYPE HANDLE LT_STRUC.
    ASSIGN W_LINE->* TO <WA>.
    * Table
    LT_TAB = CL_ABAP_TABLEDESCR=>CREATE( P_LINE_TYPE = LT_STRUC ).
    CREATE DATA INT_TABLE TYPE HANDLE LT_TAB.
    ASSIGN INT_TABLE->* TO <ITAB>.
    DATA: WA_INDX TYPE INDX.
    WA_INDX-USERA = SY-UNAME.
    WA_INDX-PGMID = 'MAXMAX'.
    IMPORT TAB = <ITAB>
      FROM DATABASE INDX(XY)
      TO WA_INDX
      CLIENT SY-MANDT
      ID 'TABLE'.
    LOOP AT <ITAB> ASSIGNING <WA>.
      WRITE: / <WA>.
    ENDLOOP.
    The sample above use IMPORT/EXPORT from database: if the called program can't know the structure of the dynaic table, you need to transfer it by the same way you transfer the data
    Max

Maybe you are looking for

  • ITunes background color change

    Just after I installed the latest update for iTunes, the next time I opened it, the background color is this funky lavender/pinkish color. If I shrink the window the visible portion of the window returns white until I scroll the page. Then when the n

  • Need help accessing PC's

    I will be starting my Graduate School soon at a Fundamentalist seminary (www.bju.edu). Internet access here seems to be ultra filtered, and ultra blocked. I have a few questions about being able to access other computers on the Intranet. I cant seem

  • New MBA and Migration Assistant

    I just bought the new MacBook Air and tried to use the Migration Assistant with my previous MacBook via my home wifi. I left it overnight and woke up to the calculation that the migration would take 103 hours. (!!!) Any tips on how to make this go fa

  • Adobe Flash Player won't install on my Windows 8 computer

    All we get is a blank page when trying to install Flash Player. I've done all of the suggested actions on the Adobe site, but it still won't install.

  • Restrict users from using Manual series

    Hi SAP, Is there a way to restrict users from using the Manual series? Thanks, Janice