tabular form - update the non-visible fields

Hi gurus!
I built a tabular form over a table composed of 6 fields and I use the MRU to allow the user to edit the record; Two field in that table are not visible and editable by the user; I want to use the two fields to track which change the record (both fields are Modify_USER, Modify_date).
I want to insert in the two fields the values the user variable and the sysdate.
Is it possible, is there a way to do this with MRU or do I have to manually write the PL/SQL for this?
I'm on APEX 3.2
Any suggestion will be appreciated.
Thanks in advance,
DDF

Instead of doing it this way, why not watch a trigger in the database, which will fill these columns when you perform an update on the table? The user will be & user_id. and the sysdate you already...

CREATE OR REPLACE TRIGGER Update_Table_X
BEFORE UPDATE
of Table_X
ON R_RECORDS
FOR EACH ROW
BEGIN

:new.Modify_date := sysdate;
:new.Modify_USER := app_user;
END;

Thank you

Tony Miller
Webster, TX

A lady came up to me on the street, pointed at my suede jacket and said: "do you not know that a cow was murdered for that jacket?
' I didn't know there are witnesses ', I replied: "now, I'll have to kill you too. '

Tags: Database

Similar Questions

  • When we change the non-mandatory field in the form, it is not updated

    Hello... I have a question here...

    If I required fields in a custom form, and when I ask the form and change the value in the non-mandatory field and click on save, then it does not save. It is said ' no changes to save "." But it is not the same for the non-compulsory fields.

    Can you please suggest me?

    -vrdida

    If you have an element with an assigned LoV it much difference if you change the value of points (assuming that you have either the property 'Validate list', the value yes or you have a WHEN-VALIDATE-POINT-trigger who performs the search ID fk of the given text) or if you visit the 'empty' field, or NULL. In this case, you must create a WHEN-VALIDATE-trigger POINT on the element, which "cleans" the Fk - id as

    IF :BLOCK.LOKUP_ITEM IS NULL THEN
      :BLOCK.FK_ID:=NULL;
    eNd IF;
    
  • creating more then a tabular form in the apex of the magician

    Hi all
    I am unable to create more then one table in a page form... don't we have another way to do... ?
    a solution may be greatly apprecieted.
    Concerning
    Vishal Roy

    Hi Vishal,

    You can have only one tabular form on a page. However, there are several threads associated with this topic, which you may find useful to consider. Some users have posted to their workarounds, so it would be interesting to search the forum for such offers. To start:

    How to have several forms of table on one page
    Multiple tabular forms with updates on the same page
    Re: why not 2 tabular forms on the same page?
    Multiple tabular forms
    2 tables form MRU/MRDing in the same table

    Kind regards
    Hilary

  • validation working is not to count the non-null fields

    I have six fields on the screen, I want to check that at least 3 of them are filled (3)...
    I created a validation as follows to count the non-null fields... but it's not working...
    Please help solve this problem or recommend a better way to do this...


    declare
    number of question_count;
    Start
    question_count: = 0;
    If: p1_t_question_1 is null then
    null;
    on the other
    question_count: =: question_count + 1;
    end if;
    If: p1_t_question_2 is null then
    null;
    on the other
    question_count: =: question_count + 1;
    end if;
    If: p1_t_question_3 is null then
    null;
    on the other
    question_count: =: question_count + 1;
    end if;
    If: p1_t_question_4 is null then
    null;
    on the other
    question_count: =: question_count + 1;
    end if;
    If: p1_t_question_6 is null then
    null;
    on the other
    question_count: =: question_count + 1;
    end if;
    If: p1_t_question_6 is null then
    null;
    on the other
    question_count: =: question_count + 1;
    end if;

    If: question_count > 2 then return false;
    otherwise returns true;
    end if;
    end;

    I'll take a look a bit.
    In the meantime, check if the code as

    If the trim (both '%' from: p1_question_with_nul') = 'null '.

    help

    Ok. Take a look now. I used the function TRIM as shown above and also changed the comparison for questions 3 text based on ' if: p1_question_with_text is null'

    Seems to work now

    CITY

    Published by: city has 23 October 2009 05:26

  • Dynamic form in the current state (fields visible/invisible)

    I've created my form dynamic so that some fields are visible and invisible, based on other selections in the form.  I created a submit button using a standard button and parameters to send the PDF file as an attachment to the appropriate address.  When the attachment is opened, the presence of the fields return to their State to be visible or invisible.  It's the same look you have when you open the PDF file under a new name.  The data entered by the user is still in the fields, some are just invisible.  Is it possible to send the PDF file with the visible/invisible state of all fields when the Send button is pressed?

    Example of


    New file is opened:

    Field visible =

    Field B = invisible

    The user changes the settings and submit the form:

    Field = invisible

    Field B = visible

    When I opened the attachment:

    Field visible =

    Field B = invisible

    Hello

    Check the properties of the form.

    There is a setting preseve script changes.

    Details on are explained in the tutorial video (03:10 min)

    http://TV.Adobe.com/watch/working-with-Adobe-LiveCycle-ES2/configuring-Forms-to-preserve-s cripting-changes.

  • Tabular form - how to set a field to a constant?

    I use a tabular form to update a table - and it works. Then I remembered that I also have to update the field which keeps track of who made the change.

    Configuration of the field via SELECT it (for example Select "userX" as a publisher of...) for the tabular presentation fails due to an error of concurrency of db (MRU 20001) on presentation.

    Try to substitute the current value in [column attributes] of the field in the context of the [attribute] - [value = "userX"] he added simply as the second argument to the value of the entry (of the html source).

    Suggestions?

    This as a trigger in the database... Setting that introduced the change, the date/time, and who have created the line is also a function, imo, a trigger for insert/update in the database, not the form...

    Thank you

    Tony Miller
    Webster, TX

    Never give up dreams!
    JMS

  • Validation of tabular form regarding the item master detail

    Hi guys,.

    I have installation master detail on my page with a layout table below.

    The master record has a field called RCV_QTY.

    The tabular presentation has a column called box_qty.

    What I'm trying to do is to validate it against the user to add lines in the table form which when added, is more than the amount of heading RCV_QTY.

    I tried the following function returns the validation text error but it's not enough work.

    As the line in the custom of tabular form be seen by the following SELECT INTO statements on submit, I guess I need more of a process of dynamic action type?


    DECLARE

    v_hdr NUMBER;
    v_line NUMBER;

    BEGIN

    SELECT hdr.rcv_qty
    IN v_hdr
    OF XXMEL_VMI_RCV_HDR_TMP hdr
    WHERE the hdr. VMI_RCV_HEADER_ID =: P2_VMI_RCV_HEADER_ID;

    SELECT SUM (line. BOX_QTY)
    IN v_line
    OF XXMEL_VMI_RCV_HDR_TMP hdr
    Online XXMEL_VMI_RCV_LINE_TMP
    WHERE the hdr. VMI_RCV_HEADER_ID = line. VMI_RCV_HEADER_ID
    AND hdr. VMI_RCV_HEADER_ID =: P2_VMI_RCV_HEADER_ID;


    IF (NVL(v_line,0) - NVL(v_hdr,0)) < 0
    THEN
    RETURN (' ERROR: the sum of the quantities of tag is greater than the quantity of the received header ');
    ON THE OTHER
    RETURNS A NULL VALUE.
    END IF;

    END;

    Any help would be great.

    I use Apex V4.0.

    Hello

    You must use the API APEX_APPLICATION total up to the Box_Qty of detail in Validation, and compare with the RCV_QTY. something like

    DECLARE
      V_BOX_TOT NUMBER := 0;
    BEGIN
      FOR I IN 1..APEX_APPLICATION.G_F01.COUNT LOOP
         V_BOX_TOT := V_BOX_TOT + TO_NUMBER( NVL(APEX_APPLICATION.G_F01(I),'0'));
     END LOOP;
     IF V_BOX_TOT > :P1_RCV_QTY THEN
        RETURN FALSE;
     ELSE
       RETURN TRUE;
     END IF;
    EXCEPTION
      .....
    END;
    

    Kind regards

  • Update the support bean field

    Hi all
    can someone help me with the script below
    I have a form of update that has all the fields disabled except one if the user change the field and click Update, I need to update changed field and so the State placed (a class n table).
    The field that is being updated by the user is getting updated in the database, but I'm not able to update the status field.updating the status field must be in the bean to support. How can I achieve this

    I use JDev 11.1.1.5

    Thanks in advance

    Published by: 926968 on April 19, 2012 02:24

    I assume that you have already linked the "update" button to a method in a bean.
    In this method, you can access the attribute binding and change the value in the other field. Then, after changing the other value you perform normal execution "update" you already have:

    // get the binding container
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    
    // get an ADF attributevalue from the ADF page definitions
    AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("NAME_OF_YOUR_STATUS_FIELD");
    attr.setInputValue("test");
    

    Timo

  • Tabular form and the value of the element

    Hello people:

    I certainly hope that your holidays are festive.

    I have a question for you.

    I have a tabular form which is filled, based on a list of selection (with the type of delivery).  I placed a form on the same page (based on a table), and I would for a question to be filled as well following the list of selection even completing the tabular form.  What is the best way to go about this?  Calculation?  I'm not sure how to do this...

    Thanks for your help!

    Aqua

    AquaNX4 wrote:

    I have a tabular form which is filled, based on a list of selection (with the type of delivery).  I placed a form on the same page (based on a table), and I would for a question to be filled as well following the list of selection even completing the tabular form.  What is the best way to go about this?  Calculation?  I'm not sure how to do this...

    If the selection list submits the page then you can set the value of the element using a calculation after the presents. Make sure that it will not be reset by any statement of process or branch of State later clear session.

  • Validation of a column in a query SQL-tabular form (updated report)

    Hello

    I have a tabular form on a table of type SQL Query (editable report). Users can modify/add lines to the table through the form. I would like to have some sort of validation on each column of the report form. Is there a way I can do it by their SUMMIT. Please note that I did not manually create this form... just use the tools in the APEX. Thank you.

    Sihem

    In the same way.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Windows 7, at the top of the non-visible applications

    The top of many applications are not visible.  I reduced the dpi to 100 without help, except that now I have to turn on the Magnifier.

    I asked this question in a dozen different ways, and none of the response I get from search even closer to answer.  Not same topic.

    Hello beautiful,

    Please keep us updated on the status of the issue.

    I suggest you to check the issue in a new user account.

    Please refer to the suggestions in this article.

    Difficulty of a corrupted user profile
    http://Windows.Microsoft.com/en-us/Windows/fix-corrupted-user-profile#1TC=Windows-7

    Please also update this link display adapter drivers:

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?OS=4063&LC=en&cc=us&DLC=en&sw_lang=&product=3895001

    Please answer with results so that we can help you further.

    Thank you

  • Update the information in fields at the request of jobs

    Hi Experts,

    in collaboration with OIM11g, I need to update some fields in a task scheduled using the API of the IOM, form do you have an idea on how to do?

    Thank you

    Leyla Dah wrote:
    Well, actually, I'm already working on these APIs, I am able to retrieve the details with all areas of employment, but I'm not able to repel the information I have for the work...

    See here for a complete example on how to create and delete instances of task programmatically:

    http://idmclub.wikidot.com/job

    Kind regards
    Vladimir

  • Replace an abbreviation in the non-consecutive fields and keep the rest of the text

    I need to replace an abbreviation that is no longer used in the office with a new text. I need to keep the rest of the information in the field. Length fields vary, and the new text is longer than the former. I use Oracle 8i. This is what I have for now but does not work.

    UPDATE OF ICA
    the value of LIC. DETAL = substr ('ALPHA BET' |) DETAL, 4, length (detal)-3);
    where UPPER (substr (DETAL, 1, 3)) = 'AB-';

    Hello

    Whenever you have a problem, please post a small example of data (CREATE TABLE and INSERT statements) and also publish outcomes from these data.

    user8647598 wrote:
    I tried this:

    update of ICA
    the value of LIC. DETAL = replace (lic.detal, '- HO', ' HOME OCC' |) Trim (detal));

    but I got an error saying that it was too big.

    ERROR on line 1:
    ORA-01401: inserted value too large for column

    Published by: user8647598 on January 13, 2011 07:32

    It is one of thopse error messages that acually means what he says. After replacing the text, the chain grew more time, and it will fit is no longer in the column.

    Are you sure you are doing what you want?

    REPLACE ( lic.detail
         , 'HO-'
         , 'HOME OCC' || TRIM (lic.detal)
         )
    

    Means "where detal contains the 3 - character substring"HO -"replace it with the 8 'HOME OCC" string * followed by the original text of the detal.»
    So if detal
    {code}
    HO-1 XYZ
    {code}
    then REPLACE them back:
    {code}
    XYZ OCCXYZ HO-1 HOUSE
    {code}

    That is what you want, or do you want something like that?
    {code}
    REPLACE (lic.detail
    "HO -"
    , 'HOME OCC-' or maybe 'HOME OCC", with a space at the end
    )
    {code}
    You can use the expression above as an argument for the TOPPING.

    When you want to write an UPDATE statement, you can test it in the first place, like this:
    {code}
    SELECT detal
    TRIM (REPLACE (detal
    "HO -"
    , 'HOME OCC '.
    )
    )
    ICA
    WHERE detal LIKE ('% HO %')
    AND ROWNUM<=>
    ;
    {code}

  • Click on the link inside the non-Focus field

    Hi all

    I use an ActiveRichTextField non-focusable because the field is part of a larger container making screenshots click on itself - not the children. This was done to make it easier for the user to scroll up and down on a list of text fields (do not have to move the focus to a line-of-text database).

    Question:

    My customer wants to activate by clicking on hyperlink. This is done natively by the ActiveRichTextField, but it cannot be activated because the emphasis is disabled.

    Question:

    Someone has any idea how to reconcile the conflicting requirements?

    (a) the ActiveRichTextField should not be focusable on a baseline of text (if it is wrapped, of course)

    (b) by clicking on the hyperlink should open the browser, etc.

    Thank you.

    You can get the x / y position of the textfield, but translate the active regions in x / there would be rather difficult (if possible at all).
    I just looked at the API, but I don't see how you can extract the links (or information about them) as the analysis is done in the background.

    You can analyze the text yourself with regular expressions to detect hyperlinks and offer them in a context menu.
    (e.g. http://www.regexguru.com/2008/11/detecting-urls-in-a-block-of-text/ )

    I usually change my paradigma UI if it turns out that a usecase I need is not taken in charge, but it is sometimes easier to patch something on.

    Basically, your decision: change the user interface in order to support this usecase, or something (like the context menu) on this patch.

    I would say to list the options see, then speak to the customer what he likes.

  • Add the non-visible section on data of Formulation O/P ext

    Hi I am using A6.1.1 version. I get as a result of problems during the creation or modification of a record of formulation:

    1. the FormulationOutput > > ExtData > > add custom button Section or add an extended attribute is not present.

    2. automatically Referesh is by default active to come.

    3. No Add-button option on compliance, the elements of Nutrition.

    4. Similarly USD/100 g is coming as non-editable in the entries.

    5. access level is not visible.

    and there are countless other things am not able to see that I used to see in previous versions.

    The user that I use is ProdikaAdmin have all access and checked the EnvironmentSettings, the CoreAppSettings, the BaseFeatureConfig, CustomerSettings config files but was not able to solve this problem.

    I just Guide to Configuration and Guide of security and Configuration settings checked still am face this problem.

    Can you please tell me what to do to put things in place.

    Thanks in advance

    Please ensure current state of the workflow of spec of Formulation is "Designable" tag.

Maybe you are looking for