Unable to default a value in LOV in Expense Allocations page of iExpenses

Hi friends,
I am trying to default a value in a Lov (Which is a one of the segments in KFF).
This Lov is in a HGrid region of "expense allocations page" of iExpenses.
But i am unable to default that.
I am using the below code.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OADBTransaction dbTran = am.getOADBTransaction();
OAApplicationModule am1 = pageContext.getRootApplicationModule();
dbTran.writeDiagnostics(this,"tnv AM, AM1 : "+am+", "+am1, 2);
// AllocationsHeaderVO
OAViewObject vo = (OAViewObject)am.findViewObject("AllocationsHeaderVO");// AllocationsHeaderVO
dbTran.writeDiagnostics(this,"tnv AllocationsHeaderVO : "+vo,2);
Row row = vo.getCurrentRow();
dbTran.writeDiagnostics(this,"tnv AllocationsHeaderVO row: "+row,2);
String arr[]= row.getAttributeNames();
Object arrVal[] = row.getAttributeValues();
for (int i = 0; i <arr.length ; i++)
try
dbTran.writeDiagnostics(this,"tnv arr[i] : "+arr,2);
dbTran.writeDiagnostics(this,"tnv arrVal[i] : "+arrVal[i].toString(),2);
}catch(Exception e)
dbTran.writeDiagnostics(this,"tnv null Exp arrVal[i] : "+i,2);
OAMessageLovInputBean busAreaSeg2 = (OAMessageLovInputBean)webBean.findChildRecursive("KffSEGMENT2");
OAMessageStyledTextBean busAreaSeg2Desc = (OAMessageStyledTextBean)webBean.findChildRecursive("KffSEGMENT2Desc");
busAreaSeg2.setText("100"); // A -- I am able to default this value, but user is having no option to change the value, if i go with this.
busAreaSeg2.setText(pageContext, "100"); // B -- Unable to default with this....
busAreaSeg2.setValue(pageContext, "100"); // C -- Unable to default with this...
Could somebody please help me out, in defaulting this.
Thanks in advance,
Naresh

Hi Guys,
I am trying to Default Task LOV field based on the Project selected in Project LOV field, But i am not able to get the handle for Task LOV field in iExpenses of ExpenseAllocationDetailPG.
Please provide me some hint to achieve the same.
Thanks in advance.
Regards,
Naren.

Similar Messages

  • Unable to place a value in Flex Field in OAF page

    Hi all,
    I am unable to place this flex value in the flex field, but i can do this same thing in a normal "Text Field" am able to reterive that number and place in that text field .
    Problem is placing the same in Flex field , please suggest me how to do this .
    I have one Function Standard one that i am calling here and making use of that i can call that function and am able to get that value and place in a "Text Field" but the same thing i couldn't place in the "Flex Field" how to do this any idea am thank full to them. Its a very urgent issue i have to solve this.
    MY Controller Code:
    OAKeyFlexBean revenue = null;
    String s8 = pageContext.getParameter("Purpose");
    revenue = (OAKeyFlexBean)webBean.findIndexedChildRecursive("reveFF"); ------------------- this is the Flex Field where i have to place the output
    revenue.useCodeCombinationLOV(true);
    if(s8.equalsIgnoreCase("BILL_TO")) {
    try {
    Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
    String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
    PreparedStatement stmt = conn.prepareStatement(Query);
    stmt.setInt(1, orgid);
    ResultSet resultset = stmt.executeQuery();
    if(resultset.next()) {
    String revenuenum = resultset.getString(1);
    revenue.mergeSegmentsWithParent(pageContext);
    revenue.setStructureCode( ); ---------------------- What i have to give here
    revenue.setCCIDAttributeName("GlIdRev"); ---------------------- Attribute Name
    revenue.useCodeCombinationLOV(false);
    revenue.setAttributeValue(FLEXFIELD_SEGMENT_LIST, revenuenum); ------------- How to use this FLEXFIELD_SEGMENT_LIST (unable to retrieve anything)
    revenue.setText(revenuenum);
    } catch(SQLException se) {
    se.printStackTrace();
    throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
    Standard function i have:
    create or replace FUNCTION SDS_CUST_BILL_INFO(P_ORG_ID IN NUMBER,P_ACC_TYPE IN NUMBER) RETURN VARCHAR2
    AS
    *- Purpose: This PL/Sql program that will return GL_ID_RECEIVING_ACCOUNT or GL_ID_REVENUE_ACCOUNT
    *- information for new Customer BIll_TO site
    V_ACCOUNT VARCHAR2(2000);
    BEGIN
    BEGIN
    SELECT TRUNC(SEGMENT1)||'-'||TRUNC(SEGMENT2)||'-'||SEGMENT3||'-'||TRUNC(SEGMENT4)||'-'||SEGMENT5||'-'||SEGMENT6||'-'||SEGMENT7
    INTO V_ACCOUNT
    FROM GL_CODE_COMBINATIONS GCC
    ,HR_ORGANIZATION_UNITS HOU
    ,RA_CUST_TRX_TYPES_ALL RCTA
    WHERE HOU.ORGANIZATION_ID = RCTA.ORG_ID
    AND HOU.ORGANIZATION_ID = P_ORG_ID
    AND GCC.CODE_COMBINATION_ID = DECODE(P_ACC_TYPE,1,RCTA.GL_ID_REC,2,RCTA.GL_ID_REV)
    AND UPPER(RCTA.NAME) = 'INVOICE'
    AND HOU.ATTRIBUTE3 = 'Y';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    V_ACCOUNT := NULL;
    WHEN OTHERS THEN
    V_ACCOUNT := NULL;
    END;
    RETURN(V_ACCOUNT);
    END;

    Hi parag,
    You mean to say i have to write like this :--
    if (pageContext.getParameter("apply")!=null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject accountsViewObject =
    (OAViewObject)am.findViewObject("ArBusPurAllVO");
    if (accountsViewObject!=null)
    OARow row = (OARow) accountsViewObject.getCurrentRow();
    if (row.getAttribute("GlIdRev") == null || row.getAttribute("GlIdRev").equals(""))
    //call your function here and say row.setaatribbute= revenue_acct_id from your function.
    if(s8.equalsIgnoreCase("BILL_TO")) {
    try {
    Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
    String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
    PreparedStatement stmt = conn.prepareStatement(Query);
    stmt.setInt(1, orgid);
    ResultSet resultset = stmt.executeQuery();
    if(resultset.next()) {
    String revenuenum = resultset.getString(1);
    row.setaatribbute(revenuenum) ;
    } catch(SQLException se) {
    se.printStackTrace();
    throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
    if (row.getAttribute("GlIdRec") == null || row.getAttribute("GlIdRec").equals(""))
    //call your function here and say row.setaatribbute=rec_acct_id from your function.
    if(s8.equalsIgnoreCase("BILL_TO")) {
    try {
    Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
    String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
    PreparedStatement stmt = conn.prepareStatement(Query);
    stmt.setInt(1, orgid);
    ResultSet resultset = stmt.executeQuery();
    if(resultset.next()) {
    String receivablenum = resultset.getString(1);
    row.setaatribbute(receivablenum) ;
    } catch(SQLException se) {
    se.printStackTrace();
    throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
    super.processFormRequest(pageContext, webBean);
    Am I, correct parag please tell me, if this works i will send u mail again that it is working fine .
    my mail id is [email protected]

  • Default value in LOV field in Create and Update page in OAF

    Hi All,
    I am unable to default LOV field in Create and Update page in OAF.
    I tried in below way :
    OAMessageLovInputBean lovBean1 = (OAMessageLovInputBean)webBean.findChildRecursive("AAA");
    But I am getting developer mode exception, so please guide me how i can set the default value for create and update page instead of using code in process request method in controller.
    Thanks

    Hi,
    1) In case of create, you can default the value either in EOImpl or in AM while initializing the row:
    //in EOImpl
    public void create(AttributeList attributeList)
    super.create(attributeList);
    setXXAttribute(<value>);
    //in AM, VO new row initialization :-
    VOImpl VO = getVO1();
    VO.setMaxFetchSize(0);
    VORowImpl row = (VORowImpl)VO.createRow();
    row.setXXAttribute(<value>);
    VO.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    2) In case of update, execute the VO (also set the where clause if required) in PR method of update page.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to default values in LOV

    Hi,
    I have created a page in which I have two different LOVs. My requirement is to default some value in the First LOV i.e. "ALL"
    and the second LOV which is dependent on the first LOV will gets populated with the values based on the first one on the page load itself.
    Both the LOVs have "autoSubmit" and "partialTriggers"realtion between them.
    The problem I am facing is that I am able to set some default value to the first LOV with value as "ALL" by using "setSubmiitedValue" on LOV from backing bean on the page load but the second LOV popup (dependent LOV) is coming blank on page load.
    But if i select same value "ALL" form the first LOV popup after page load then second LOV popup gets populated with values based on first LOV
    Please provide some urgent help that how to default any LOV with some value and based on that second LOV gets populated on the page load itself.
    Thanks in Advance
    Kanika Dhamija

    Hi,
    Can you please explain a bit more the ' ... is to default some value.. ' part?
    When exactly do you want to set a default Value?
    Depending on your case, there is always the declarative way to consider through BC
    some approaches on different cases:
    How to set a default value in an ADF table when adding a new row
    http://www.youtube.com/watch?v=9WQ0SDVVWtE
    http://adfcodebits.blogspot.co.uk/2010/04/bit-13-overriding-create-to-set-default.html
    cascading LOVs
    http://andrejusb.blogspot.co.uk/2012/11/cascading-lovs-in-jdeveloper-111230.html
    hope this helps
    Regards,
    Dimitrios.

  • How to set value from LOV only as a default reference not enforce validate check?

    In jdev 11.1.2.3,
    By creating  List of Value(LOV) for an attribute of a VO, I can get default value for the current VO's attribute from the lookup table, but it will also enforce a validate check for that value.
    If I input a value which is not in the lookup table, then errors will raised.
    Now I hope I can get default value from LOV, and can also input some new value (and this new value can be insert into the lookup table by a database trigger) for the attribute/field without failure to pass the check.
    Any one can help?
    Thanks!

    Hi, Arun
    Your suggestion let me get to know how to create a new record in the customeActions facet of inputComboBoxListOfValues, which I donot know before. It's great. and thank you very much.
    However, my current issue is a different requirement, let me describe it clearly as:
    I have a formlayout to input a field value which can be from a lookup table, or if this value is not in the lookup table then it can also be input without raising value validation check failure.and this new value can be added to the lookup table at the same time.
    for example, there is a FK attribute deptno in the EMP table, in a form for editing EMP attributes, user can input deptno value which is already in the DEPT lookup table by selecting from a LOV. also can input some new value which cannot be selected from the LOV, and this new deptno value will be posted to database both in EMP and DEPT table.
    The issue is, after create a LOV for deptno attribute in EMP VO, there will be a enforced value validation check, so new values cannot be input in EMP unless it is input into DEPT first.
    (http://docs.oracle.com/cd/E37975_01/web.111240/e16182/lists.htm#BABBJFBB)
    List of values are designed to return valid values only. As a result, validation rules defined on data source view object attributes will be suppressed.
    My question is: how to disable this enforced value validation for a LOV-enabled field?
    (There is other means to ensure user will input valid value for this field, for example ask him to double input.)
    Thanks again!
    bao

  • 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

  • Unable to see the values in detail block

    Hello,
    I have a master detail block, when I query the form, I am unable to see the values for a particular field(Column), all other columns appear properly in the details block, Upon checking the same table(s) in SQL ( by using the JOIN defined in the where clause of the relationship in Forms) , it shows the relevant records for all fields. So what could be wrong with the Form, please advise.
    Thanks
    FM

    IQ wrote:
    I have just checked the field its a non-database field which is being used as a LOV column to display a value derived from LOV. How do I make this populate at Query time, as obviously this works when the Form is in a insert mode but not for Query mode. How to make it work for Query ? As it for LOV column and non-database filed, ignore my first suggestion.
    Does your non-database filed has associate any column ?
    For example, you have SUPPLIER_ID (database column) and SUPPLIER_NAME (non-database column). SUPPLIER_NAME has LOV column. And when selecting supplier name from LOV value also assign at supplier_id.
    Now to show supplier name when querying, you have to write POST-CHANGE trigger at supplier_id. like
    SELECT ASSC_CODE INTO :MST_SUPPLIER.ACC_CODE
    FROM ACC_SUB_SUB_CONTROL
    WHERE ASSC_ID=:MST_SUPPLIER.SUPP_ASSC_ID;Hope this helps

  • Not able to find values in LOV of field "Help Desk" of Global contract

    Not able to find values in LOV of field "Help Desk" of Global contract defaults.
    This value should be coming from resource setup.
    Resource is already created.

    Issue resolved:
    The resource should ahve valid Email id in HR People setup

  • How to restrict the duplicate values in lov column of VO based Adv Table

    Hi Gurus,
    I want to restrict the duplicate values at lov which is a colunm in an Adv Table.
    If user enters duplicate values then first it should show an error msg that Duplicate values have been entered.
    After the duplicate values have been removed, then the user can save all the values in the table.
    My Adv Table is based on a VO.
    The link how to restrict the duplicate values at form level
    talks about Adv Table based on a EoVO, which doesnot work in my case.
    My Approach,
    I am iterating through RowSetIterator and committing through PROCEDURE.
    I am able to avoid duplicate entry through a function checkRespId. (given below)
    Below code is for iterating and committing.
    public void saveline(String reqid,String userid)
    System.out.println("RequestId/saveline"+reqid);
    System.out.println("UserId/saveline"+userid);
    OAViewObject vo = (OAViewObject)getRespLineVO1();
    RespLineVORowImpl row = null;
    int fetchedRowCount = vo.getFetchedRowCount();
    RowSetIterator deleteIter = vo.createRowSetIterator("deleteIter");
    if (fetchedRowCount > 0)
    deleteIter.setRangeStart(0);
    deleteIter.setRangeSize(fetchedRowCount);
    for (int i = 0; i < fetchedRowCount; i++)
    System.out.println("Inside the for LOOP");
    row = (RespLineVORowImpl)deleteIter.getRowAtRangeIndex(i);
    String respoidid = row.getAttribute("ResponsibilityId")+"";
    String respname = row.getAttribute("ResponsibilityName")+"";
    String stdate = row.getAttribute("StartDate")+"";
    String enddate = row.getAttribute("EndDate")+"";
    String linestatus ="A";
    if(userid!=null)
    if(!(respoidid.equals("null")) && respoidid!=null)
    String checkingrespid=null;
    checkingrespid = checkRespId(userid,respoidid);+contains no if not duplicate and yes if its duplicate+
    System.out.println("checkingrespid for Resp with ID :"+respoidid+"exists or not "+checkingrespid);
    if(checkingrespid.equals("No"))
         String message, result = null;
    Connection txn = getOADBTransaction().getJdbcConnection();
    try
    calling PROC ...
    catch(Exception e)
    message = "Error in Inserting into line" + e;
    throw new OAException(message, OAException.ERROR);
    else
    throw new OAException("You have entered duplicate no. of values", OAException.ERROR);
    else
    System.out.println("respoidid is null");
    break;
    deleteIter.closeRowSetIterator();
    public String checkRespId(String userid,String respoidid)
    String createRow="No";
    OAViewObject vo = (OAViewObject)findViewObject("CheckRespVO1");
    if (vo != null)
    vo.setWhereClauseParams(null);
    vo.setWhereClauseParam(0, userid);
    vo.setWhereClauseParam(1, respoidid);
    vo.executeQuery();
    System.out.println("ROW COUNT IS "+vo.getRowCount());
    if(vo.getRowCount()>0)
    createRow="Yes";
    else
    createRow="No";
    return createRow;
    Problem:
    I remove the duplicate entries and click on save and get this error.
    Unable to perform transaction on the record. \nCause: The record contains stale data. The record has been modified by another user.
    \nAction: Cancel the transaction and re-query the record to get the new data.
    Thanks,
    Sombit

    Hi Anil,
    I am trying out your code but stuck in inserting the rows
    using your code in URL: http://oracleanil.blogspot.com/2010/09/oaf-passing-table-type-object-to-oracle.html
    I am always getting the same exception i.e COde blast in when I run.
    My modified code is:
    String[] as = null;
    Number[] vNumber = null;
    Number[] vNumberrespid = null;
    Number reqidnumber = null;
    reqidnumber = new Number(Integer.parseInt(reqid));
    Connection txn = getOADBTransaction().getJdbcConnection();
    String mCreateSearchRequestStatement = null;
    OAViewObject vo = (OAViewObject)findViewObject("RespLineVO1");
    int j = vo.getFetchedRowCount();
    try
    System.out.println("abouce try");
    vo.reset();
    if (vo.getFetchedRowCount() > 0)
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    int i = 0;
    as = new String[j];
    vNumber = new Number[j];
    vNumberrespid = new Number[j];
    while (vo.hasNext())
    vo.next();
    System.out.println(String.valueOf("Inisde the do while loop").concat(String.valueOf(i)));
    vNumber[i] = (reqidnumber);
    vNumberrespid = ((Number)vo.getCurrentRow().getAttribute("ResponsibilityId"));
    as[i] = String.valueOf(vo.getCurrentRow().getAttribute("ResponsibilityName")).concat(String.valueOf(""));
    System.out.println("Request ID "+reqidnumber[i]);//getting null even there is some value selected
    System.out.println("ResponsibilityId "+vNumberrespid[i]);//getting null even there is some value selected
    System.out.println("Resp Name "+as[i] );//getting null even there is some value selected
    i++;
    CallableStatement cs = txn.prepareCall("{call XX_PassTableType.XX_PassTableType_prc(:1, :2,:3)}");
    ARRAY array = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", txn), txn, vNumber);
    ARRAY arraynew = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", txn), txn, vNumberrespid);
    ARRAY array1 = new ARRAY(new ArrayDescriptor("APPS.JTF_VARCHAR2_TABLE_100", txn), txn, as);
    cs.setArray(1, array);
    cs.setArray(2, arraynew);
    cs.setArray(3, array1);
    cs.registerOutParameter(3, 2003, "JTF_VARCHAR2_TABLE_100");
    cs.execute();
    ARRAY error = null;
    error = (ARRAY)cs.getArray(2);
    if ((error != null) && (error.length() > 0))
    System.out.println(String.valueOf("Error is ").concat(String.valueOf(error.getArray())));
    String[] retError = new String[j];
    retError = (String[])error.getArray();
    System.out.println(String.valueOf("Error in saving data").concat(String.valueOf(retError[0])));
    cs.close();
    catch (Exception exception)
    throw new OAException("code blast", OAException.ERROR);
    Thanks,
    Sombit

  • Place default checkbox value "in SESSION" on initial page load

    Oracle 11.2
    Apex 4.1
    Desire outcome: Chart renders on inital page load using default value of checkbox in query.
    I have a checkbox with a default (checked) value. It shows checked when the page renders for the first time but the value is not in the SESSION state. I use this value in a query for a chart. I do not want to use a Submit button so I have a dynamic action submitting the value for the checkbox and the chart refreshes as desired when I check and uncheck the box.
    I tried "Fire on Page Load" in the DA Execution Options, as well, but that caused a loop where the page renders and immmediately renders, and immediately renders, etc.
    Is there a declarative solution that submits the current, in this case default, values when the page is loaded? I only need and want the default values used the first time the page is accessed. This is the initial page of the application but I need the same behavior on all pages for the separate checkbox selections found there.
    May God Bless,
    Howard

    Howard (DBA in Training) wrote:
    If I remove the Default Value and add a Before Header page computation for the item with static assignment to
    a:bI get the 2 A/B checkboxes, both checked, and the value is set in session state.If you log in here, you can see it up close and personal!
    http://apex.oracle.com/pls/apex/f?p=21997:3 Login: Dever / Ima9Dever
    The Default Value colon-delimited string must contain the checkbox values, not the labels. In a static LOV the checkbox options are specified as <tt>label;value</tt> pairs. Thus in your checkbox LOV the labels are A/B, whilst the values are a/b. The values are case-sensitive.
    The Default Value should therefore be:
    a:bwhereas you've specified:
    A:BWith the checkbox item LOV Display Extra Values property set to Yes, APEX displays these extra values that are not included in the LOV definition as additional checkboxes. You can see this if you inspect the rendered checkbox elements in the HTML source:
    <input type="checkbox" id="P3_CHECKBOX_0" name="p_v01" value="a">
    <input type="checkbox" id="P3_CHECKBOX_1" name="p_v01" value="b">
    <input type="checkbox" id="P3_CHECKBOX_2" name="p_v01" value="A" checked="checked">
    <input type="checkbox" id="P3_CHECKBOX_3" name="p_v01" value="B" checked="checked">You get the a/b values defined in the LOV, plus the extra A/B values the LOV knows nothing about.
    ==== ) How do you keep it from setting/resetting these values each time the
    page is rendered?  The need is to do it only the very first time?  ( ====Put a Value of Item / Column in Expression 1 Is NULL condition on the Computation. Problem then is that the computation will be run if the user can [legitimately] deselect all of the checkboxes, either leaving you back where you started, or requiring the use of a further item to flag whether it is the really "the very first time" (which I find intellectually deeply unsatisfactory). This may be a sign that the control should really be a radio group that always has one option set, rather than a check box.

  • Default prompt values in webI report???

    I am using BO XI 3.1 on BW universe, I have a prompt A in the prompt window which has many Lov's but user will freequently use only three values out of it.
    So I want to make those three values to be default for that promp A when ever the report gets refreshed, so that it will be easy for user not to search in the big list for those 3 values.
    Any inputs please.
    Thanks,

    Hi,
    You can make some values as default prompt values by webi report.
    1) Open the webi report.
    2) Edit the query then go to the prompt
    3) Go to the prompt properties checked the chekcbox "Set default values" and type the three values and ok.
    So next time user refresh the report all three values come in the filter  default.They can remove or add more values in the list.but every time all values come in the filter.
    Thanks,
    Amit

  • Need to retain the values of LOV in Apex

    Hi,
    I had created three lovs namely A,B, and C in which A is the parent of B and C is an independent LOV. For parent child realtionship between the LOVS A and B, I had used the Ajax on demand process.
    Now in my project all the three LOVs are mandatory, so what i want if suppose any user clicks on submit button without selecting any value from LOV C, then it must load to the same page and show an error. My problem is that after the page load, LOVs A and B are not retaining their earlier values and set to default values In my application I want to retain them.
    I hope my problem is clear.
    Please help.
    Thanks
    Saurabh

    OK, now it is a different story.
    First, you don't need to remove the page# from the action section as long as it is NOT in the clear cache attribute.
    Second, You said that you are using AJAX to load the value of B , and I beleive that currently you have a JS that fires OnChange on item A. You need to call the same JS code when loading the page as follows:
    In you page attributes :
    Page HTML Body Attribute>> onLoad="your_function();"
    where your_function is the same function you call when you change A's value to get B's value..
    Hope this helps.
    Sam

  • How to default a value on a filed on OAF screen which is a dropdown

    Hi,
    I have a requirement where I have to make a value default on a fiield on OAF screen which is a dropdown. I have done this defaulting on a LOV field but I am not able to do it on a field which has a dropdown. Can someone please help?
    Thanks

    1. If my understanding is correct, you need to default a value in MessageChoice.
    2. Do you want the drop down to have a default value for all news rows that you create?
    3. Why you are not able to do that? Please explain the behavior.
    Default values you can specify in VO Attribute, EO Attribute, VO.createRow(), EO.create(), your AM code where you create a new Row.
    Depending on the scenario you can use any of these. Please ensure that you are not setting it to null or some incorrect value before coming to that page.
    -Prince
    [email protected]

  • Problem when defaulting a value to the field

    Hi CRM Experts,
    I am new to CRM, i am facing a problem when defaulting a value to the field in the Tcode 'SOLMAN_WORKCENTER' (Solution Manager Server).
    when i am defaulting it is displaying fine in the view( Redefined the getter method there i passed the value), i set a break point in the getter method when i am executing the getter method i am unable to get the defaulted value in the importing parameter value, but i am getting the value here when i used to type manually in the filed, i cant understand why it is behaving like that? please can any body help in this regard...
    Thanks in advance
    Hari..

    There are other ways to get the string-value of an enum (format into string with a %s formatter for instance).
    But I have no idea what you are seeing.
    However I would not use the enum to string technique chose you have, just add the enum to the 'file' VI as an input.
    And the =0 comparison you have is useless, add the enum to the case structure as the selector.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Unable to default   Payscale type / Area.

    Hi,
    Unable to default   Payscale type / Area.
    Activated TARIF.
    Updated v_p001_c
    When create IT 0008 , still its old values .
    GK

    Hello
    Please look at these threads ..
    Payscale type and area + wage types not defaulting in It0008
    Payscale type defaults
    Thanks and Kind Regards
    Ramana

Maybe you are looking for

  • External Hard drive will not mount on desktop

    I have a 17" Powerbook G4 that has replaced a broken iBook G4. I've been using a Western Digital MyBook Pro Edition as a secondary drive for my multimedia as well as my iTunes Library. It worked fine on the old iBook. When I plug it into the Powerboo

  • Problem with WSDL generated with wscompile JAX-RPC

    Ok well I have successfully built a Web Service (From an existing wsdl) and Static Stub Client they work perfectly. I then I tried to connect to it using a Delphi Web Service Client. The client cant change, the problem I am getting is it is requestin

  • Process Inbound IDOC

    Hi there, I have an IDOC file store in the application server, I would like to know if exist a funcion module to read this Idoc and process it as inbound message in SAP. Thanks in advance Alexis

  • Obiee Report is very slow

    Hi, The report is looking very slow ,where should i tune it? Thanks-Bhaskar

  • Web 2.0 Solutions Paracas example

    Has anyone tried using the Paracas application in chapter 5 of this book and got it to work/render okay? As is, the runtime page has microscopic icons in the top left of the page, and no visible company logo. I wrote to one of the authors (no answer)