How to Set Prompt of a Field in OAF using lookup

Hi Gurus!!
We have a requirement to change the Prompt of some fields and also have to give the flexibilty to the business user's so that in case if they wants to change the promt of a field in future then they should also be able to change it.
Is it possible to set the promt of field using lookup. So, that if users want to change it then they can go and change the lookup value .
If yes, can you please give me an example of this code .
Please let me know if any alternative approch is there to achive this requirement.
Any help would be grately appreciated.
Thanks
KR

Hi KR,
System.out.println(">>>"+pageContext.getMessage("FND", "FND_TEST1", null)); *//displying my custom msg*
is the message is printing the value,?
projNum.setPrompt(pageContext.getMessage("FND", "FND_TEST1", null));
Instead of above can you try with a hardcoded value like,
make sure projNum is not null, you can just print the value projNum.
projNum.setPrompt("Test Prompt");
And one more way you can try is create a VO which will pickup the value from Lookup
and use dataBinding (PROMPT_ATTR) and set the value.
You can search the forum for how to use the dataBinding
Eg.
OAMessageTextInputBean mTextBean_Y =
(OAMessageTextInputBean)tbl.findChildRecursive("NU_Y");
if (mTextBean_Y != null) {
OADataBoundValueViewObject promptNU_Y =
new OADataBoundValueViewObject(mTextBean_Y,
"QuestionName");
mTextBean_Y.setAttributeValue(oracle.cabo.ui.UIConstants.PROMPT_ATTR,
promptNU_Y);
Thanks,
With regards,
Kali.
OSSi.
Added sample code.

Similar Messages

  • How to set my own gui status when i use selection-screen

    how to set my own gui status when i use selection-screen command
    and
    how to set the names in the application tool bar when function keys are created

    Make sure that you do this in event "AT SELECTION-SCREEN OUTPUT".
    Run Txn ABAPDOCU and check 'DEMO_SEL_SCREEN_STATUS' for sample.
    Also check out following discussion -
    Selection Screen PF-STATUS
    Cheers,
    Sanjeev

  • Could anyone please let me know how to set a ICC profile with Acrobat dlls using Csharp or VB

    Could anyone please let me know how to set a ICC profile with Acrobat dlls using Csharp or VB

    Cant we even use the dlls in an application?
    In order to automate Acrobat, you need to have Acrobat installed. There is
    nothing you can do with just the DLLs. As was already stated, Acrobat is
    not licensed for use on a server, but regardless of that, it's also
    not technically suitable for server use. You need to find a solution
    outside of Acrobat to solve your problem.
    It also seems that you don't have a good understanding of what is going in
    inside a PDF file. PDF is a very complex file format, and based on
    your questions
    and followup questions, you need to spend a considerable amount of time
    getting familiar with the PDF file format to understand how color works in
    the PDF context. Reader the PDF spec, while paying special attention to the
    section about color. You will find out that if you want to convert the
    color space of a "PDF file", you actually need to convert the color space
    associated with every single object in your PDF file. That is fairly simple
    for vector graphic and text, but when it comes to images, you may have to
    convert the image data. Once you have a good understanding of what it is
    you need to do within the PDF file, then you can start looking for tools
    that allow you to do that. Again, Acrobat and therefore the Acrobat SDK is
    not suitable for this task. If you want to stay with Adobe products take a
    serious look at the PDF Library, which his licensed through Datalogics (
    http://www.datalogics.com/products/pdf/pdflibrary/). As you've mentioned,
    there are other, non-Adobe PDF libraries that you can also use, but this is
    the Acrobat SDK forum, so I won't discuss any of those 3rd party solutions.
    You are wasting your time while looking for a simple solution that does not
    exist.

  • How to set the 'default to' field of a dashboard prompt to yesterday?

    Hi everyone,
    I have a dashboard prompt on a date (fully qualified name Date.Date and type Date).
    I also have a simple report with two columns: Date.Date and a mesure (whatever the name).
    I managed to filter on the day before the current date in the report by adding an advanced SQL filter:
    Date.Date = Cast(TimestampAdd(SQL_TSI_DAY,-1,@{system.currentTime}) as Date)
    Now, I would like the prompt to select the day before the current date by default.
    The filter on Date.Date would be 'is prompted' or so.
    How do I set the "Default to" field of the prompt?
    Thanks in advance

    Hi
    go to your prompt..
    select SQL Results from Default to: dropdown..
    here.. you need to write your Logical SQL..
    which defaults to the previous date
    some thing like this..
    *select case when 1=0 then anydate column else timestampadd(sql_tsi_day, -1, CURRENT_DATE) end FROM SubjectArea name*
    write like this.. and report back...
    Thanks & Regards
    Kishore Guggilla

  • How to set a default "from" field on outgoing Mail message

    i read through the last few pages of this support forum and googled my topic but i havent found a suitable solution.
    in Mail v 3 (3.4) there is a "From:" field in any outgoing mail. very useful for those of us with multiple non-accounts and/or .Mac aliases. i generally set a specific outgoing mail server (so that field is removed from outgoing email).
    my problem is how to set a default outgoing email address so that my recipients always get from a certain (eg work) email address when i am at work. at work, anything i send, i want to show my work email without always having to manually select the "FROM" field in the outgoing email.
    ( aside: i had read that Mail version 3 was supposed to auto-select any reply so that the reply would come from the same email i orginally sent as. this does not work on my mac.)
    This problem is exacerbated as Mail auto-rotates between my 4 email accounts/aliases (which are all listed (correctly) in the FROM field. it would be great if this list could be fixed with a default FROM address.
    eg i send an email from my work email address (FROM: [email protected]) the next email i send will be rotated through my list of .mac aliases. i.e. the next email i send will not be from [email protected], but from [email protected] the next time it might move on to [email protected] or it might revert to [email protected]
    any thoughts on how to fix?
    i have tried deleting the home/library/preferences/com.apple.mail.plist. that is fine, but any .mac aliases (which i do use, but i dont want to be listed in the "FROM" field) are listed in the "FROM" field, and are auto-switched through my Mail again.
    i looked through Rules and Automator, but no obvious help there. any thoughts?

    Did you try Preferences > Accounts > Account Information and entering these other email aliases in the Email Address: field, separated by commas? That would give you a pop-down menu in the New Message window letting you choose which alias to use when sending an email.
    If you go to Preferences > Composing, there should be a pop-down menu near the middle of that window labeled "Send new mail from:" which will let you choose any email address you have entered in the Account Information field mentioned above, or "Account of last viewed mailbox" as the default.
    Mulder

  • How to set space between the fields in SearchPG- Display issue

    Hi Friends
    I Have created a searchPG with a QueryRN , In my searchPG i have some display issue after running the page its looks like this
    For Example assue its a page with 3 field and one table region
    Employee no
    Employee name
    Phone no
    ResulttableBut i want my searchPG should hav some space between two field as shown below
    Employee no
    Employee name
    Phone no
    ResulttablePlease adviice me
    I appreciate all ur advice
    Thanks
    A.T

    Hi Peddi
    In my structure pannel I have simpleSearchPanel below that only i have the two lov fields ex: emp_no and emp_name . how to set the spacer between this From which Region where can find the spacer bean what proerty do i need to set
    Thanks
    AT

  • How to set values of formula fields during runtime in crystal reports

    Hello All,
    Could any one help in letting me know how to set the values of a formula in the runtime.
    I tried using the below systax in the formula field
    Assume that I have 2 formula fields
    1. format_count
    2. format_display
    my formula is like below:
    in the formula field format_count i have
    format_display=pagenumber
    when checking for errors its throwing error stating "stamement is expected"
    Could any one help in resolving this
    Thanks

    Hi Ranjeet,
    Whenever you assign values to a variable, you need to use :=
    Like this:
    numbervar x := pagenumber
    And what exactly are you trying to do anyway?
    -Abhilash

  • How to set cursor in perticular field Table Maintence generator?

    Hi
    All
    I have created a table with 2 fields  Start_date and End_date. Now my requirement is i have to validate the both date field as Start_Date must be LESS than or EQUAL to End_Date. In table maintenance maintenance generator i have created a event VALIDATE_DATE in event 21. Its validating perfectly. The issue is after the ERROR message the Cursor is going to the key field. I want to set the cursor at End_Date field.
    I used
    data:ly_pos type i.
    IF NOT start_date LE end_date.
        SET CURSOR FIELD 'TABLE_NAME-END_DATE' LINE sy-linno OFFSET lv_pos.
        MESSAGE exxx(MsgClass).
    ENDIF.
    Its working for the FIRST time i am entering the new data. Next time the cursor going to the KEY field.  I have been asked not to write code in SE80. Anyhow i have to set the cursor in table maintenance maintenance generator event.
    Can anybody help?

    Hi Sourav,
    Please follow the below method:
    Go to Maintainance Screen (where you want the cursor setting). Goto Status - > Remember the screen name -> Double click on Program name.. Open Object list and expant Screen Tree -> double click on the same screen Number -> Go to its first tab attributs -> Change Mode -> Do F4 on Cursor Position field -> Choose the field where you want the cursor.
    But this way will always set the cursor at the HardCoded Field Name.
    Thanks,
    Preyansh

  • How to set Exch.rate-acct. field on Billing tab of billing document item

    In R/3 4.7, we have billing documents with different values for Exch. Rate on each line item. We want the values to appear also in the Exch.rate-acct. field so the values will apply to the line items on the FI document. They are greyed out for us.
    Does anyone know what to set to allow this field to be entered?

    Lisa,
    Not sure about 4.7, we used userexit_fill_vbrk_vbrp (rv60afzc) back on 4.5 to populate Exch.rate-acct field with the rate which was different from the rate used for invoice. I think you may put some logic into this userexit to populate the field based on your rules.

  • How to set persistent binding for QLA2300 (Sun branded -uses qlc driver)

    How to set persistent binding for QLA2300 (Sun branded ) HBA using qlc driver from Sun?
    Are there any CLI's for it?
    Is it done automatically?
    Is there any way by which we can infer that persistent binding is done?
    Platform: Solaris 9 on SPARC

    Persistent binding is effectively provided by STMS (MPxIO) - is there anything in particular you're wanting to do that STMS doesn't provide?

  • How to set up remote access on wvc80n without using TZO

    Just purchased the WVC80N, but how do you set it up for remote access without using TZO?  I can not get TZO to work w/ my Uverse 2wire 3800-hgv-b router.  Please help as the uverse customer support has not been helpful with port forwarding either.

    Hi, I'm a newbie at this, so pls be patient with my terminology...  I want to install 2 or 3 of these cameras in my mother's home, and I will have AT&T DSL service (one dynamic IP address) there with only a modem/wireless router.  I want to access the cameras from my laptop or from my Blackberry Tour when I am traveling.  Also want to allow access for my other relatives.  I do not have another home computer to serve as a WHS, and my laptop is obviously not connected to the internet all of the time.  Can I use the DDNS setup with DynDNS to provide access?  The instructions that I read seemed to imply that I needed a WHS in order to forward ports, etc.  Thanks in advance for your help.. Garry

  • 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 set components aligned in left when we use BorderLayout

    Hello All,
    How to set the components aligned in the left when we use BorderLayout in a panel.Right now,the components are getting aligned in the center.
    Any solutions?
    Thanks in advance,
    Vijay

    By default a JPanel uses a FlowLayout when created and by default a FlowLayout uses center alignment. Read the FlowLayout API to find out how to use left alignment.
    Also each individual component has an alignmentX and alignmentY value which is set to 0.5 (center aligned). Some LayoutManagers will take this value into consideration. Read the Component API for more information.
    Also, check out this section from the Swing tutorial on "Using Layout Managers":
    http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html

  • How to set organizer mail id in meeting request  using CL_APPOINTMENT class

    Hi,
    I have two questions here.
    1. How to set the organizer mail id using the method of CL_APPOINTMENT class? I have used the method   SET_ORGANIZER of class CL_APPOINTMENT by passing my SAP user name 'GCM' but when i received the appointment within outlook, i am able see my server mail id like 'Madhu G C <[email protected]>' instead of my outlook mail id '[email protected]'.
    2. How to set reoccursive meeting request in Outlook using cl_appoinment?Example: i have a training on alternative days say on 01-mar, 03-Mar, 05-mar. When i book the course, i should get these alternative days in outlook in a single meeting request?
    Best Regards,
    Madhu

    Please post the question in correct forum. This forum is for webdynpro abap.
    Regards
    Srinivas

  • How to set Current quota template dropdownto 50 GB using powershell script

    In central administrator under Application Management -> Configure quotas and locks  we have Current quota template drop down. I  want to set drop down value to 50 GB using powershell . Is it possible and it if it possible then How ? Please
    let me know 
    Thanks in Advance 
    Regards
    Subhash
     

    Hi Sub_84,
    A quota template consists of storage limit values that specify the maximum amount of data that can be stored in a site collection. When the storage limit is reached, a quota template can also trigger an e-mail alert to the site
    collection administrator. You can create a quota template that can be applied to any site collection in the farm. The storage limit applies to the sum of the content sizes for the top-level site and all subsites within the site collection.
    You can create quota template using powershell, ojbect module and sharepoint UI.
    Create new Quota template using powershell:
    $newQuotaTemplate = New-Object Microsoft.SharePoint.Administration.SPQuotaTemplate
    $newQuotaTemplate.Name = "New Quota Template"
    $newQuotaTemplate.StorageMaximumLevel = (150 * 1024) * 1024
    $newQuotaTemplate.StorageWarningLevel = (100 * 1024) * 1024
    $newQuotaTemplate.UserCodeMaximumLevel = 300
    $newQuotaTemplate.UserCodeWarningLevel = 300
    $contentService =[Microsoft.SharePoint.Administration.SPWebService]::ContentService
    $contentService.QuotaTemplates.Add($newQuotaTemplate)
    $contentService.Update()
    Check the link which can guide you how
    http://www.c-sharpcorner.com/uploadfile/anavijai/quota-templates-in-sharepoint-2010/
    Please mark the Answer and vote me if you think that above solution can help you to resolve the issue

Maybe you are looking for

  • Invoking an external webservice in OBIEE 11G

    I'm trying to create a very basic action to invoke an free external web service. But no matter what WSDL URL I use, I'm getting a SOAP Invocation error saying "Failed to read wsdl file at https://.... " I've used the following test URLs, but both res

  • Badi created throught Enhancement Spot,but it is not registered in SXS_ATTR

    Hi All, Can anyone please tell me regarding why, When BADI created through Enhancement Spot, it is not registration in the SXS_ATTR table. During creation of BADI, Through BADI Definition, the interface and Class is generated by the system itself. Wh

  • TV Shows will not play on iPod

    I just bought a 5G 30GB iPod yesterday after my 2G was stolen (so I am a relatively experineced user). I have been able to update my old music and everything seems to be working fine except for playing TV Shows. I have dowloaded an episode of Lost an

  • Word and excel

    I have been told that my 2004 version word and excel are not supported on my Lion. Is there a new version that is ?

  • Help with running applet

    Hi all, I have wrote this simple code which takes the input from two textboxes and then when the button is pressed, it adds the contents of the two boxes and displays them in the third textfield. import java.awt.*; import java.applet.*; import java.a