How to set Lov item property (Action type,event,parameter etc) in PR when page load

Hi gurus
I am new to OAF, First I need to explain my scenerio.
I need to make some field mandatory or non mandatory based on one LOV item (Pick list or message choice list).
for this i extended the controler and apply the changes, but in this case what heppen, It will effect only when i open the list (pop list) and click on more (Available in poplist) and it will open a new form and i select value from that form. But when I open the poplist and select the value from the same list rather going to more option (it does not open new form), then there are no effect. I though the issue with refreshing when selecting value from the same list.
To resolving this issue what i did
1. go to page == > the same LOV
2. Change the Client Action properties (
     Action type  = fireAction
     event          = xxevent
    submit = true.
After doing this when i run the page from my OAF enviroement , every thing is OK. Then I transfer the Controler to Server machine and change the controller and run the same page from the server, it has the same refreshing issue, Then I thought because I did not transfer LOV such properties so this is hepening,
Now I want to initilize such properties in Page load or what I need to do, Please advise me.
Regards,
Haq

Edward,
Thank you for the suggestion! It directly lead to my solution wherein I used CASE statements for the column in my Region SELECT such as the following:
WHEN (:P2_GRADING_METHOD = 'CR/NC' OR scs.scs_pass_audit = 'P') AND GET_GRADE_B93 (sac.stc_final_grade, sac.stc_verified_grade) IS NULL THEN htmldb_item.select_list_from_lov (5, 'Enter Grade', 'GRADE_LOV_CRNC','onBlur="return validate_grade(this,''FW_DATE_'||ROWNUM||''')"','NO',NULL,NULL,'GRADE_'||ROWNUM)
When the column is NULL, the Select List (LOV) contains the entry 'Enter Grade' and that is the value displayed on page load. I bypass the value 'Enter Grade' during Submit Processing where database updating occurs.
I did not find the need to enter values for p_null_value and p_null_text since I don't believe that it would cause the 'Enter Grade' value to display on page load for null value columns but rather would enable the user to select 'Enter Grade' from the list and have a specified return value stored in htmldb_item array.
Again, thank you for the help!

Similar Messages

  • How to set the item property to restrict the user to not to copy from above

    Hi Guru's,
    I have a requirement like, There were two items on the form name email Id, Confirm email Id.
    I have to ristrict the user to not to copy from email Id item.. make him/her to enter the value into confirm email id item field manually.
    How to set the item property to restrict the user to not to copy from above item and paste it in this item.
    Please help.
    Thanks!!

    Just an opinion here, but that is about the dumbest requirement I have ever seen.
    I am always annoyed by web sites that ask me to enter my email twice. I ALWAYS copy the email address from the original entry and paste it into the second one.
    People enter their email addresses so often, it takes a real klutz to not get it right. And what makes you think that if they enter it twice, that they won't enter it wrong both times anyway???

  • Strange Case..!! How 2 set an item as a master block to it's db items block

    Hello All,
    i have a question pls.
    ================
    How 2 set an item as a master block to it's related db items in the same data block; as follows:
    ============
    1-i have to enter the item's value ('LAB_TEMP' ) once then;
    2-the other related items in the same data block r changed record each time i navigate to the next record but this item is never changed in this case only if i re-entered another value as (master-detailed rel.). i tried to copy the value of this item to a display item called 'Temp' but it is changing according to the records frequency by default
    ===========================================================
    I tried the following code on when-new-record-instance & on post-changed Triggers as follows:
    ============================================================
    IF :LAB_TEMP IS NOT NULL THEN
    SET_ITEM_PROPERTY ('LAB_TEMP',ENABLED,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('LAB_TEMP',NAVIGABLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('TEMP',VISIBLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('LAB_TEMP',VISIBLE,PROPERTY_FALSE);
    :TEMP := :LAB_TEMP;
    ELSE
    SET_ITEM_PROPERTY ('LAB_TEMP',ENABLED,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('LAB_TEMP',NAVIGABLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('TEMP',VISIBLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('LAB_TEMP',VISIBLE,PROPERTY_TRUE);
    :TEMP := :LAB_TEMP;
    END IF;
    ============================================================
    even this generates unable to set enable property or visible prop. error
    ====================================================
    Someone help me with this pls.??
    ========================
    Thanks in advance,
    Regards,
    Abdetu..

    Hello everyone,
    This issue was solved as:
    ==================
    1-i created a separate db block
    2-created a text item called 'TEMP' with db=NO
    3-In the db block that i want to deal with it as:Master item to it's other related detailed items to that item which is called 'LAB_TEMP' ;
    * Copy value from property: TEMP.
    By this way i could entered a value i the ndb item called TEMP once & consequently this value is entered copyed 4 each new record i entered.
    This is an intial solution works fine at least 4 now, a Fried helped me with this i would like 2 share this info 2 others may be a new idea would help...
    Thanks always,
    Abdetu..

  • How to set default value to date type attribute.

    Hi,
    How to set default value to date type attribute.
    E.g I want to set u201C01/01/1999u201D to date attributes.
    First i want to set value and then i want to fetch the same & want to check equals.
    please suggest solution.
    Regards,
    Smita

    Hi,
    In wdinit() method u can set the date
    DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
    Date today = Calendar.getInstance().getTime();
    String reportDate = df.format(today);
    wdContext.currentContextElement().setFromDate(reportDate);
    Another way you have set the this formate like that
    1. Create a Simple type under "Dictionaries->SimpleType" called DateFormat
    2. Select the type as "date"
    3. Go to the "Representation" tab and set the format as "dd/MM/yyyy" (or whatever u want, but month should be MM)
    4.Bind the context attribute to the type created now.
    Hope this helps u.
    Best Regards
    Vijay K

  • How to set an item when I redirect using OWA_UTIL.redirect_url

    I am using OWA_UTIL.redirect_url to redirect users.
    but I am lost in how do I set an item doing this. I have an item called :P101_MSG and I want to set it to 1.
    I added &:P101_MSG=1 this: OWA_UTIL.redirect_url ('f?p=&APP_ID.:101:&SESSION.*&:P101_MSG=1* ');
    but that was wrong.
    Can someone tell me the syntax to set P101_MSG=1 when I redirect.
    Howard

    Hi
    I'm not quite sure of what you're doing or where you are but this isn't how you set APEX items in the URL.
    See this example
    f?p=:&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.::::P1_ITEM1,P1_ITEM2:A,BThis sets item1 = A and item 2 = B.
    Is this what you mean (make sue you get the number of colons correct...
    Cheers
    Ben

  • How I set my Q5 so that reminders (for appointments, etc.) are displayed on my home screen?

    How I set my Q5 so that reminders (for appointments, etc.) are displayed on my home screen?
    Solved!
    Go to Solution.

    Swipe down from the top of your homescreen and select Settings>Notifications. Near the bottom you'll see in blue letters Lock Screen Settings. Click that and toggle Lock Screen Notifications to ON. Now whenever you have an appointment in your Calendar, it'll show up that day on your Lock Screen.
    Cheers.  
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • How to set lov criteria item dynamically

    Hi,
    pl let me know how can we set the lov criteria item programatically.
    i have 2 lov's.if the 1st lov has a null value then 2nd lov shud have a null value.
    but if 1st lov has a value then 2nd lov has to populate values based on the value in the 1st.
    pl do help me
    thanks

    Hi,
    Can you check the OAMessageLovInput
    s addLovRelations api.
    Eg.
    OAMessageLovInputBean mlib =(OAMessageLovInputBean)webBean.findChildRecursive("id of lov");
    mlib.addLovRelations(pageContext, "inputTest", // base page item
    "Empname", // lov item
    LOV_RESULT, // direction
    LOV_REQUIRED_NO);
    mlib.addLovRelations(pageContext, "inputTest", // base page item
    "Empname", // lov item
    LOV_CRITERIA, // direction
    LOV_REQUIRED_NO); // Enable Look
    Thanks.
    With Regards,
    Kali.
    OSSI.

  • Problems setting managed bean property of type Integer

    I got a problem when I use valueBinding #{param.productId} in faces-config.xml for my managed bean:
    My property 'productId' in bean Product is of type Integer, and my bean is in request scope. When I try to invoke some action on page, wich should navigate me to another view - JSF is trying to set productId for current view, and of course it is empty (""), and for the reasons given above I'm getting an error:
    javax.faces.FacesException: Can't set managed bean property: 'applicationId'.
    at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:576)
    at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:233)
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:256)
    ... 60 more
    Caused by: java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:489)
    at java.lang.Integer.<init>(Integer.java:609)
    at com.sun.faces.config.ManagedBeanFactory.getConvertedValueConsideringPrimitives(ManagedBeanFactory.java:855)
    at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:555)
    Should I use requestScope instead of param to have my parameter null, and not "" ?
    If so, how should I pass requestScope parameter using commandLink?

    Hi! I have a problem with setting params too. Probably my one is different.
    I have a jsp page which show a datatable, where I can see a row for each Product. If I click on its name I would navigate to another page that shows product informations, as several ecommerce sites do.
    But I can't understand what and how I must set to inform the details page on which product have to show.
    I read in this forum that it's possible to set a parameter in productBean, and then the constructor of product bean loads others fields knowing its id.
    The snippet of my faces-config.xml is:
      <managed-bean>
        <managed-bean-name>product</managed-bean-name>
        <managed-bean-class>test.backing.ProductBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
          <property-name>idToLoad</property-name>
          <property-class>java.lang.Integer</property-class>
          <value>#{param.id}</value>
        </managed-property>
      </managed-bean>It is possible? is a correct solution? and if it is, how can I do that?
    Thanks very much if someone can resolve my problem.
    Claudio.

  • How to set the actionname property in B2B 11g

    I have an outbound file sent via AS2 over http. I gather from other b2b forums/documents that for preserving the file name I have to set the actionname property. I have a BPEL process which is setting the fromTP, toTP, document TYPE etc, and then invoking the B2B and sending the document. Can I set the actionname property in the BPEL?
    When I am trying to assign a value like "contentType:application/octet-stream;filename:abc.xml", I don't see any actionname property in the "To" side.

    As there are three ways through which you may pass a message to B2B, so there are three ways to set Action name property.
    If you are using SCA/Fabric then set below properties -
    b2b.fileName
    b2b.contentType
    If you are using JCA JMS adapter, then set below property -
    jca.jms.JMSProperty.ACTION_NAME
    If you are using JCA AQ adapter then set -
    ACTION_NAME
    Regards,
    Anuj

  • How to change a item property just for one record

    Hi,
    My Requirement is, when a new record is inserted i want item1 to be enabled(which is disabled by default) only for this new record. when I implement the following code, entire column is enabled intead of just for one record.
    The code I have written in WHEN-NEW-RECORD-INSTANCE trigger is
    app_item_property.set_property('block1.item1', ALTERABLE_PLUS, PROPERTY_ON);
    app_item_property.set_property('block1.item1', ENTERABLE, PROPERTY_ON);
    please help!
    Thanks
    Sunny

    The code I have written in WHEN-NEW-RECORD-INSTANCE trigger is
    app_item_property.set_property('block1.item1', ALTERABLE_PLUS, PROPERTY_ON);
    app_item_property.set_property('block1.item1', ENTERABLE, PROPERTY_ON);What is APP_ITEM_PROPERTY? This is not a Valid Oracle Forms Built-in. I don't see how your When-New-Record-Instance (WNRI) trigger will compile.
    To change the properties of a specific instance of an item you would use the Set_Item_Instance_Property built-in and then there are only a few properties you can change; which are: BORDER_BEVEL, INSERT_ALLOWED, NAVIGABLE, REQUIRED, UPDATE_ALLOWED and VISUAL_ATTRIBUTE. To make a specific instance of "ITEM1" Insertable and Updateable you would use the following:
    Set_Item_Instance_Property('YOUR_BLOCK.ITEM1', CURRENT_RECORD, INSERT_ALLOWED, PROPERTY_TRUE);
    Set_Item_Instance_Property('YOUR_BLOCK.ITEM1', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_TRUE);However, if you have set the ENABLED property of ITEM1 to NO in the Forms Builder, you will not be able to "Enable" the item using Set_Item_Instance_Property. You will need to make the item Enabled and set the INSERT/UPDATE properties to NO.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • HOW TO SET A ITEM DEFAULT VALUE  to today

    I have a item using select list and I like to set this item default value as
    today's date , such as "select to_char(sysdate,'YYYY-MM-DD') from dual"
    HTMLDB failed recongnize the default value, or throw error Error ERR-9132 Error in PLSQL expression for item default code, ...". I have tried each of 3 avaialable Default Value Types
    Per http://forums.oracle.com/forums/thread.jspa?messageID=443287, it is used to be doable, but the default value type (sql) is no longer avaialble in HTMLDB 2.0
    I would appreaciate it very much if anyone has successfully done this before, either set to today or current month

    Ching - Did you try a PL/SQL Expression using to_char(sysdate,'YYYY-MM-DD')?
    There have been no changes to the item default types available in HTML DB. The thread you referenced is for Oracle Portal, a separate and unrelated product.
    Scott

  • Step by step on how to set up email as output type

    Hello everyone,
    can someone pls help me with the configuration and the steps I have to do to set up email as output type for order confirmation, delivery and shipping. Also can you tell me the programs and forms I have to select from in the condition type. Do I need to get the ABAP guys involved and what do I ask of them, how finally is it interfaced with the email. Please give me step by step for the configuration and any other set up I have to do. I am working on ECC 6.0 and I need all the help I can get.
    Thanks

    Hi,
    Please go through this link it will help you about Output process in SAP R/3 for sales documents and billing documents.
    http://help.sap.com/saphelp_47x200/helpdata/en/93/745017546011d1a7020000e829fd11/frameset.htm
    I hope it will help you,
    Thanks,
    Raja

  • How to set the 'text' property of a 'Header' region dynamically?

    Hi,
    I have a requirement to display the 'text' property of a 'Header' region, based on a query.
    So I need to set the text property programatically in CO.
    Can I use setText("..") by getting the handler to the 'Header' region?
    If so, How to get the handler for the 'Header' region?
    Message was edited by:
    user594528

    How to get the handler for the 'Header' region to call the setText()?
    OAHeaderBean Header1 = (OAHeaderBean)...........................
    Header1.setText("....");

  • How to set UOO(bea_unitoforder) property within BPEL Adapter property

    Hi,
    In oracle documentation JMS message payload field values can be used as correlation properties.
    Correlation property aliases are used to define from which payload field the correlation property value is taken.
    I need to set the correlation property value from a JMS message header field instead of payload fields. (=JMS JCA Adapter properties).I have a UOO value set same for all messages.Now I need to set this WL property to JMS JCA Adapter property and then create one single instance for all messages in queue.
    Routing a New message to a (New or) Existing Instance:
    http://docs.oracle.com/cd/E28389_01/dev.1111/e10224/bp_correlate.htm#CHDDJEAI
    How is it possible in BPEL???
    Thanks
    Souvik

    Hi,
    In oracle documentation JMS message payload field values can be used as correlation properties.
    Correlation property aliases are used to define from which payload field the correlation property value is taken.
    I need to set the correlation property value from a JMS message header field instead of payload fields. (=JMS JCA Adapter properties).I have a UOO value set same for all messages.Now I need to set this WL property to JMS JCA Adapter property and then create one single instance for all messages in queue.
    Routing a New message to a (New or) Existing Instance:
    http://docs.oracle.com/cd/E28389_01/dev.1111/e10224/bp_correlate.htm#CHDDJEAI
    How is it possible in BPEL???
    Thanks
    Souvik

  • How to create an item with date type mm/yyyy (no day)

    Hello,
    Is it possible to create an item with date type mm/yyyy (no day)? I want the pop-up date picker to just show month and year.
    Thanks,
    Jen

    Hi,
    you cannot pop-up date picker to just show month and year, but you can set your item format as MM-YYYY
    You can check this APEX_ITEM.DATE_POPUP2 at : http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_item.htm#CHDJHBCG (if using apex 4.1) else http://docs.oracle.com/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDFDDEI
    Edited by: Sergio_doudou on 2012-04-13 14:26

Maybe you are looking for

  • I am having terrible lag issues with my 2011 mac mini

    Hi, I am fairly new to the Mac worl. I have had iphones and ipads but this is my first Mac here are the specs... Yosemite 10.10.1 2.3ghz intel core i5 16gb 1333 MHz ddr3 intel HD Graphics 3000 512 MB Every time I try to do something I get the pin whe

  • Saving for Web Devices is not optimizing images properly

    Hello! Please help, when i use save for web devices, it does not make the file size of the final output smaller. As shown in the picture above, when i save for web devices the size is 33.85k but when i press save it will be 281kb as a final output. p

  • Does anyone know why chinese letterings are underlying my images in DW?

    I was finally able to do a screen capture of the chinese (i think) lettering when inserting an image ... innocent images like a logo to insert in my webpage. I have been really worried about how this is happening.  Thanks!

  • Ruler tool in CS6

    In CS5 to straighten the picture you chose Ruler draw a line, press straighten and the job was done, in CS6 this does not happen, you have to choose the crop tool to finish the job, double the work.

  • Alias names for account dimension

    Hi, The alias names for account dimension is not getting pushed to EAS for all EPMA essbase applications(ASO and BSO). However i see them in the application and in the dimension library. I just see the alias for accounts dimension as account but not