Make lov required programmatically

I have a table :
select  col1   col2-lov
o            1      lov1     
o            2      lov2     
o            3      lov3     
o            4      lov4 If any row is selected , then corresponding col2lov should become required to be picked before user can do anything else.
How can I do it ?
I tried setting the required attribute based on vo's boolean attribute , and setting it to true when the row is selected , but this logic doesnt seem to work.
any pointers ?

I think your requirement is:
User will select particular row in say advanced tableusing select checkbox. In this case you want to make col2LOV mandatory.
Do following:
1) set required property of item to like this: ${oa.*current*.transfielddisable}
2) getfirstfilteredrow'Y' for your select checkbox or radio button, to check which checkbox user has selected.
IF you need you can use : in CO call AM method using
String rowReference =
pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
Serializable[] parameters = { rowReference };
Object lecolname = AM.getlegcolname(rowReference);
here row reference will give you current pointer to row..
I am sure, using above 2-3 concepts you should be able to solve the problem.

Similar Messages

  • Sharepoint 2010 - Cannot make field Required in Add New Item form.

    I made a fleld Required by making the proper selection in List Settings > Editing the column.  It now shows as required when I edit an existing record in the list, but is not required when adding a new item.  Why does the setting not apply
    to the Add New Item form?  How can I make it apply/required?
    btw, there are no content types associated with the list.

    Hi  ,
    According to your description, my understanding is that you cannot make field required in the list new form.
    For my test, I created a custom list , added a non-required field and added some records. Then I made the field required. But it worked fine as expected both in existing records and  in Add New Item
    form.
    Do you have some customization in your list new form?
    You can go to your list -> Customize Form under  list tab, then the new form will be opened in the InfoPath. In the InfoPath, right click the field and select Text Box Properties, make sure “Cannot
    be blank”  has been checked.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to make fields required in an updateble multi line form?

    How to make fields required in an updateble multi line form?

    You need to create a validation item that is triggered when the user clicks the submit button.
    Set the validation type to "Function Returning Error Text".
    Then add your validation into the "Validation Expression 1" field. Something like:
    BEGIN
    FOR I IN 1.. HTMLDB_APPLICATION.G_F02.COUNT LOOP
    IF HTMLDB_APPLICATION.G_F02(I) IS NULL THEN
    RETURN 'Please enter in a value for xxxxx on line ' || TO_CHAR(I,'0');
    END IF;
    END LOOP;
    RETURN NULL;
    END;
    As long as the function returns a string, an error is generated - as there is no single field where this error can be displayed, it will need to be displayed "On Error Page".
    If the return value is NULL, then the fields are valid and the submit process can continue.
    Andy

  • How make LOV in JDeveloper 10g by ADF

    How make LOV in JDeveloper 10g by ADF
    please help guys ?

    433592,
    Looks like you've ended up in the wrong Forum.
    This one is for Oracle HTML DB.
    Thanks,
    - Scott -

  • F-02 T.CODE TEXT FEILD MAKE IT REQUIRED ENTRY FIELD NOT FOR OBC4 AND OB41

    my end users want to when ever post a document through F-02 t code text feild make it required entry feild, how to configure
    pl halp me
    Moderator: Please, don't post in CAPITAL letters and search before posting

    Hi,
    Change the field status group for that GL account and make text field as required.
    Use T-Code OBC4
    Thanks
    Andy

  • Can we make LOV search window attribute should n't case senstive

    Hi,
    I need to make LOV search window attributes not case senstive is it possible, because on search criteria we can make but how can we do this in LOV?

    Hi Thack
    Your comments are welcome.
    Besides posting your comments here, you also need to post it in the official feedback thread. These poasts really are sent directly to the beta team and they really do read them. The more feedback they get on specific changes, the more likely those changes are to be implemented.
    Go to the following thread. Click the Reply Button on the first post and write your comments.
    Have Comments about Windows 7 RC?
    All of the posts in that thread are collected, periodically and sent directly to the Beta Team.
    Hope this helps.
    Thank You for testing Windows 7
    Ronnie Vernon MVP

  • How to make taxonomywebtaggingcontrol required

    Hi,
    I have created custom aspx and I have added taxonomywebtaggingcontrols.I want to make those controls required.
    Can any body let me know how to make taxonomywebtaggingcontrols required?
    I tried the following link but no luck.
    http://sharepoint.stackexchange.com/questions/28602/is-it-possible-to-have-a-required-field-validator-for-taxonomy-webtagging-contro
    Any help would be appreciated.
    Thank you,
    AA.

    http://sharepoint.stackexchange.com/questions/78561/how-to-make-taxonomy-picker-required-when-used-in-visual-web-part
    Taxonomy:TaxonomyWebTaggingControl runat="server" ID="taxProjectOwnerDepartment" Visible="true" IsMulti="false" IsDisplayPickerButton="true">
    </Taxonomy:TaxonomyWebTaggingControl>
    <asp:CustomValidator ID="rfvProjectOwnerDepartment" runat="server" OnServerValidate="validator_ServerValidate" />
    http://sharepoint.stackexchange.com/questions/17019/taxonomywebtaggingcontrol-the-data-entered-was-not-valid-on-postback
    Or you can plan to use Javascript to make mandatory that column.

  • Form Personalization - Make field required based on LOV selection

    Newbie here.
    I am trying to make a field required based on the selection of the LOV that is next to it. Having a heck of a time with it.
    The form i am working on is the Sub Invenntory form that you get to via Organization Items. We want the subinvnetory field to be manditory when subinv is selected from the LOV in the sources tab.
    here is what i have so far:
    CONDITION
    Trigger Event: WHEN-VALIDATE-RECORD
    Trigger Obj: ITEM_SUBINVENTORIES
    Condition: ${item.item_subinventories.SOURCE_TYPE.value} = 3
    Action
    Type: Property
    Object Type: Item
    Target Object: ITEM_SUBINVENTORIES.SOURCE_SUBINVENTORY
    Property Name: REQUIRED
    Value: TRUE
    The problem seems to be that i can't get the field to be required. It shows up yellow but still allows me to save w/ the field being blank.

    I do not know about the particular form that you are trying to personalize, but whenever I have created a condition, it has usually been in the following syntax:
    :BLOCK_NAME.FIELD_NAME = 'VALUE'
    For example, :MTL_SYSTEM_ITEMS.PRIMARY_UNIT_OF_MEASURE_MIR = 'SEAT'
    Yours seems to be very much different from mine, but then again, I am not technical so I cannot comment intelligently on that aspect.
    May be that is the problem.
    Also, once you get it to work, you might want to also add a condition where the field is turned to un-required when the SOURCE_TYPE is NOT 3.

  • How to handle make current for programmatic VO

    I have a view object that populates row-sets based on a procedure. The procedure returns an oracle object list, which I am able to convert to the View Object's row.
    The executeQueryForCollection() runs my procedure stores my data using
        protected void executeQueryForCollection(Object qc, Object[] params,
                                                 int noUserParams) {
            Object[] bind_variable = null;
            String qry =
                "begin hr.PROC_test(:1); end;";
            try {
                    CallableStatement stmt =
                        getDBTransaction().createCallableStatement(qry,
                                                                   getDBTransaction().DEFAULT);
                    stmt.registerOutParameter(1, OracleTypes.ARRAY,
                                              "hr.TEST_REC_TABLE");
                    stmt.execute();
                    Array arr = stmt.getArray(1);
                    Object[] array = (Object[])arr.getArray();
                    ROW_COUNT = array.length;//my way to get estimated row count, since the row count for my result set is unpredictable. max of 3000 records
                    rs = arr.getResultSet();
                    storeNewResultSet(qc, rs);
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                super.executeQueryForCollection(qc, params, noUserParams);//I don't know whether this is really required
        private void storeNewResultSet(Object qc, ResultSet rs) {
            ResultSet existingRs = getResultSet(qc);
            // If this query collection is getting reused, close out any previous rowset - got from below link
            if (existingRs != null) {
                try {
                    existingRs.close();
                } catch (SQLException s) {
                    s.printStackTrace();
            setUserDataForCollection(qc, rs);
            hasNextForCollection(qc); // Prime the pump with the first row.
        }The View object is used in a page as a readonly table.
    Now the problem I am facing is :
    When I select a row, the make current property of table gets fired. This will call executeQueryForCollection with an additional param (bind variable) with name "fbkKy__0" (i believe it is find by key) and value : my current row's key value.
    Since my executeQueryForCollection is called, the procedure gets executed again(This is also not required because, the procudure does takes time, and is not required to re-execute always).
    The UI table will show the selection, but my iterator is pointing to the first row. And as a result am not able to get the current row in the bean.
    I developed the above VO based on below link and the fusion middle ware developer's guide.
    ref : http://adfpractice-fedor.blogspot.in/2011/01/adf-bc-programmatically-populated-vo.html
    ADF 11.1.1.3.

    executeQueryForCollection can be executed because of passivation/activation process. When you're selecting a new row in the table, the AM is going to be activated and VO instances are going to be refreshed. So, in case of passivation/activation, it's ok if your executeQueryForCollection is being executed again. But the strange fact is that you loose the VO's current row. The current row should be passivated as well and after the activation process the VO instance should have correct current row. That's why I asked about primary key. Actually, I emulated the situation and everything works fine, the current row is correct after the activation.

  • How to make field requirement quantity mandatory in maint order?

    Hi Experts,
    I would like to make filed RESBD-MENGE - requirement quantity field in component tab of maintenance order mandatory. But I am not getting the IMG settings for this. I checked this screen settings for components for PM/CS orders. But I didn't  get this field in that screen. Can anybody help me out on this?
    Thanks and Best Regards,
    Praveen.

    Hi,
    I need this to activate for all order types. I think this can be accomplished by user exit IWO10009, which will trigger during saving event. I didn't try for this but i used this exit previously for checking during saving event for some other field. I think this can be used here also so that while saving the system will check the field and if the field is empty, system will give the error message. some coding may required to check the field.
    If you have any alternative idea kindly share.
    Thanks and Best regards,
    Praveen

  • Entry in fields to make compulsory /Required Entry for QM tab fields in MMR

    Dear Gurus ,
    I need to make some fields as Required Entry in Quality Management tab of Material Master record
    So that the users compulsorily need to fill data before saving the MMR. The fields which I want to
    make compulsory are visible after clicking the "Inspection setup" button in the QM tab , the various
    fields are "post to insp. lot", "inspection with task list" etc. like this about 10 fields ,
    I went in OMS9 , but could not find the field ref. group for table RMQAM  , also could not find these
    fields in OMSR.
    Please guide how to make these fields compulsory. Thanks in advance.

    >
    Anil Shan wrote:
    > Dear Gurus ,
    >
    > I need to make some fields as Required Entry in Quality Management tab of Material Master record
    > So that the users compulsorily need to fill data before saving the MMR. The fields which I want to
    > make compulsory are visible after clicking the "Inspection setup" button in the QM tab , the various
    > fields are "post to insp. lot", "inspection with task list" etc. like this about 10 fields ,
    > I went in OMS9 , but could not find the field ref. group for table RMQAM  , also could not find these
    > fields in OMSR.
    >
    > Please guide how to make these fields compulsory. Thanks in advance.
    I don't think this is possible in standard...since all this fields (ticked or un-ticked) flow from the configuration of Inspection types in QM...you have to see there in QM configuration whether anything is possible...
    Regards,
    Indranil

  • LOV required -- no message appears on my page

    Hallo,
    JHeadstart 10.1.3.1.26
    JDeveloper 10.1.3.1.0
    I want to know how I can get a message that my LOV item is required on a page.
    I have normal items (textinput) which are required (required set to true in JHeadstart) and on the same page I have a LOV which is required. But if I leave the LOV blank on my page I only get a message from my Business Rule. There is no message from the page.
    If I leave a text item blank on my page I get a message in red under my text item and a red cross.
    Is it possible to get the same kind of message with an LOV item??

    This is intentional to work around some limitations of PPR and JSF lifecycle
    I'll try to explain why:
    - an LOV item or depends on item must have the immediate attribute set to true, so validation of the item and execution of the valueChangeListener will take place in the JSF Apply Request Values Phase. In the valueChangeListener, after updating the underlying model attribute, we directly jump to the render reponse phase, to skip other validations
    - If there are multiple items with immediate="true" on the page, then they will all be validated "in sequence" in apply request values phase. So, the first item is validated before the valuechangelistener of the second item fires. If the end user enters data "normally" in sequence, this is usually not a problem, however, if the user first enters a value for the second "depends on" item, and then you get the validation error on the first depends on item.
    So, to prevent this behavior we generate the showRequired property instead of the required property for LOV items and depends on items.
    Steven Davelaar,
    JHeadstart Team

  • Make LOV field not updateable

    I have a form, which can be called in query/update mode from a report. One of the fields is a list of values (combo-box), which I want to be non-updateable. I know that this can be done for other field types like text boxes, but how can I achieve this for combo box LOVs?

    Hi!
    You can make a LOV to be non-updatable-like with dynamic LOVs and bind variable. For example: the emp_id LOV select will look like this:
    select emp_name, emp_id from emp_table
    where (:empID is NULL)
    or (emp_id=(select emp_id from emp_table where emp_id=:empID))
    At insert the LOV will show all datas from emp_table, but at update the LOV will show only the emp_name that was in the selected record.
    I use it, and it works fine!
    Gyorgy

  • ESS: Address  Make Telephone required field

    Hello ,
    I was trying make Telephone Number as required field in ESS - Webdynpro application,
    but i could not find the exact place. I was looking at the following DC:  ess/per
    ess/us/addr, i just found the following code:
    fpm.raiseReviewAndSaveEvent(IFPM.EVENT_REVIEW, IFPM.EVENT_SAVE, thisVAC);
    I changed the field as required also if the use clicks review then i should display message if the telephone number is not entered.
    If anyone have any input on this highly appreciated.
    Thanks
    VJ

    Hi,
        You have the detail component for address name VcPerAddressUSDetail.
    Mark the layout view of telephone as property STATE=required
    Go to component controller and write the following code inside the function onFlush.
    You can see the line wdThis.wdGetFcPerAddressUSInterface().modifyRecord(); below of this function.
    public void onFlush( )
    String TelNumber=wdContext.currentSelectedInfotypeElement().getTelnr();
    if (TelNumber== null || TelNumber.equals("")){
    wdComponentAPI.getMessageManager().reportException("Please enter the telephone number");
    else
    wdThis.wdGetFcPerAddressUSInterface().modifyRecord();
    Hope this will resolve your problem
    Thanks
    Kanai

  • I want to make Text1 required if Text2 is left blank and vise versa

    Hi all!,
    I'm trying to get the javascript to make two text fields required before a form is submitted. Essentially they have to fill in text in either Text1 or text2. If they leave them both blank, the form cannot be submitted. Any thoughts?
    Thanks

    You can use this as the script for the Submit button:
    var f= this.getField("Text1")
    var g= this.getField("Text2")
    if ((f.value =="") && (g.value ==""))
    app.alert("You must fill in at least 1 field");
    If both fields are blank, an alert message appears when the user tries to submit the form.

Maybe you are looking for

  • Issues in standard title bar

    in standard title bar we see program,edit,goto,block/buffer,displayformat,system ,help but in case i not see this optation in my menu bar missing block/buffer and displayformat

  • Release Encumbrances or Commitments

    Hi,   We are on SRM 5.5 in Extended Classic Mode. There are situations where we have to 'Complete' PO (say the requirement that generated the PO is no longer necessary etc.). Since the PO has been ordered and backend documents generated we have to 'C

  • Whiteboard Apps

    I am looking for a whiteboard app that I can use with the iPod touch and share with a computer (via wifi or whatever). Zeptopad seems to be close to what I am looking for, but I am looking for something a bit cheaper if possible since that app is $20

  • Creative Suite CS 5.5 Design Premium does not work with Lion

    Wenn ich InDesign starten möchte, erscheint die Meldung"Um Adobe InDesign CS5.5 starten zu können, müssen Sie eine Java Runtimeinstallieren, aber es besteht keine Verbindung zum Internet." Diese Meldung ist aber falsch. Eine Internetverbindung  beste

  • Adobe bridge issue

    how do i turn off abode bridge my install gets interupted