How to dynamically change values lov to an article based on the button

Hello

How to dynamically change the value list of an article based on the button create and apply the changes

I have the column type of transaction that lov with values as inward, BACK inward outward, outward in the form based on the table...

in design mode

I need list to the OUTSIDE inward, in the type of transaction oly column...

in update mode

I need the list of BACK inward, BACK outwards in the type of transaction oly column...

Kind regards

Pavan

Maybe something like that for a dynamic LOV

select label d, label r from
  select 'inward' label  , 'create' chk from dual union all
  select 'outward'       , 'create'     from dual union all
  select 'inward return' , 'update'     from dual union all
  select 'outward return', 'update'     from dual
)
where (:P1_ID is null     and chk = 'create')
or    (:P1_ID is not null and chk = 'update')

Tags: Database

Similar Questions

  • How to dynamically change report style sheets in TestStand.

    How to dynamically change report style sheets in TestStand.


  • How to dynamically change the host name in the Pages of the URL of the APEX

    Dear gurus,

    Please advise me on how to dynamically change the hostname in the URL used in the pages of the APEX.

    For example: I have the below URL in one of the apex pages.
    owa_util. REDIRECT_URL ("http://adminlxdb03.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));

    in the case of a Migration of this apex from one server to another (for example, TEST the PROD box), this / these pages are wrong because the different host id name in the PROD box.

    Is it possible that we can dynamically change the hostname in the URL used in the pages of the APEX.

    for example
    owa_util. REDIRECT_URL ("http://adminlxdb03.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));

    should become

    owa_util. REDIRECT_URL ("http://adminetuxdb09.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));

    It's adminlxdb03.texas.org (TEST) at adminetuxdb09.texas.org (PROD).

    If the page has no error...

    Please notify.

    Thank you
    Sheik

    You don't need to provide the hostname while redirecting in the pages of the apex

    owa_util. REDIRECT_URL ('f? p ='| v ('APP_ID') |) ": 151:" | " v ('APP_SESSION'));

    should work just fine.

  • The email that I use as an ID is no longer in service, how can I change to a new ID if I know the old ID and the old password?

    The ID I used before is is longer in service, how can I change to a new ID if I know the old ID and the old password?

    Start here:

    Change your Apple - Apple Support ID

  • In windows movie maker, how can I change my clips so that they all have the same duration after that I added the?

    Original title: Windows Movie Maker

    In windows movie maker, how can I change my clips so that they all have the same duration after that I added the?

    Hi Ashley44,

    You can use the trim function in Windows Movie Maker to change the duration of the film. See the link below for the steps

    To trim a video clip

    If you want more advanced features, you can use Windows Live Movie Maker

    http://explore.live.com/Windows-Live-Movie-Maker-stunning-in-seconds?OS=other

  • How can I change my settings account (such as information about the country)?

    How can I change my settings account (such as information about the country)?

    Hi krisztina,.

    Please see this document to learn how to change the country associated with your Adobe ID: .html https://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id.

    This document provides instructions to change other information associated with your Adobe ID: Adobe ID, connect and help on accounts.

    Please let us know if you have any additional questions.

    Best,

    Sara

  • How do you change your bc intial model selection under options the site after clicking on finish

    How do you change your bc intial model selection under options the site after clicking on finish

    You can't do that. BC is not a system of theming like Wordpress or Joomla. The model is fixed and models of switching at this stage is not an easy feat.

  • dynamic action turns an article based on the result, and checks the database!

    I use Apex 4.1

    I do not know how to accomplish the following:
    If a pick list is changed, a function is checked and based on the results of a another field is disabled or enabled.

    I created a dynamic action (change) that executes a PL/SQL code, now I need to disable the other element.

    the problem is that I can't save the dynamic action because of the sign #.

    example:
    Start
    HTP.p ("< script type =" text/javascript"> '");
    HTP.p ('$('#P35_FT_00010_DOC_NO').attr ("readonly", "true")');
    HTP.p ("< /script >");
    end;

    I tried document.getElementById, but an error occurs also when I try to save.

    I think the wrong way?... Help, please

    1. create a step forward (not the simple/standard one) dynamic action.
    2. create initially unconditionally (the wizard will not let you take the PL/SQL expression as a condition but we will go back and change it later)
    3 assume that TRUE from your PL/SQL will lead to disable the item, then choose 'Disable' and the item you want to disable.
    4. Once created, go back in the DA and change the status of PL/SQL expression and put your PL/SQL in there (suppose you have a function returns boolean called MY_FUNC and TRUE to him means disable).
    5 copy the DA in its entirety to a new DA will be FALSE to activate the element.
    6. Once copied, go into the new DA and change the status of PL/SQL to NOT (my_func).
    7 change the REAL action of the DA to activate the element.

    So now you should have two similar DAs... one for when MY_FUNC is true and disables the element, a when "NOT (my_func)" is true and allows the element.

    If you do not disable, you can run javascript instead to set readonly. It seems that this is kind of what you tried to do, but you seem to use a jQuery selector, I suppose that (I did not recognize your syntax to off the bat)?

    Try to use the javascript API instead Apex:

    if ($v('P35_EN_DIS_DOC') == 1 )
      $x('P35_FT_00010_DOC_NO').readOnly='true';
    else
      $x('P35_FT_00010_DOC_NO').readOnly='';
    
  • I install Windows Media Player 11 on Dell Dim/3000, I received the message to turn the system restore. How do I do that? Turn on SR, where is the button?

    I install Windows Media Player 11 on Dell Dim/3000, I received the message to turn the system restore. How do I do that?  Turn on SR, where is the button?  How can I enable the system restore?  I want to install Window Media Player 11 and this is the message I received. WMP 11 I need to re install and everything about the need to restore the system to have anyting to install?  I need HELP as soon as POSSIBLE. I'll wait for a response.  I can't play all the music that I recently downloaded.

    I received the message that the system restore is disabled.  How do I turn it on, turn so I can install WMP 11 new or I need to reinstall the latest version of WMP11 again?  Help ASAP, I'll wait for a response.

    Hi AnnieStewart,

    1. What happens when you try to listen to music downloaded in Windows media player 11?
    2. What is the complete error message you receive when installing Windows media player 11?

    See the articles to turn on system restore on the computer.

    How to turn on and off on system restore in Windows XP

    http://support.Microsoft.com/kb/310405

    Steps of troubleshooting for problems when you try to use the System Restore tool in Windows XP

    http://support.Microsoft.com/kb/302796

  • How to dynamically change the names of columns LOV

    Hello

    I use JDeveloper 11.1.1.4

    I have only one requirement, while I need to change the names of columns in the list of values dynamically.

    How can I achieve it.

    Please help me.

    Kind regards

    John.

    Hello

    > But I want to change the column names 'ID' and 'Name' dynamically.

    Based on what? Condition? If Yes, have you tried to set the text for the label as an expression? If not based on the condition, you can also expose the VO to Java Impl and need a way to get the attribute and change its label.

    Arun-

  • TooManyObjects problem when changing values LOV

    Scenario is,

    I applied LOV on an attribute of the View object. but it gives an error when I change the value on LOV

    IM does not not the LOV first time, never seen error like this. How feature cache already have this PK in the whole of lines?

    J Dev Version: 11.1.2.4

    Of course, it will throw an exception because on the change in value, it corresponds to a record previously stored in the database (you ask Lov on a viewObject using its own data?)

    If you have this type of requirement let a transitional attribute and apply lov to this

    Ashish

  • How to dynamically change the last part of the url inside the body HTML in e-mail send to Apex process

    Hello

    I need to change the last part of the URL sent by post in the apex dynamically. I have a requirement that a person can register itself with a new user name and other details. When the user clicks on the button register after you have entered all the required values in the page all values will be inserted into the user_details_repository table in the database. At the same time an email with a url link is sent to the user admin for the assertion. When the admin user, click on the link it is redirected to a page where all the details submitted by this particular user is displayed. The admin user can confirm or reject the new user registration. If the admin user says, all the data repository of this particular user table will be inserted in a main table named user_details and data will be deleted from the repository table. Yet once if the admin user rejects, all the data repository of this particular user table will be deleted.

    For this, I have created two pages for this and all of the features mentioned above works correctly except change the link url each time a letter is sent to the admin user when a new user register itself. To send email, I created send e-mail process. I need to change the last word/part of URLs within html body according to the username provided by the new user.

    for example, the url to another user will be like this:

    http://localhost: 8080/apex/f? p = 103:9:3849261906471:NO:USERNAME:Namrata

    http://localhost: 8080/apex/f? p = 103:9:3849261906471:NO:USERNAME:Madhura

    Help, please.

    If there is another way to achieve the same thing please answer.

    Thank you

    Nilesh

    Hi Nilesh,

    You can use a Page element as a substitution variable in the body of the HTML message.

    for example, blah blah blah & P123_MY_PAGE_ITEM. blah blah blah

    The syntax is an ampersand in front of the name of page element and a point after the name.

    brgds,

    Peter

  • How to create/change value comes out after key

    Hi all


    I have a requirement, I need to change the value fate (Boolean) dynamics based on the sitution. (for example, for example.) If I click Search spell (ReadOnly) variable must be set to TRUE.like...


    I create a dummy VO and VO I have created variable fate.

    Can someone help me how to proceed when a key is pressed, I wrote code after pressed button it throws the below error.

    If (PageContext.GetParameter ("Create")! = null)
    {

    OAViewObject disvo = (OAViewObject) am.findViewObject ("XxafpEepStageRebateValidateVO1");
    Row1 OARow = (OARow) disvo.first ();
    Row1.SetAttribute ("ItemProperty", Boolean.FALSE);
    Row1.SetAttribute ("ReadOnly", Boolean.TRUE);

    call another page...
    }


    Error (102.6): class oaviewobject not found in the xxafp.oracle.apps.qp.pricelistrebate class




    Thank you
    Mahesh

    Hi Manu

    Seems that you have not imported class OAViewObject in your controller... Follow these steps in the import of your controller section...

    import oracle.apps.fnd.framework.OAViewObject;
    

    AJ

  • How to dynamically change text to a MenuItem

    What I'm trying to do is

    either place a "tick" in front of the menuitem tag

    or

    Change the text.

    I tried more to mount the getTextStringProvider by

    protected void makeMenu(Menu menu, int instance) {
            MenuItem item = new MenuItem(new StringProvider("App"), 0, 0){
                public StringProvider getTextStringProvider() {
                    return menuDisco ? new StringProvider("Stop Job") : new StringProvider("Start Job");
                }
            };
    

    but it did not work...

    I don't see how you can change the menu when the application is already running, or even place a tick to say he is running and not running.

    Don't change within brand change outside MenuItem when the MenuItem created and pass the StringProvider function of the State.

  • How do I change my computer zone? It came with the mountain time, and I want to Pacific Time (US). I can change the time manually, but there's no selection for US Pacific Time.

    How do I change time zone to my new computer?  It came with the Rockies (US) time, and I want to Pacific time.  I can manually change the time.  When I tried to select the Pacific time, there was no option.  Why not?  He had a lot of other places around the world.  Thank you.

    Hello Barbara Leep.

    This thread has been created in the Microsoft answers Site Feedback forum. the moderation of Microsoft team has moved this thread to the desktop of the Other/Unknown and customization forum.

Maybe you are looking for