How to change the text of label dynamically

Hi all,
I have done a dynpro program.It requires to implement the dynamically display the label text, for example: there is a label, sometimes, we want to display "Purchase Order" and sometimes we want to display "Sales Order". Can anyone tell me how to change the text of label according to my requirements? thanks in advance!

Hi Wei,
AS of now you will not be able to change the Text Field ( Label ) dynamically or at runtime. This is a limitation.Refer to this link:
http://help.sap.com/saphelp_nw04/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm
But, there is a way around.
You can make a text field Visible / Invisible based on your program logic. So, based on what you want, you can process a module which will take care of that.
Have a look at these DEMO Code. You can have a good idea to implement the logic.
DEMO_DYNPRO_MODIFY_SCREEN - Demonstration of Dynamic Screen Modifications
Thanks,
Samantak.

Similar Messages

  • How to change the text in JTextField Dynamically

    i am trying to change the contents of JTextField dynamically like this
    textfield.setText();but it is giving error...........how can i do it....

    here is the code .....it is showing error in line 18 and 20 as identifier expected
    their i am trying to make JTextField editable....
    plz have a look
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    import javax.swing.SwingUtilities.*;
    import javax.swing.filechooser.FileFilter;
    //import javax.swing.JEditorPane;
    import java.net.URL;
    public class tm extends JFrame implements ActionListener
    public JTextField[] programtext = new JTextField[30];
    public JTextField[] tapetext = new JTextField[30];
    tapetext.setEditable(true);
    public JTextField[] statetext = new JTextField[30];
    statetext.setEditable(true);
    int count =0;
    public static void main (String arg[]){
    tm m=new tm();
    m.setSize(1000,500);
    m.show();
    JButton loadp, run, step,loadi,loads;
    public tm()
    Container c ;
    c = getContentPane();
    c.setLayout(new FlowLayout());
    loadi = new JButton("LOAD INPUT STRING");
    c.add(loadi);
    loadi.addActionListener(this);
    loadi.setBounds(200,25,100,50);
    loadp = new JButton("LOAD PROGRAM");
    c.add(loadp);
    loadp.addActionListener(this);
    loadp.setBounds(300,25,100,50);
    run = new JButton("RUN");
    c.add(run);
    run.addActionListener (this);
    run.setBounds(400,25,100,50);
    step = new JButton("STEP");
    c.add(step);
    step.addActionListener(this);
    step.setBounds(500,25,100,50);
    loads = new JButton("LOAD STATES");
    c.add(loads);
    loads.addActionListener(this);
    loads.setBounds(600,25,100,50);
    JPanel prog = new JPanel();
    prog.setLayout(new GridLayout(30,1));
    for(int i=0;i<programtext.length;i++)
    programtext= new JTextField(10);
    prog.add(programtext[i]);
    JPanel tape = new JPanel();
    tape.setLayout(new GridLayout(30,1));
    for(int i=0;i<tapetext.length;i++)
    tapetext[i]= new JTextField(10);
    tape.add(tapetext[i]);
    JPanel state = new JPanel();
    state.setLayout(new GridLayout(30,1));
    for(int i=0;i<statetext.length;i++)
    statetext[i]= new JTextField(10);
    state.add(statetext[i]);
    JPanel contentPane3 = new JPanel();
    contentPane3.setBorder(BorderFactory.createEmptyBorder(50, 50, 50, 50));
    contentPane3.setLayout(new BorderLayout());
    contentPane3.add(state, BorderLayout.CENTER);
    contentPane3.add(c, BorderLayout.NORTH);
    contentPane3.add(prog, BorderLayout.WEST);
    contentPane3.add(tape, BorderLayout.EAST);
    setContentPane(contentPane3);
    public void actionPerformed(ActionEvent e)
    try{
    if(e.getSource ()==loadp)
    JFileChooser chooser=new JFileChooser();
    int r= chooser.showOpenDialog(this);
    if(r==JFileChooser.APPROVE_OPTION )
    String name=chooser.getSelectedFile().getName();
    File f=chooser.getSelectedFile();
    FileInputStream filestream = new FileInputStream(f);
    BufferedInputStream bufferstream = new BufferedInputStream(filestream);
    DataInputStream datastream = new DataInputStream(bufferstream);
    String record = null;
    programtext[0].setText("");
    try { 
    int i = 0;
    while (true)
    record=datastream.readLine();
    if(record == null){
    break;
    programtext[i].setText(record);
    i++;
    count = count + 1;
    System.out.println ("the no of lines of the program are"+ count);
    catch (Exception p)
    System.out.println(p);
    else if(e.getSource()==loads)
    JFileChooser chooser3=new JFileChooser();
    int r3= chooser3.showOpenDialog(this);
    if(r3==JFileChooser.APPROVE_OPTION)
    String name=chooser3.getSelectedFile ().getName();
    File f3=chooser3.getSelectedFile();
    FileInputStream filestream3 = new FileInputStream(f3);
    BufferedInputStream bufferstream3 = new BufferedInputStream(filestream3);
    DataInputStream datastream3 = new DataInputStream(bufferstream3);
    String record3 = null;
    statetext[0].setText("");
    try { 
    int i = 0;
    while (true)
    record3=datastream3.readLine();
    if(record3 == null){
    break;
    statetext[i].setText(record3);
    i++;
    catch (Exception p3)
    System.out.println(p3);
    else if(e.getSource()==loadi)
    JFileChooser chooser2=new JFileChooser();
    int r2= chooser2.showOpenDialog(this);
    if(r2==JFileChooser.APPROVE_OPTION )
    String name=chooser2.getSelectedFile().getName();
    File f2=chooser2.getSelectedFile();
    FileInputStream filestream2 = new FileInputStream(f2);
    BufferedInputStream bufferstream2 = new BufferedInputStream(filestream2);
    DataInputStream datastream2 = new DataInputStream(bufferstream2);
    String record2 = null;
    tapetext[0].setText("");
    try { 
    int i = 0;
    while (true)
    record2=datastream2.readLine();
    if(record2 == null){
    break;
    tapetext[i].setText(record2);
    i++;
    catch (Exception p2)
    System.out.println(p2);
    else if(e.getSource ()==run)
    String temp="";
    String statetemp=" ";
    String tapetemp=" ";
    int l=0;
    int tp=0;
    String pars[][] = new String[50][5];
         for(int m=0;m<count;m++){
    temp = programtext[m].getText();
    String str[]=temp.split(" ");
    for(int k=0;k<5;k++){
    pars[m][k] =str[k];
    System.out.println(pars[m][k]);
    statetemp = statetext[0].getText();
    tapetemp = tapetext[l].getText();
    while(pars[tp][0]==statetemp && pars[tp][1]==tapetemp && tp><count)
         statetemp = pars[tp][2];
         tapetemp = pars[tp][3];
         statetext[0].setText() = statetemp;
         tapetext[tp].setText() = tapetemp;
         if(pars[tp][4]=="R")
         l=l+1;
         else{
         l=l-1;
         tp++;      
    else if(e.getSource()==step)
    catch(Exception t)
    System.out.println(t);

  • How to change the text of a user defined field in dynamic selections?

    Logical Database PSJ is used by t code CJI3 - we added a couple of user fields into the dynamic selections of CJI3.
    Now - how to change the text of this user filed (USR01 of structure PRSP_R in logical database PSJ)?
    Found an OSS note - 86980 - that tells that this is not possible.
    But when we read the documentation on the user field (CJI3 - dynamic selections  - double click on user field - F1), it shows the following text:
    User-defined field in which you can enter general information with a length of up to 20 characters.
    Dependencies
    The names (key words) for  user-defined fields depend on the field key.
    Now the question is where to change the field key..
    Thanks,
    Ven

    Madhu - you did not get the question I think.
    Anyways - I found an OSS note 1266643 - this code change should take care of the issue - it will then reflect the details maintained in custoizng at transaction code OPS1..
    Thanks,

  • How to change the text of a button dynamically in module pool

    hi gurus,
    how to change the text of button dynamically

    Hi ,
    Declare a variable in TOP Include with your button name.
    Example : P_BUTTON(20) TYPE C.
    Place button with name P_BUTTON on you screen. Do not forget to mark it as "Output Field". [ Double click on button, Attributes --> Program tab --> tick "Output Field".
    In you PBO / PAI , whereever you want to change your text -
    Assign value to P_BUTTON.
    Example -
    iF COND1..
    P_BUTTON = 'EDIT'.
    ELSEIF COND2.
    P_BUTTON = 'DISPLAY'.
    ENDIF.
    Regards,
    Mohaiyuddin

  • HoW to ChaNGE the text in the mobile application to be in MulTi-CoLoR text

    _*  Do anyone can tell me how to change the text in the mobile application to be in multi-color text, to make it more interesting and increase readability?
    Is it using the Graphic's paint() method? or any better suggestion?
    Please give the short example if can?
    Please help... "_"
    Hearing from u all soon...@_@
    thanks....

    Go into outline view. If you can see the outlines of the letterforms, you can't just change the text. If the letterforms are solid black, take the type tool, select the text and type yours.
    Anyway you can just select the letters, take the type tool and type new text.
    Working with the type tool is a basic. Please see the manual for details

  • How to change the text of a field in organisational assignment.

    hi gurus,
    how to change the text of field MSTBR (super visor) to a differnt name in info type pa0001.
    i have changed the field name in cmod , changed name appears in table.but it is not appearing in the info type screen 0001.
    how to resolve this pls help me..

    hi,
    The Field showing in the infotype 1 is FORPR.
    Change the text of this Field in CMOD.
    CMOD ->Go to ->tect Enhancements->keywords-> Change ->FORPR
    Change the text and check again.
    Regards,
    Manoj.

  • How to change the text of customer tab in Me23n

    Hi
    I have added new customer tab in Me23n at item level.
    Its text is Customer Data.
    I would like to change to some other text.
    How to change the text of customer tab in Me23n
    Regards
    Amruta

    Amruta,
    I had the same query today and finally found the answer.
    In order to change the title text or description of the "Customer Data" tab in ME23N, etc. you need to define a new text symbol in program SAPLXM06. The text symbol must be number 111 for the PO data. Make sure you define this text symbol in the language you are using when viewing the PO. I had issues with this as the original language of object SAPXM06 is not my logon language.
    The standard code which picks up this text is in function module MEGUI_BUILD_PO_ITEM_PLUGIN. I could not find any documentation around this functionality.
    Hope this helps!
    Ben

  • How to change the text of a RadioButton in JDeveloper 11.1.2.0.0

    How to change the text of a RadioButton in JDeveloper 11.1.2.0.0

    Select the radio button, open the property inspector (ctrl+shift+i) select the 'Visual' tab and search for the 'Text' property. There you can change the text.
    Timo

  • I cannot find how to change the language for labels in a quiz

    I cannot find how to change the language for labels in a quiz

    You have to be aware that this will only change labels if you edit before adding quiz slides: Preferences, Quiz, Default Labels. You will have to edit the labels, choosing another language will not change them automatically.

  • How to change the text under RECORD WORKING TIME IN ESS.

    Hi,
    How to change the text under RECORD WORKING TIME in ESS.
    Is there any setting at page or iview level?
    Please help me.
    Regards,
    Thirun.

    Hi,
    If it is standard business package ,then check home page framework
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0e3a488-cdc2-2b10-209b-e01a0ed934b4
    Regards
    Koti Reddy

  • How to change the text Transport id code in sus

    Hi,
    How to change the text Transport id code in sus while creating ASN
    Please advise.
    Regards,
    manu

    SE80---> BSP APPLICATION with SRMSUS ---> views -->asn > detail_edit.inc.->
    On the right hand side in the details ---> search for
    BBP_SUS_UI/ASN_TRANSPORT_IDENTIFICATION
    replace the above with the following
    BBP_SUS_UI/INVOICE_DOCUMENT_NUMBER
    BBP_SUS_UI/INVOICE.
    there is no entry available for invoice number , only the above two are available.
    save the changes
    activate the changes
    REWARD POINTS IF USEFULL

  • How do change the text color in the variable screen ?

    Hi Experts ,
    I would like to know about , How do change the text color in the variable screen ?
    Using web templates (Analytical) can get the output. It has the variable screen contains 6 fields (Company code, Country , Region , COB, Plant and Purchasing Group). I want to make RED color text on Plant. Please help me .
    Thank you ,
    Prasad.

    Hi,
    I am looking for nearly the same. What I have found is that it seems to manipulate the SAP theme that is used in standard when template is executed in the portal. Just display the source code of the HTML and there you will see the included SAP theme (normally SAP_TRADESHOW). Then you have to go to the SAP portal and change this stuff. But for that you have to know where to find it and what impact this change has.
    I am not pretty sure if this is the right way. But as I want to change the standard layout of a whole template to a customer specific layout I think there is no other way in BI7.0.
    Regards,
    Peter

  • How to change the text for the tabs of a tabstrip control dynamically

    Hi Guys,
        I am having two screens in a transaction.
    1. 1st screen has material number as an input and submit push button
    2. 2nd screen has two tabs in a tabstrip control.
        I want to display material description and plant number as heading for the two tabs based on the material number entered by the user in the 1st screen. Means i want to change the text dynamically. Is there any possible way? If it is there please help me. Very urgent...
    Thanks in advance
    James.

    Hi,
    If you set the "Output field" attribute for a pushbutton/tab, you can also set its text dynamically in the ABAP program. To do this, you must create a field in the ABAP program with the same name as the pushbutton/tab. You must then assign the required text to the field before the screen is displayed.
    For example define a global field in your program called MATNUM(20) and use this as the name for the material number tab on the tabstrip. Then you can assign a text MATNUM = 'Material Number' and this will appear as the tab title. Don;t forget to set the "Output field" attribute on the tab.
    Hope it helps

  • How to Change the Text Box to LOV where the Text Box displayed dynamically

    Hi All,
    I have to Change the Text Box to LOV. But the Text Box is not the static one.
    In the Expense Screen, when i select the particular expense type, additonal infomation is getting displayed.
    There is a one additional field called 'Portfolio Code' . This is a text Box. I need to change this as LOV.
    Even i am not sure how this is getting displyed. This column is mapped to attriubte14 of AP_EXPENSE_LINES_ALL table.
    Please advice
    Thanks,
    Mani

    Controller code continues
    private void createDirectBinding(OAWebBean oawebbean, String s, AttributeKey attributekey, String s1, String s2)
    OAWebBean oawebbean1 = oawebbean.findChildRecursive(s);
    oawebbean1.setAttributeValue(attributekey, new OADataBoundValueViewObject(oawebbean1, s2, s1));
    private void createDirectBinding(OAWebBean oawebbean, String s, AttributeKey attributekey, String s1)
    OAWebBean oawebbean1 = oawebbean.findChildRecursive(s);
    oawebbean1.setAttributeValue(attributekey, new OADataBoundValueViewObject(oawebbean1, s1, "DetailsPagePVO"));
    private void processRequestNormalDetails(OAPageContext oapagecontext, OAWebBean oawebbean)
    OAMessageChoiceBean oamessagechoicebean = (OAMessageChoiceBean)oawebbean.findChildRecursive("ExpTypeChoice");
    oamessagechoicebean.setPickListCacheEnabled(false);
    oamessagechoicebean = (OAMessageChoiceBean)oawebbean.findChildRecursive("GuestType");
    oamessagechoicebean.setPickListCacheEnabled(false);
    OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)oawebbean.findChildRecursive("Justification");
    if(oamessagetextinputbean != null)
    oamessagetextinputbean.setWrap("soft");
    createDirectBinding(oawebbean, "ExpTypeChoice", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "StartDate", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "Justification", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ExpenseGroup", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "LocationName", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "RBLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "DetailMerchantName", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "DetailTaxClassification", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "DetailTaxCode", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "TaxRegNumber", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ReceiptNumber", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "Reference", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "TaxpayerID", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "AirTravelType", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "AirTicketClass", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "AirTicketNumber", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "AirFromLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "AirToLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "AccEndDate", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "MealNumberAttendees", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "MealAttendees", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "DetailDailyRate", STYLE_CLASS_ATTR, "DetailDailyRateCSS");
    createDirectBinding(oawebbean, "NumberOfDays", STYLE_CLASS_ATTR, "DetailDailyRateCSS");
    createDirectBinding(oawebbean, "DetailReceiptAmount", STYLE_CLASS_ATTR, "DetailReceiptAmountCSS");
    createDirectBinding(oawebbean, "ReceiptCurrencyChoice", STYLE_CLASS_ATTR, "ReceiptCurrencyChoiceCSS");
    createDirectBinding(oawebbean, "InverseExchRate", STYLE_CLASS_ATTR, "DetailExchRateCSS");
    createDirectBinding(oawebbean, "ExchRate", STYLE_CLASS_ATTR, "DetailExchRateCSS");
    createDirectBinding(oawebbean, "DetailDailyRate", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "DetailReceiptAmount", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "DetailReimbursAmt", CURRENCY_CODE, "ReimbursementCurrencyCode");
    createDirectBinding(oawebbean, "ParentGuestTypeSortableHeader", REQUIRED_ATTR, "FB_GuestTypeColReq");
    createDirectBinding(oawebbean, "ParentGuestNameSortableHeader", REQUIRED_ATTR, "FB_GuestNameColReq");
    createDirectBinding(oawebbean, "ParentGuestTitleSortableHeader", REQUIRED_ATTR, "FB_GuestTitleColReq");
    createDirectBinding(oawebbean, "ParentGuestTaxIdSortableHeader", REQUIRED_ATTR, "FB_GuestTaxIdColReq");
    createDirectBinding(oawebbean, "ParentGuestEmployerSortableHeader", REQUIRED_ATTR, "FB_GuestEmployerColReq");
    createDirectBinding(oawebbean, "ParentGuestEmployerAddrSortableHeader", REQUIRED_ATTR, "FB_GuestEmployerAddressColReq");
    String s = oapagecontext.getParameter("source");
    String s1 = oapagecontext.getParameter("event");
    if("StartDateUpdate".equals(s1) && "StartDate".equals(s))
    setFocusToField("StartDate", oawebbean);
    } else
    if("AmountUpdateReceiptCurrency".equals(s1) && "ReceiptCurrencyChoice".equals(s))
    setFocusToField("ReceiptCurrencyChoice", oawebbean);
    private void processRequestItemizationDetails(OAPageContext oapagecontext, OAWebBean oawebbean)
    OAWebBean oawebbean1 = oawebbean.findChildRecursive("ItemizedDetails");
    OAMessageChoiceBean oamessagechoicebean = (OAMessageChoiceBean)oawebbean1.findChildRecursive("IPL_ExpTypeChoice");
    oamessagechoicebean.setPickListCacheEnabled(false);
    OAMessageChoiceBean oamessagechoicebean1 = (OAMessageChoiceBean)oawebbean1.findChildRecursive("ChildExpTypeChoice");
    oamessagechoicebean1.setPickListCacheEnabled(false);
    oamessagechoicebean = (OAMessageChoiceBean)oawebbean1.findChildRecursive("ExpenseType");
    oamessagechoicebean.setPickListCacheEnabled(false);
    oamessagechoicebean = (OAMessageChoiceBean)oawebbean1.findChildRecursive("ChildGuestType");
    oamessagechoicebean.setPickListCacheEnabled(false);
    OAMessageLayoutBean oamessagelayoutbean = (OAMessageLayoutBean)oawebbean1.findChildRecursive("ChildExpTypeLayout");
    oamessagelayoutbean.setRequired("uiOnly");
    createDirectBinding(oawebbean, "IPL_ExpTypeChoice", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_StartDate", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_Justification", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_LocationName", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_RBLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_MerchantName", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_TaxRegNumber", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_ReceiptNumber", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_Reference", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_TaxpayerID", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildExpTypeChoice", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildStartDate", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildReceiptCurrencyChoice", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildJustification", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildExpenseGroup", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildLocationName", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildRBLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildDetailMerchantName", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildDetailTaxClassification", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildDetailTaxCode", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildAirTravelType", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildAirTicketClass", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildAirTicketNumber", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildAirFromLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildAirToLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildAccEndDate", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildMealNumberAttendees", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildMealAttendees", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildDetailReceiptAmount", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_ReceiptCurrency", STYLE_CLASS_ATTR, "DetailReceiptAmountCSS");
    createDirectBinding(oawebbean, "IPL_OriginalReceiptAmount", STYLE_CLASS_ATTR, "DetailReceiptAmountCSS");
    createDirectBinding(oawebbean, "IPL_ExchangeRate", STYLE_CLASS_ATTR, "DetailExchRateCSS");
    createDirectBinding(oawebbean, "IPL_InverseExchangeRate", STYLE_CLASS_ATTR, "DetailExchRateCSS");
    createDirectBinding(oawebbean, "ChildDetailDailyRate", STYLE_CLASS_ATTR, "DetailDailyRateCSS");
    createDirectBinding(oawebbean, "ChildNumberOfDays", STYLE_CLASS_ATTR, "DetailDailyRateCSS");
    createDirectBinding(oawebbean, "ExpenseReimAmountHeader", TEXT_ATTR, "ReceiptAmountColHeader");
    createDirectBinding(oawebbean, "IPL_ReimbursementAmount", CURRENCY_CODE, "ReimbursementCurrencyCode");
    createDirectBinding(oawebbean, "ItemizationDetailsHeader", TEXT_ATTR, "ChildDetailHeader");
    createDirectBinding(oawebbean, "ChildDetailDailyRate", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "ChildDetailReceiptAmount", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "ChildDetailReimbursAmt", CURRENCY_CODE, "ReimbursementCurrencyCode");
    createDirectBinding(oawebbean, "ReceiptAmount", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "IPL_OriginalReceiptAmount", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "ChildGuestTypeSortableHeader", REQUIRED_ATTR, "FB_GuestTypeColReq");
    createDirectBinding(oawebbean, "ChildGuestNameSortableHeader", REQUIRED_ATTR, "FB_GuestNameColReq");
    createDirectBinding(oawebbean, "ChildGuestTitleSortableHeader", REQUIRED_ATTR, "FB_GuestTitleColReq");
    createDirectBinding(oawebbean, "ChildGuestTaxIdSortableHeader", REQUIRED_ATTR, "FB_GuestTaxIdColReq");
    createDirectBinding(oawebbean, "ChildGuestEmployerSortableHeader", REQUIRED_ATTR, "FB_GuestEmployerColReq");
    createDirectBinding(oawebbean, "ChildGuestEmployerAddrSortableHeader", REQUIRED_ATTR, "FB_GuestEmployerAddressColReq");
    createDirectBinding(oawebbean, "BusinessExpValue", TEXT_ATTR, "ItemizationTotalBusinessExpenses");
    createDirectBinding(oawebbean, "BusinessExpValue", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "PersonalExpValue", TEXT_ATTR, "ItemizationTotalPersonalExpenses");
    createDirectBinding(oawebbean, "PersonalExpValue", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "ReceiptAmountValue", TEXT_ATTR, "ExpenseReportLinesVO", "ReceiptCurrencyAmount");
    createDirectBinding(oawebbean, "ReceiptAmountValue", CURRENCY_CODE, "ReceiptCurrencyCode");
    OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)oawebbean1.findChildRecursive("IPL_Justification");
    oamessagetextinputbean.setWrap("soft");
    oamessagetextinputbean = (OAMessageTextInputBean)oawebbean1.findChildRecursive("ChildJustification");
    oamessagetextinputbean.setWrap("soft");
    String s = oapagecontext.getParameter("source");
    String s1 = oapagecontext.getParameter("event");
    if("DuplicateItemization".equals(s) || "RemoveItemization".equals(s) || "AddItemization".equals(s) || "SingleSelectionChange".equals(s1))
    setFocusToField(oamessagechoicebean1.getID(), oawebbean);
    } else
    if("ChildStartDateUpdate".equals(s1))
    OAMessageTextInputBean oamessagetextinputbean1 = (OAMessageTextInputBean)oawebbean.findChildRecursive("ChildDetailDailyRate");
    OADataBoundValueViewObject oadataboundvalueviewobject = new OADataBoundValueViewObject(oamessagetextinputbean1, "DetailDailyRateRendered", "DetailsPagePVO");
    Boolean boolean1 = (Boolean)oadataboundvalueviewobject.getValue(oapagecontext.getRenderingContext());
    if(boolean1 != null && boolean1.booleanValue())
    setFocusToField("ChildDetailDailyRate", oawebbean);
    } else
    setFocusToField("ChildDetailReceiptAmount", oawebbean);
    } else
    if("StartDateUpdate".equals(s1) && "IPL_StartDate".equals(s))
    setFocusToField("IPL_StartDate", oawebbean);
    } else
    if("IPL_ReceiptCurrencyChange".equals(s1) && "IPL_ReceiptCurrency".equals(s))
    setFocusToField("IPL_ReceiptCurrency", oawebbean);
    private void setFocusToField(String s, OAWebBean oawebbean)
    OABodyBean oabodybean = (OABodyBean)OAWebBeanUtils.findParentByType(oawebbean, "BODY", oracle/apps/fnd/framework/webui/beans/OABodyBean);
    oabodybean.setInitialFocusId(s);
    private void createPPRFlexRegions(OAPageContext oapagecontext, OAWebBean oawebbean)
    OAWebBean oawebbean1 = oawebbean.findChildRecursive("AdditionalFields");
    OAWebBean oawebbean2 = oawebbean.findChildRecursive("ChildAdditionalFields");
    String s = oapagecontext.getProfile("AP_WEB_DESC_FLEX_NAME");
    if(s == null || "N".equals(s) || "H".equals(s))
    return;
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean1);
    Vector vector = (Vector)oaapplicationmodule.invokeMethod("getExpenseTypesVector");
    Vector vector1 = (Vector)vector.elementAt(0);
    Vector vector2 = (Vector)vector.elementAt(1);
    Vector vector3 = new Vector();
    Vector vector4 = new Vector();
    vector.addElement(vector4);
    Boolean boolean1 = (Boolean)oaapplicationmodule.invokeMethod("IsItemizedLine");
    for(int i = 0; i < vector1.size(); i++)
    String s1 = vector1.elementAt(i).toString();
    String s2 = (String)vector2.elementAt(i);
    String s3 = (new StringBuilder()).append("DFF_").append(s1).toString();
    int j = createFlexBean(true, oapagecontext, oawebbean1, s1, s2, s3);
    if(Boolean.TRUE.equals(boolean1))
    String s4 = (new StringBuilder()).append("ChildDFF_").append(s1).toString();
    j = createFlexBean(false, oapagecontext, oawebbean2, s1, s2, s4);
    vector4.addElement(new Integer(j));
    if(oapagecontext.isBackNavigationFired(true))
    return;
    } else
    Serializable aserializable[] = {
    vector
    Class aclass[] = {
    java/util/Vector
    oaapplicationmodule.invokeMethod("configurePVOForDFF", aserializable, aclass);
    oaapplicationmodule.invokeMethod("syncAttCategoryWithExpType");
    return;
    private int createFlexBean(boolean flag, OAPageContext oapagecontext, OAWebBean oawebbean, String s, String s1, String s2)
    OAMessageLayoutBean oamessagelayoutbean = (OAMessageLayoutBean)createWebBean(oapagecontext, "MESSAGE_LAYOUT_BEAN", null, null);
    oawebbean.addIndexedChild(oamessagelayoutbean);
    String s3 = (new StringBuilder()).append("DFF_").append(s).append("Rendered").toString();
    ArrayList arraylist = (ArrayList)oapagecontext.getTransactionTransientValue("flexList");
    Object obj = null;
    Object obj1 = null;
    if(arraylist != null)
    OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)arraylist.get(0);
    String s4 = (String)arraylist.get(1);
    if(oadescriptiveflexbean != null && s4 != null && s.equals(s4) && oadescriptiveflexbean.getUINodeName().equals(s2))
    oamessagelayoutbean.addIndexedChild(oadescriptiveflexbean);
    oamessagelayoutbean.setAttributeValue(RENDERED_ATTR, new OADataBoundValueViewObject(oamessagelayoutbean, s3, "DetailsPagePVO"));
    oapagecontext.removeTransactionTransientValue("flexList");
    return oadescriptiveflexbean.getIndexedChildCount(null) - 2;
    OADescriptiveFlexBean oadescriptiveflexbean1 = (OADescriptiveFlexBean)createWebBean(oapagecontext, "DESCRIPTIVE_FLEX", null, s2);
    oamessagelayoutbean.addIndexedChild(oadescriptiveflexbean1);
    oamessagelayoutbean.setAttributeValue(RENDERED_ATTR, new OADataBoundValueViewObject(oamessagelayoutbean, s3, "DetailsPagePVO"));
    oadescriptiveflexbean1.setAttributeValue(READ_ONLY_ATTR, new OADataBoundValueViewObject(oadescriptiveflexbean1, "SDP_PageReadOnly", "DetailsPagePVO"));
    oadescriptiveflexbean1.setContextListRendered(false);
    oadescriptiveflexbean1.setAttributeValue(FLEXFIELD_NAME, "AP_EXPENSE_REPORT_LINES");
    oadescriptiveflexbean1.setAttributeValue(FLEXFIELD_APPLICATION_SHORT_NAME, "SQLAP");
    oadescriptiveflexbean1.setAttributeValue(REGION_APPLICATION_ID, OIECommonConstants.STATIC_INTEGER_222);
    if(flag)
    oadescriptiveflexbean1.setViewUsageName("ExpenseReportLinesVO");
    } else
    oadescriptiveflexbean1.setViewUsageName("ItemizedLinesVO");
    oadescriptiveflexbean1.setFlexContext(oapagecontext, s1);
    try
    oadescriptiveflexbean1.processFlex(oapagecontext);
    catch(Exception exception)
    oamessagelayoutbean.setRendered(false);
    return 0;
    return oadescriptiveflexbean1.getIndexedChildCount(null) - 2;
    private void ManualPPR(OAPageContext oapagecontext, OAWebBean oawebbean)
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "DetailsPageButtonBar");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "LeftColumn");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "RightColumn");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "ChildLeftColumn");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "ChildExpTypeLayout");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "ChildRightColumn");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "MerchantFieldsHeader");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "MerchantFieldsLayout");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "IPL_MerchantFieldsHeader");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "IPL_MerchantFieldsLayout");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "IPL_LeftColumn");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "IPL_RightColumn");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "ChildEmployeeTableRN");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "ChildGuestTableRN");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "ItemizationMasterTable");
    protected static boolean PageHasExceptions(OAPageContext oapagecontext, OAWebBean oawebbean)
    Object aobj[] = (Object[])(Object[])oapagecontext.getTransactionTransientValue("FWK_PAGE_ERROR_TRXN_CACHE");
    Boolean boolean1 = (Boolean)aobj[3];
    return boolean1.booleanValue();
    private static void ClearExceptions(OAPageContext oapagecontext, OAWebBean oawebbean)
    Object aobj[] = (Object[])(Object[])oapagecontext.getTransactionTransientValue("FWK_PAGE_ERROR_TRXN_CACHE");
    Vector vector = (Vector)aobj[0];
    Vector vector1 = (Vector)aobj[1];
    Vector vector2 = (Vector)aobj[2];
    vector.removeAllElements();
    vector1.removeAllElements();
    vector2.removeAllElements();
    aobj[3] = Boolean.FALSE;
    Edited by: user13079906 on Oct 1, 2010 1:14 AM

  • How to change the text in the legend of a graph programmat​ically in labview

    I have many graphs in one plot and want to show the legend the name of the graph (i.e. the filename). How do I change the text in the legend programmatically?

    Create a property node for your graph. Use the property node "Active Plot" to define which plot (or line) you want to rename. Then write the new legend label to the property node "Plot.Name". See attached.
    Tim
    Attachments:
    legend.vi ‏12 KB

Maybe you are looking for

  • I own the 2010 MBP 13", and I've had it for about two weeks.

    My first few uses on battery power, I got about 5-6 hours out of it. However, now I only get about 2 hours. What's wrong? The Cycle count reads as 7, with full charge capacity of 5597. Is this a defective battery?

  • IE frame around flash and ASP

    HI, Does anyone know how to remove the ugly frame around flash when using ASP? I know the solution when using HTML but I need to embed teh flash file in a .aspx page. thanks

  • {Flash mx 2004} Ayuda con ActionScript, eventos y componentes

    Buenos días, Necesito ayuda, debido a que soy aprendiz y tengo problemillas, os cuento: Tengo 2 radioButton en un formulario que indican el sexo de una persona (masculino o femenino). Dichos radio Button los tengo asociados mediante la propiedad grou

  • Cover flow on iTune 11?

    Bonjour pouquoi sur iTune 11 plus de cover flow? completement nul votre nouvelle version si je suis chez Apple c'est bien pour ne pas me retouver dans le mon du PC ! j'espere qu'un mise a jour rapide pour que nous aillons le choix d'avoir ou pas le c

  • Red number 1 over the setting app after the new update.

    I just updated to the new update (iOS7), now there is a red number 1 above my settings app.  I am not sure how to get rid of this.  Any suggestions??  Thanks!