under certain conditions allow the update of an item in 10g

Hi all, I'm a total newbie to Oracle forms and I need to develop a base of to display the data in a table.

The logic that is needed is to allow the update one field and that too that it has one of two possible values.

For example, consider the following two documents:

Record 1:

Name: Naren

Status: NEW REQUEST

Sheet 2:

Name: Ravi

Status: REQUEST for CONVERSION


Only the status of the file 2 column can be updated on the "PROCESSING REQUEST' to 'NEW APPLICATION'.

I create a list box to the Status column with values of TREATMENT of DEMAND and the NEW REQUEST.

But that allows me to update the status of 'PROCESSING REQUEST' to 'NEW APPLICATION' and 'NEW APPLICATION' to "SEEK treatment".

I want to enable the update of status only when its value = "PROCESSING REQUEST"

Can someone help me please? Maybe that trigger to use.

Thank you.

Your code is wrong.

IF: UP_TEM_PAYCARD_REQUESTS. STATUS <> 'TREATMENT of the REQUEST' THEN

SET_ITEM_INSTANCE_PROPERTY('UP_TEM_PAYCARD_REQUESTS.) STATUS, UPDATE_ALLOWED, PROPERTY_FALSE);

END IF;

SET_ITEM_INSTANCE_PROPERTY accepts FOUR arguments (take a look at the online help.

Plan to retry the EXCHANGE WHEN LIST and POST-QUERY-approach with the correct code.

Tags: Oracle Development

Similar Questions

  • Under certain conditions allow a Feedback

    We use integrated installation of APEX flow back. We love this feature but, we will only use it in development. Is that anyway, apart from the use of JavaScript to hide or remove the link, we can have this under certain conditions depending on the environment in which the application is running?

    I know we can go turn off in the properties of the Application, but we have a ton of environments and having to manually press this switch whenever get us a new version of the application becomes tedious. I expect something more by program / data driven. For example, is it possible to return this switch integrated with PL/SQL?

    Thank you

    -Joe

    Create a compilation Option. In the development environment has defined the status on Includeand by default on export to exclude.

    Apply the Option to build on the entry page and the navigation bar of your comments. When the application is imported into a different environment the comments link and the page will not be returned.

  • Under certain conditions see the popup on page (fragment) charge

    Hi Experts,

    We have an obligation to show a popup on the page load, if a certain condition is true.

    I have two fragments (home.jsff and profile.jsff). Initially when the user login, home.jsff is indicated and that there should be no popup.

    When the user goes to profile.jsff and save the changes, it must first redirect to home.jsff and show a popup with the confirmation message.

    I can't create a fragment separated for the popup where we need to redirect to profile.jsff and then redirect to home.jsff as said the requirement that the popup should display the content of home.jsff in the background.

    Also I can't use showPopup behavior during the loading of the page because it's a jsff.

    Please suggest how to implement this.

    Thanks in advance.

    Best regards

    Saurabh

    ... There's an even simpler option

    1. Add a hidden from the fragment output text element

    2 bind the output components text 'value' property to a bean property of manage (pair of getter/setter)

    3. when the getter of the value method is called, check the indicator that you defined for if you want to display the context menu or not

    4. If the indicator is such that the popup needs to be displayed, run the Java Popup

    4.a search the component RichPopup

    4.b set flags of the popup

    4.c unset flag to display the pop-up window (for the next time you need to put it)

    4.d see the popup

    Frank

  • Define a field read-only under certain conditions in the table of the ADF

    Hi friends,
    I'm new to ADF. I created a page basic jsf and display of data from the countries in the table. I also have the createInsert and validation on the page buttons. When I click on create to insert a new record is created, and I am able to enter and save it with success. However, I want the records already entered to be read-only.

    Essentially, I want the user to enter details only by inserting the new record. Existing records or registered once newly created records should not be editable. I tried some things in the expression builder of the attribute read-only for the field, but this deos not work. Can anyone help me please with this.

    Thank you

    Using ADF BC?
    If so, check http://mjabr.wordpress.com/2011/07/15/control-row-updatability-part-2/

  • imaqReadAVIFrame retrieves the empty image under certain conditions?

    Hello

    I'm having a problem where imaqReadAVIFrame (.) is the white recovery (all black images) under certain conditions.  The conditions seem to be when the height of the AVI file is equal to or greater than the width and the height is an odd number.  AVI files created by using the various AVI NI Vision (IMAQ 4.6.1, IMAQdx 4.6.1) functions in an application created in CVI 2012 on a computer running Windows 7 64 bit.  AVI files use MJPEG compressor, and they play back fine in an external program like VLC or Windows Media Player.  Any ideas on what this could be?  My solution for now is to not to allow the creation of AVI files where the height is odd and equal to or greater than the width that is not a boring restriction, but it seems like there's something weird happens with imaqReadAVIFrame().  I can provide some AVI files if necessary, but they are 16 + MB each.

    TStanley,

    I managed to reproduce what you see with your .avi files in a program I wrote.  I built a LabVIEW program that creates an AVI file which can be saved to memory and then uses code from the example finder to read who created the file.  I build the file to your specifications at the height is greater than the width, and the height being an odd number of pixels.  Something interesting about this, however, is that it seems to be a point where an odd height is acceptable.  Once you go below the height of 291 pixels, any odd height then works.  The files that I used are written as read in LabVIEW, but that the configuration should be irrelevant because we are seeing the same issue.  In addition, LabVIEW and LabWindows CVI calling the same dll to actually set up the code.

    In this, I think this question arises from the nature of the way you compress the. AVI file.  If you are interested to read a bit more about it, a useful link can be found here:

    http://www.manifest-tech.com/media_pc/avi_formats.htm

    However, what I think is happening, is it that MJPEG file compression format translates into creating files that cannot be read by our software unless the height in pixels is a multiple of 2 or the size of the file is below a certain limit.  To fix that, there is a simple solution. Compress the file with any of the other compression methods available (DV video, Cinepak Codec, codec Intel IYUV, Microsoft RLE, Microsoft Video) and you will be able to open the file without the black screen.  This worked for me and should solve all your problems.  I hope this gives you a bit of insight.

    Kind regards

    Keith M

    Technical sales engineer

  • Under certain conditions create script

    Hi, I want to put a redirect code in my stsytem to help, it is possible to build under certain conditions one < script type = "text/javascript" > tag?

    Any help would be great appricieated

    oooo and meta tags as well!

    You are wanting to add a Javascript within a topic and then conditionalise it so it appears only in some outings? If so, check out this part of the aid for the addition of scripts. Once it is in, you should be able to add a tag of conditional compilation to exclude required results.

    I'm not sure you can conditionalise however meta tags. Maybe if you elaborate a bit on what you're trying to reach.

  • How can I add a page under certain conditions?

    Hello

    I'm trying to find a way to add a page to my form under certain conditions. I tried to create this sequel to 'action', but failed to locate the correct action.

    To sum up, I am trying to add a separate page to my existing form with instructions when a specific check box is selected. The separate page is text only and does not form any entries/field. Is there a relatively simple way to accomplish this task?

    You can enter the code in the script editor. If you do not show you can get it by pressing on (on PC) Ctrl + Shift + F5.

  • Update on the table by extracting the data from the table even under certain conditions

    Hi Experts,

    I have the table EMP which currently has 6 entries.

    EMP_SYS BATCH_NO JOIN_DATE LOGIN_ID STATUS FLAG

    1 FEBRUARY 10 PROD 84 Y IND123 ABC

    DEV 1-23 APRIL 98 Y IND123 ABC

    2 12 APRIL PROD 98 Y IND123 ABC

    2 2 APRIL DEV 98 Y IND123 ABC

    3 13 APRIL PROD 98 Y IND123 ABC

    3 3 APRIL DEV 98 Y IND123 ABC

    CONDITION: I need to take lines which has the minimum BATCH_NO for each of the EMP_SYS

    for example,.

    1 FEBRUARY 10 PROD 84 Y IND123 ABC

    DEV 1-23 APRIL 98 Y IND123 ABC

    For the above two lines, I need to update the status of DEF. How to select this criterion and update in the same query?

    Currently, I used the query to select the minimum BATCH_NO for each of the EMP_SYS below.

    SELECT EMP_SYS, BATCH_NO, JOIN_DATE, FLAG, LOGIN_ID, STATUS

    Of

    (

    EMP_SYS, BATCH_NO, JOIN_DATE, FLAG, LOGIN_ID, STATUS, SELECT ROW_NUMBER)

    COURSE NR (PARTITION BY ORDER OF EMP_SYS OF EMP_SYS)

    FROM EMP

    WHEN STATUS = 'ABC' AND FLAG = "Y".

    )

    WHERE

    NR = 1;

    If I try to use the update on the above query statement... It updates every 6 rows instead of 2 rows.

    Please suggest me a way to update only the two lines that has the minimum BATCH_NO for each of the EMP_SYS.

    But is possible to write the query without using the Group of?

    Update e EMP

    set STATUS = "DEF".

    where BATCH_NO = (select min (BATCH_NO) from EMP I where STATUS = 'ABC' AND FLAG = 'Y' and i.emp_sys = e.emp_sys)

  • Under certain conditions, update a table based on the comparison with a SQL statement

    I have a table (table 1) that has 4 columns:

    UID. THE NEST | VALUE1 | VALUE2

    I have another statement SQL (STMT) that returns the 3 columns of a few other tables:

    UID. THE NEST | VALUE1

    Now this is the condition of the way in which I want to put up-to-date TABLE1:

    First, to compare a pair of UID and PID of STMT with those in TABLE1,

    -1, for any new pair UID and PID not in TABLE1, insert a new line of STMT in TABLE1 set TABLE1. Value2 = 0 (I already did this).

    2, for an existing UID and PID pair in STMT and TABLE1, do:

    a. in TABLE1. Value2 > 0, update TABLE1. VALUE1 = STMT. VALUE1

    b. to TABLE1. Value2 = 0 and if TABLE1. VALUE1! = STMT. Value1, update of TABLE1. VALUE1 = STMT. Value1, otherwise nothing to do.

    I can't seem to come with a solution for condition 2. Any help is appreciated!

    Hello

    Here's one way:

    MERGE INTO  table1  dst
    USING          (
                 SELECT  ...   -- your stmt query goes here
             )   src
    ON         (    src.uid  = dst.uid
             AND      src.pid  = dst.pid
             )
    WHEN MATCHED THEN UPDATE
    SET           dst.value1 = CASE
                                   WHEN   dst.value2 > 0
                        OR     (   dst.value2 = 0
                             AND dst.calue1 != src.value1
                        )
                        THEN   src.value1
                               END
    WHERE   dst.value2 > 0
    OR (    dst.value2 = 0
       AND  dst.calue1 != src.value1
       )
    ;
    

    This assumes that the combination (uid, pid) is unique in stmt. It doesn't have to be unique in table1.

    sb92075 wrote:

    -1, for any new pair UID and PID not in TABLE1, insert a new line of STMT in TABLE1 set TABLE1. Value2 = 0 (I already did this).

    FUSION could also do parts 1 and 2 together, in the same statement.

    2, for an existing UID and PID pair in STMT and TABLE1, do:

    a. in TABLE1. Value2 > 0, update TABLE1. VALUE1 = STMT. VALUE1

    b. to TABLE1. Value2 = 0 and if TABLE1. VALUE1! = STMT. Value1, update of TABLE1. VALUE1 = STMT. Value1, otherwise nothing to do.

    Why are they not simply your needs ' uid and pid that already exist in stmt and table1, if table1.value2 > = 0, then the value table1.value1 = stmt.value1 "? Are you concerned about shooting triggers unnecessarily? It has something to do with null values? The MERGE statement above does exactly what you asked, but, depending on your needs, something simpler and more efficient could do it as well.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    If you ask on a DML statement, such as UPDATE, the sample data will be the content of the or the tables before the DML, and the results will be the State of the or the tables changed when it's all over.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.
    See the FAQ forum {message identifier: = 9360002}

    Published by: Frank Kulash, June 6, 2012 14:51

  • hide the text label in the section report IR under certain conditions

    Hello
    We have a textlabel and a calculated field in a section of report to the IR 11.1.2.1. Is it possible (in a script) to hide the textlabel and field based on certain conditions, like for example, if the field computes to 'zero '?
    Thank you.

    Use a field instead of the text label. In the Expression Editor you can use the function if() {} else {}

    HTH

    Wayne

  • Under certain conditions the filling of a column (country code) according to the context

    This is the task given to me

    I have conditionally to the filling of a column (country code) based on the context selected in ODI


    What is this mean and how to get a solution for this

    No, the context is not that.
    Context is an environment. For different implementations, it may be different. Let me share how we use them.
    We use 4 contexts - DEV (development), INT (integration), TCT and the PRD.
    Each interface can be run in any context. The ODI will provide information from schema/information of physical server during execution to the enforcement process depending on what context has been chosen.
    The executions in the following contexts can be controlled using the ODI Security Module.

    Other implementations I've seen are that each context represents a different location (server) of the company. Thus, interfaces can be run on different machines depending on the configuration. ODI translates this information during execution.
    Context1 (Server1) may be used to run an interface1 during the day and Context2 (Server2) may be used to run the interface1 overnight.

    In your case, it seems that each frame is another country. So, depending on the context, the field must be filled in by the country_code.

    PS don't forget to award the useful points or correct answers that helped you.
    Thank you

  • Y at - it a finer grain authorization allowing the update of the user profile

    Hello

    I have a code to programmatically update a users profile, however, it does not for all users due to their permissions. Because of code, using the UserProfileManager.getProfileForUpdate () method, the exception below may be of some use.

    oracle.webcenter.peopleconnections.profile.ProfileAccessException: the user doesn't have the required privilege to update the user's profile

    at oracle.webcenter.peopleconnections.profile.internal.model.LDAPProfileManagerImpl.getProfileForUpdate(LDAPProfileManagerImpl.java:236)


    I found in the Security page WebCenter permission "Manage people connections" that solves this problem and gives the user permission to update their profile however, I have two problems with this.

    (1) I don't know what exactly that allows.

    (2) I suspect it's what allows more that I need because it is currently disabled for all users, so is it possible to allow the permissions with a finer granularity?

    Thank you

    Marc

    Hello.

    Using Enterprise Manager, you must click on your domain name and in the Menu Options then security-> Application policies

    Search for Application that are used in your WebCenter Portal roles and modify the application role. It will show you the permissions applied to the role.

    For example, s8bba98ff_4cbb_40b8_beee_296c916a23ed # - #Spaces - user is authenticated in the default space Home users.

    Image:

    In the case of not finding the desired permission you can add it manually.

    Kind regards.

  • installation of LR 6 - can I allow the update of catalogue of LR4 or create new catalog?

    I update LR 6 as my version 4 will not support of Nikon D750 RAW files.  Is it safe allowing the conversion of all of the LR catalog to new version or should I create new catalog for D750 files?

    Hi FletchBayPhoto,

    You must allow the upgrade of the entire catalog Lightroom 6 that it will retain all of your editing accomplished so far.

    You can take backup of your Lightroom 4 catalog in order to maintain a backup for future reference.

    Kind regards

    Claes

  • Applications created with the Application generator does not start. It was after that I allowed the update install patches. Now the Version is 12.0.1f3 (32 bit)

    Help! Do not know what happened... I left the patch install the updater f3.  Now, when I create an application, it appears on the task bar (Windows 7) for a few seconds, then goes.  I don't know where to begin to understand this.

    Thank you

    Rich

    It is on the same computer.  The PC has the standard COMPUTER stuff.  VIper and they handle most of the firewall settings (windows).  I have turned them all off before installing.  I think it was a matter of execution engine.  I have no time to fight with LabView, so I uninstalled all LabView!  Then I made a new installation of the DVD.  This works.  I never install a patch of NOR without a week of free time!  In others, ever!  Whenever I do it, it takes me at least a day to get my operating environment!  Thanks for your time.  It is appreciated.

    Best regards

    Rich

  • Customization form of Oracle EBS - R12 - allow the update in the quantity field

    Hi friends,

    I have a requirement:

    1. do not leave the update in the quantity field.

    2. when the user click on save or go to another field, a message pop up «Unauthorized update» here

    Well, I tried 'WHEN to VALIDATE the POINT'

    -This will not be suitable for my requirement because the quantity field is in all tabs, pricing, delivery, address, return, service and other tabs quantity field.

    so I use 'ONCE VALIDATE RECORD' it's ok now.

    so please help me

    -How to find if a field (in my case its quantity (quantity in pricing, delivery, addresses, Returns, service and other tabs)). is changed or not.

    -for the record, we should pop up the message and bring back the amount of OLD back on the field.

    I don't know how to bring the amount of old to the rating.

    Help, please

    AT

    PL continue the discussion in your original post - Disable (= unauthorized update) the field ordered_quantity in Oracle Apps R12 using FP

Maybe you are looking for