How to default the value of a selectOneChoice when adding a row to a table

I have a table where one of the fields is a selectOneChoice. When adding a row to the table, the new row to be added displays the selectoneChoice field blank. I would like to have this field default to a specific value within the selectoneChoice when clicking the add button. Any suggestion on the code I need to add in the backing bean? Thanks in advance.

After some studying I figured out how to do this... code below for anyone interested:
DCIteratorBinding dcib = (DCIteratorBinding) bindings.get("someIterator");
RowSetIterator iter = dcib.getRowSetIterator();
Row newRow = iter.createRow();
newRow.setAttribute("yourFieldName",fieldDefaultValue);
iter.insertRowAtRangeIndex(0, newRow);
iter.closeRowSetIterator();

Similar Messages

  • How to default the value in Parameter ?

    Hi all,
    How am I going to default the paramenter say I have the From Item >= '0' and To Item <= '99999999', I will like system to be defaulted back the value in the parameter everytime when the refresh is being pressed ?
    Currently, I have set the default value in the parameter, it work fine for the very first time, but after I have put the search value in the refresh button, the system still showing the old value which I have keyed in earlier. I want system to be defaulted the value that I keyed in the parameter. How to do that ?
    Rgds
    Lim

    Hi Lim
    Are you using Discoverer Plus?
    If so, there is a preference in pref.txt that controls whether the parameter values are saved with the workbook. It is called SaveLastUsedParamValue. This has two settings as follows:
    0 - Use the default value as set by the report writer
    1 - Save the value the user just entered and use that as the default the next time
    Best wishes
    Michael

  • How to default the values in BP screen with BDT?

    Hi all,
             I am working in BDT enhancement for BP for Grants mangement. Therefore there are some screen fields in BP transaction should directly get saved in GMSPONSOR table.  I mean to say user would give some values in BP screen(One can get it at the runtime by calling the FM BUP_BUPA_BUT000_GET) and the relevant values will autometically goes to GMSPONSOR table if the BP is saved.
    As per my knowlwdge there are many events under BUPT transaction and there also I found the entry of GMSPONSOR table. Can anyone tell me in which event I have to default these screen values and redirect these to GMSPONSOR table?
    Thnaks & Regards
    Dibyendu.

    Dear Smita,
                    Thanks for your reply. The fact is that if I could default it in the screen text box then it would autometically goes to the corresponding table at save event.
    So could you help me to identify the event by which one can keep default values in screen.
    May be ISDAT or ISSTA event  to default the valuesfor BP.
    I have done to some extent for the fields belonging to BUT000 with the help of FM BUP_BUPA_FIELDVALUES_SET. I have placed a Z FM in ISDAT event. But the problem lies with the fields belonging to other tables.
    Waiting for your update.

  • Ship Confirm Tab: How to default the values?

    Hi!
    I am trying to determine if there is a way for me to default the various options on the Ship Confirm screen. ie When I ship confirm a window opens and I can choose if I want to backorder any quantity and what to do with left over quantity? Can I default these values?
    Thanks much

    Yes, you can do this thru the SYSTEM ADMINISTRATOR responsibilities. Query the Ship Confrim concurrent program and use the parameter window to default a values.

  • How to get the values of a selectManyCheckBox when that is in h:dataTable

    Hello,
    I have a jsp page. in that user can choose multile checkboxes and these checkboxes labled as Current, Mailing, PosibleMailing, length is 3 fixed.
    And i am displaying this in a <h:dataTable> this datatable length depends upon the users there may be more than 1 user, for every user there is multiplecheckbox with length 3(fixed).
    code is look like this
    <h:dataTable value="#{InvestigationDefendantView.investDefsFindingsModel}" var="def" border="0" >
    <h:column>
    <h:selectManyCheckbox value="#{InvestigationDefendantView.addtype1}" disabled="false">
    <f:selectItem itemValue="Current" itemLabel="Current"/>
    <f:selectItem itemValue="Mailing" itemLabel="Mailing"/>
    <f:selectItem itemValue="Posible" itemLabel="Posible"/>
    <j4j:idProxy id="DefAddTypeProxy"/>
    </h:selectManyCheckbox>
    </h:column>
    </h:dataTable>
    here abovevalue="#{InvestigationDefendantView.investDefsFindingsModel}" suppose 3(we can assume) then there are 3 pairs of selectManyCheckBoxes are there in my jsp page.
    So u can assume in my jsp page checkboxes are look like 3*3 Matrix
    from my backing bean i am fetching the values of this checkboxes with the below code
    java code:
    InvestDefAddressTypeGetter inv = new InvestDefAddressTypeGetter();
    InvestDefAddressTypeBean[] inb = inv.get(pID);
    this.fMap = new HashMap<String, ArrayList<String>>();
    for(int i=0; i<inb.length; i++)
    String str1 = inb.getGivenDefID().toString();
    this.fdefid.add(str1);
    this.fGivenDefID.add(inb[i].getGivenDefID());
    String addType = inb[i].getAddType();
    Logger.info(this, "adding type value", addType);
    this.fdefid.add(str1);
    this.faddType.add(addType);
    Logger.info(this, "length of strings", this.faddType);
    this.fMap.put(str1, this.faddType);
    i am fetching the checkboxes value through my get method
    public String[] getAddtype1() throws SQLException, SearchException
    Logger.info(this, "addtype testing", this.faddType.size());
    if (this.faddType.size() > 0 )
    ArrayList<String> alcb = new ArrayList<String>();
    for (int i = 0; i < this.faddType.size(); i++)
    alcb.add(this.faddType.get(i));
    String[] tempArr = new String[alcb.size()];
    for (int i = 0; i < alcb.size(); i++)
    tempArr[i] = alcb.get(i).intern();
    return tempArr;
    return new String[0];
    from the above code if i have clicked (you can assume 3*3 matrix here) 1*1, 1*2 and 2*1 and 2*2and saving the value in database records are saved as per requirement but when i am editing the records with the above code i am getting 1*1, 1*2 and 2*1, 2*2 and 3*1, 3*2 checked but i did not checked the 3*1 and 3*2 ckeck boxes.
    Because the same get method will be called in the multipleckeck boxes. how can i prevent does not display the unchecked value from my backing bean.
    Please anybody help me in this issue.

    Is this you? [http://forums.sun.com/thread.jspa?threadID=5335038].

  • How to get the value of an outputLabel (part of a header in a table col)?

    Hello,
    i am trying to write some code in a method in a bean that is called when a button is pressed in a page (actually is an ActionListener method), which is part of a Table. I want to get the value of the outputLabel of the column. The jspx part of the page to get the idea follows:
    <af:column id="TrsTransactionsTradeDateColumn" sortable="true" noWrap="true" sortProperty="TradeDate" >
    <f:facet name="header">
    <af:outputLabel value="#{nls['TRSTRANSACTIONS_TABLE_TRADEDATE']}" styleClass="af_column_header-text"/>
    </f:facet>
    <af:selectInputDate id="TrsTransactionsTradeDate" value="#{row.TradeDate}"
    required="#{bindings.TrsTransactionsTradeDate.mandatory}" readOnly="true" >
    <af:convertDateTime pattern="dd/MM/yyyy HH:mm:ss"/>
    </af:selectInputDate>
    </af:column>
    As you see, the header part which is actually an outputLabel, is not actually part of the column object but in a separate facet, and the header property of the column is not used. Also, i can't change that, as this code is produced by generator. Actually i can access the every column of the Table with CoreColumn class, as these are children of the Table, but it does not give me access to the corresponding outputLabel of the column, because it is neither child or property of the column! An extract of the code to show my situation and give an idea follows:
    DCIteratorBinding dcib;
    RowSetIterator rsi;
    HttpServletRequest hq;
    String iterName;
    PrintWriter out = null;
    Row currentRow = null;
    CoreTable tTable;
    String [] attNames, realNames;
    Boolean[] isNum;
    int isFirst = 1;
    List childList, childList2;
    CoreColumn csi;
    // Find the Component-Table and the Real names of the Columns
    tTable = (CoreTable) actionEvent.getComponent().getParent().getParent();
    System.out.println("CoreTableSelectOne:"+tTable.toString());
    System.out.println("CoreTableSelectOne Parent:"+tTable.getParent().toString());
    childList = tTable.getChildren();
    attNames = rsi.getRowAtRangeIndex(0).getAttributeNames();
    realNames = new String[attNames.length];
    isNum = new Boolean[attNames.length];
    System.out.println("attrNames:"+attNames.length);
    System.out.println("childList:"+childList.toString());
    System.out.println("childList size:"+childList.size());
    // The next loop puts in the realNames for each row set column the component column name
    // if the column is rendered otherwise null.
    for (int i = 0; i < attNames.length; i++) {
    System.out.println("attrName:"+attNames);
    realNames[i] = null;
    for (int k = 0; k < childList.size(); k++) {
    if (childList.get(k) instanceof CoreColumn){
    csi = (CoreColumn) childList.get(k);
    System.out.println("csi:"+csi.getSortProperty());
    if (csi.getSortProperty() == attNames[i]){
    childList2 = csi.getChildren();
    System.out.println("csi.childrencount:"+csi.getChildCount());
    System.out.println("csi.getshortdesc:"+csi.getShortDesc());
    System.out.println("csi.getFacetCount():"+csi.getFacetCount());
    csi.getFacet()
    for(int m=0; m<childList2.size(); m++) {
    //System.out.println("childList2.get(m).toString():"+childList2.get(m));
    if(childList2.get(m) instanceof CoreSelectInputDate)
    CoreSelectInputDate csid = null;
    csid = (CoreSelectInputDate)childList2.get(m);
    System.out.println("Label:'"+csid.getLabel());
    System.out.println("csi.getHeaderText()"+csi.getHeaderText());
    realNames[i] = new String(csi.getHeaderText());
    if (csi.isRendered() == false)
    realNames[i] = null;
    System.out.println(csi.getFormatType());
    if (csi.getFormatType() == "number")
    isNum[i] = true;
    else
    isNum[i] = false;
    System.out.println("After loop In attName: "+i);
    // Print the titles
    if (realNames[i] != null) {
    if (isFirst == 1)
    isFirst = 0;
    else
    out.print(";");
    out.print(realNames[i]);
    Part of the output produced follows:
    2008-07-18 18:49:13,699 INFO [STDOUT] iteratorNameTrsTransactionsIterator
    2008-07-18 18:49:13,699 INFO [STDOUT] 1
    2008-07-18 18:49:13,699 DEBUG [com.sun.faces.el.ValueBindingImpl] getValue(ref=bindings)
    2008-07-18 18:49:13,699 DEBUG [com.sun.faces.el.VariableResolverImpl] resolveVariable: Resolved variable:TrsTransactionsPageDef
    2008-07-18 18:49:13,699 DEBUG [com.sun.faces.el.ValueBindingImpl] getValue Result:TrsTransactionsPageDef
    2008-07-18 18:49:13,699 INFO [STDOUT] 2
    2008-07-18 18:49:13,699 INFO [STDOUT] 3
    2008-07-18 18:49:13,699 INFO [STDOUT] 4
    2008-07-18 18:49:13,699 INFO [STDOUT] CoreTableSelectOne:CoreTable[UIXFacesBeanImpl, id=TrsTransactionsTable]
    2008-07-18 18:49:13,699 INFO [STDOUT] CoreTableSelectOne Parent:CorePanelGroup[UIXFacesBeanImpl, id=TrsTransactionsTableGroup]
    2008-07-18 18:49:13,699 INFO [STDOUT] attrNames:56
    2008-07-18 18:49:13,699 INFO [STDOUT] childList:[CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsTradeDateColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpBiccodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpBicnameColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpInstrumentIsincodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpInstrumentNameColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsBuySellColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsTradeCapacityColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsQuantityColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsUnitPriceTypeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsUnitPriceColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpCurrencyIsoSymbolColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsVenuetypeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpVenueMicCodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpVenueBicCodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsCtypeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpCounterpartyMicCodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpCounterpartyBiccodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsCcodeccColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsClienttypeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLpkClientBicCodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsClientinternalColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsTradeStatusColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLastUpdateDateColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsCancelDateColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsOrigTrnColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsSourceColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsSourceNumberColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsTransTypeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsTradeDateOnlyColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsExchangeReasonColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsTransTrnColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsCancSourceNumberColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsCauniqueidColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsRoutingColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsHubSentDateColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsOtherRcaColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsOutOfDateFlagColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsMultipleFlagColumn], CoreColumn[UIXFacesBeanImpl, id=_id89]]
    2008-07-18 18:49:13,699 INFO [STDOUT] childList size:39
    2008-07-18 18:49:13,699 INFO [STDOUT] 5
    2008-07-18 18:49:13,699 INFO [STDOUT] 6
    2008-07-18 18:49:13,699 INFO [STDOUT] 7
    2008-07-18 18:49:13,699 INFO [STDOUT] 8
    2008-07-18 18:49:13,699 INFO [STDOUT] 9
    2008-07-18 18:49:13,699 INFO [STDOUT] 10
    2008-07-18 18:49:13,699 INFO [STDOUT] attrName:BicId
    2008-07-18 18:49:13,699 INFO [STDOUT] csi:TradeDate
    2008-07-18 18:49:13,699 INFO [STDOUT] csi:LkpBiccode
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpBicname
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpInstrumentIsincode
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpInstrumentName
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:BuySell
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:TradeCapacity
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:Quantity
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:UnitPriceType
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:UnitPrice
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpCurrencyIsoSymbol
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:Venuetype
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpVenueMicCode
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpVenueBicCode
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:Ctype
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpCounterpartyMicCode
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpCounterpartyBiccode
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:Ccodecc
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:Clienttype
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:LpkClientBicCode
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:Clientinternal
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:TradeStatus
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:LastUpdateDate
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:CancelDate
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:OrigTrn
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:Source
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:SourceNumber
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:TransType
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:TradeDateOnly
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:ExchangeReason
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:TransTrn
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:CancSourceNumber
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:Cauniqueid
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:Routing
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:HubSentDate
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:OtherRca
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:OutOfDateFlag
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:MultipleFlag
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:null
    2008-07-18 18:49:13,714 INFO [STDOUT] After loop In attName: 0
    2008-07-18 18:49:13,714 INFO [STDOUT] attrName:TradeDate
    2008-07-18 18:49:13,714 INFO [STDOUT] csi:TradeDate
    2008-07-18 18:49:13,714 INFO [STDOUT] csi.childrencount:1
    2008-07-18 18:49:13,714 INFO [STDOUT] csi.getshortdesc:null
    2008-07-18 18:49:13,714 INFO [STDOUT] csi.getFacetCount():1
    2008-07-18 18:49:13,714 INFO [STDOUT] Label:'null
    2008-07-18 18:49:13,714 INFO [STDOUT] csi.getHeaderText()null
    2008-07-18 18:49:13,714 ERROR (irrelevant)
    Any idea how to achieve to get the value of the corresponding outputLabel ?
    TIA

    Hi,
    the fastes option is to create a JSF binding from the output text to a managed bean and directly access the component. So unless you like parsing the table for this information, it seems unnecessary if you frequently use the information stored in the header
    Frank

  • How to update the value of a column when a row is deleted

    Hi,
    My requirement is basically i have a table .Below is a sample data along with sample data
    Column A Column B ColumnC
    1 SAM 0
    2 RAM 0
    Now if i run a delete statement saying
    delete from Table where ColumnA =1 then i want to see the value of ColumnC to be updated as 1.The row shouldnt be deleted however the value of ColumnC should be changed to 1.
    Can someone please help me with any suggestions? I can create a trigger but i havent worked with triggers so not sure on how to use it.
    Please let me know if i am unclear or if you need any details.
    Thanks

    As I understand what you need is an INSTEAD OF DELETE trigger like below
    CREATE TRIGGER Trg_TableName
    ON TableName
    INSTEAD OF DELETE
    AS
    BEGIN
    UPDATE t
    SET ColumnC = 1
    FROM TableName t
    WHERE EXISTS (SELECT 1
    FROM DELETED
    WHERE ColumnA = t.ColumnA
    END
    this will set ColumnC to 1 and will not do an actual delete of the row.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How long does the 'registration in progress' taken when adding an AppleCare policy?

    Anybody know?

    If you have Registered your product @ > AppleCare Agreement Registration Step 1
    keep checking @ > Check Your Service and Support Coverage
    then if after 24hrs it is not showing up @ > Contact Apple Support

  • How to set the value in SelectOneChoice

    Hi,
    I need an help....
    can anyone please tell me how to set the value in SelectOneChoice.
    I want to set the value at index 3
    i am trying selectOneChoice1.setvalue(new Integer(3)); but it is throwing an NullPointerException.
    Thanks,
    Neha

    Hi,
    is it ADF bound? If so then you set the default value to the list binding in the PageDef file. The value of the component must be bound to a method expression, which is why you see an exception. However, I think we need more information
    Frank

  • How do I default the value in an LOV?

    Dear experts,
    What I am trying to achieve is changing the default value in an LOV, based on the value of another field. I have an LOV that lists employee names. There is another field, an account number, which when selected is used to determine the default employee set against this account. This employee I want to use to add into the LOV as a default the value, before the user selects a value in the LOV. The user can still invoke the LOV and search for a different employee, but the functionality I am concered with is setting this default employee.
    I have modified the ProcessForm in the associated controller class. I have obtained the account number and using an SQL query I have obtained the default employer, but I can not seem to set this value in the LOV as a default. Does any one have any ideas?
    For the LOV there are two criteria values in the LOV mapping, the org id and the code combination id, both used in the query to get the default employee.
    Many thanks for your assistance in advance.
    Mark

    Hi,
    IF want use dependent lov ..then refer below link..
    http://oracleanil.blogspot.com/2010/12/dependent-lov-in-oaf.html
    Or
    IF u want set any default value in lov2 when value selecetd in lov1...
    Get the event of the lov1 on PFR..
    if("LOv1ID").equals(pageContext.getParameter(SOURCE_PARAM))
    && ("lovUpdate".equals(pageConext.getParameter(EVENT_PARAM))
    || "lovValidate".equals(pageConext.getParameter(EVENT_PARAM))))
    Here try set default value as given by Gyan...
    Pls check syntax errors...
    Regards
    Meher Irk

  • How to set the value for Power Cost in SCCM reports in Euro's?

    Hello,
    I have found out how to change the value of the 'cost' of the KWh for these reports (reporting) . But ther original settings where displayed and set in USD($) with some other values. I have of course changed the USD to EUR (€) in my case, but my question
    is: how do i know what I have to fill in in the field : costOfKwh, according my manager for my organisation it is in euro's 5,9 euroct/Kwh
    Do I have to fill in 5,9 or 0,59 or 0,059 ???
    Then also ther are some other values set in the original reports, like :
    KwhConsumptionDesktopComputerOn value = 0,07
    KwhConsumptionLaptopComputerOn  value = 0,02
    KwhConsumptionDesktopMonitorOn    value = 0,03
    Do i have to leave this settings ?

    Yes, I know this is an old post, I’m just trying to clean them up.
    The default of 0.09 is 9 cents/ KwH so  I’m assume that 5.9 cent (euro) so that you bet 0.059
    BTW if you have edit the report to change $ to € then you can also set eh default value to whatever the current power cost is too.
    http://www.enhansoft.com/

  • How to set the value of process variables/payload using a managed bean?

    Hello,
    Someone can give me an example about how to set the values of a process payload in a managed bean?
    thank you!

    Try this:
    jsf page:
    <af:selectOneChoice label="Select Suburb"
    requiredMessageDetail="Select a suburb"
    valueChangeListener="#{selectOneChoiceBean.onValueChanged}"
    validator="#{selectOneChoiceBean.validate}"
    unselectedLabel="None" autoSubmit="true"
    binding="#{selectOneChoiceBean.selectOneChoice}"
    value="#{selectOneChoiceBean.value}">
    <f:selectItems value="#{selectOneChoiceBean.selectionList}"/>
    </af:selectOneChoice>
    backing bean:
    public class SelectChoiceBean {
    private List<SelectItem> selectionList;
    private String value = "B";
    private RichSelectOneChoice selectOneChoice;
    public SelectChoiceBean() {
    initSelectionList();
    public void setSelectionList(List<SelectItem> selectionList) {
    this.selectionList = selectionList;
    public List<SelectItem> getSelectionList() {
    return selectionList;
    public void onValueChanged(ValueChangeEvent valueChangeEvent) {
    System.out.println(valueChangeEvent.getNewValue());
    // Add event code here...
    public void validate(FacesContext facesContext, UIComponent uIComponent,
    Object object) {
    // Add event code here...
    private void initSelectionList() {
    selectionList = new ArrayList<SelectItem>();
    selectionList.add(new SelectItem("A", "A label"));
    selectionList.add(new SelectItem("B", "B label"));
    selectionList.add(new SelectItem("C", "C label"));
    public void setValue(String value) {
    this.value = value;
    public String getValue() {
    return value;
    public void setSelectOneChoice(RichSelectOneChoice selectOneChoice) {
    this.selectOneChoice = selectOneChoice;
    public RichSelectOneChoice getSelectOneChoice() {
    return selectOneChoice;
    }

  • How to format the value in narrative ?

    Hi Experts,
    In BIEE 11,
    How to format the value in narrative , such as separator.
    In table or pivot property, I have set the separator for measure , but in narrative, the format will be disappeared. So how to implement this requirment?

    I had this problem with 11.1.1.6.0
    If you want this format as the default display format for this column everywhere, then you can save that format as default display format for the column or data type (Lower right corner of data format tab: "Save as Default" button, "Save as the system-wide default for "Table"."Column"). When I had the problem the narratives did use the default display format.
    Another workaround could be a direct database call to convert the data to a string. For example, in Oracle
    EVALUATE('TO_CHAR(%1,%2)' AS CHAR(30), “Table".“Column" ,'$9,999.00')
    but you may need to set EVALUATE_SUPPORT_LEVEL in your nqsconfig.ini, and this ties you to the database technology.

  • How to reference the value of a af:inputText at View level in a java clas

    How to reference the value of a <af:inputText> at View level in a java class at Model level? Thanks!

    Create AppModuleImpl class and create ther for example setMyParam procedure.
    (You can use AppModule. There simple interface to do this classes
    In JDev 11:
    1. Go to AppModule and in Java bookmark generate application module class.(AppModuleImpl.java)
    2. Put "private String myParam;" and method to access myParam "public void setMyParam(String myParam)".
    3. Again in the AppModule in the Java bookmark add method to client interface.
    AppModuleImpl.java
    public class AppModuleImpl extends ApplicationModuleImpl implements AppModule {
    * This is the default constructor (do not remove).
    private String myParam;
    public AppModuleImpl() {
    //this.
    public void prepareSession(Session session)
    super.prepareSession(session);
    myParam = myParam + myParam;
    public void setMyParam(String myParam) {
    this.myParam = myParam;
    prepareSession(getSession());
    AppModule.java
    public interface AppModule extends ApplicationModule {
    void setMyParam(String myParam);
    AppModuleClient.java
    public class AppModuleClient extends ApplicationModuleImpl implements AppModule {
    * This is the default constructor (do not remove).
    public AppModuleClient() {
    public void setMyParam(String myParam) {
    Object _ret =
    this.riInvokeExportedMethod(this,"setMyParam",new String [] {"java.lang.String"},new Object[] {myParam});
    return;
    And you can use method setMyParam as you wish :))) You can find it in AppModuleDataControl..
    Edited by: Victor_V_S on Jun 5, 2009 1:31 AM
    Edited by: Victor_V_S on Jun 5, 2009 1:33 AM
    Edited by: Victor_V_S on Jun 5, 2009 7:30 AM

  • Defaulting the values in BP

    HI,
    I would like to default the customer pricing procedure in Account sales area data in web ui 2007.
    To default currency I would able to do it because it is F4 help, i implemeted Get_currency method.
    Customer pricing procedure is picklist(dropdown). I could not default the value in drop down.
    please suggest me step by step how to default customer pricing procedure in Account section web ui 2007.
    Thanks

    Dear Smita,
                    Thanks for your reply. The fact is that if I could default it in the screen text box then it would autometically goes to the corresponding table at save event.
    So could you help me to identify the event by which one can keep default values in screen.
    May be ISDAT or ISSTA event  to default the valuesfor BP.
    I have done to some extent for the fields belonging to BUT000 with the help of FM BUP_BUPA_FIELDVALUES_SET. I have placed a Z FM in ISDAT event. But the problem lies with the fields belonging to other tables.
    Waiting for your update.

Maybe you are looking for