Field of the update to the level of the BC

Hello

I have an entity with the "status" and "ModificationDate" attributes.
When the user changes the "status" field
I want to update the "ModificationDate" for the current date.

How could I implemrnt on level of BC?

Thank you!

in this case, you must override the prepareForDML method in the EntityImpl class

  protected void prepareForDML(int i, TransactionEvent transactionEvent)
  {
    if(i==DML_UPDATE){
      if (isAttributeChanged(STATUS ATTRIBUTE INDEX))
        setModifiedDate(Current date value);
      }
    super.prepareForDML(i, transactionEvent);
  }

Tags: Java

Similar Questions

  • How is it that when I click on clear form Acrobat is option clears all fields populated by a JavaScript document level and if I save them the start of the JavaScript document level form is no longer works?

    How is it that when I click on clear form Acrobat is option clears all fields populated by a JavaScript document level and if I save them the start of the JavaScript document level form is no longer works?

    Or a link to the form or a sample with the same problem.

    You only set the function to run but not executed.

    You should add a line like:

    AtStartup();

    to your script.

    As noted if you have been set "defaultValue" to the fields, then clear the fields would remove any entry present and restore the default values.

    Or you could write a custom JavaScript to clear the fields and then run your startup script.

  • I have first 13.0 and updated elements at level Windows 8.1 to Windows 10. First 13.0 is not kombatibelt with Windows 10. How to do Prime 13.0 elements upgraded to first elements 13.1 so I can use it again? Tried to upgrade the usual way

    I have first 13.0 and updated elements at level Windows 8.1 to Windows 10. First 13.0 is not kombatibelt with Windows 10. How to do Prime 13.0 elements upgraded to first elements 13.1 so I can use it again? Tried to upgrade the usual way, but it does not help.

    Try direct updates

    https://www.Adobe.com/downloads/updates/

  • Online Update Date field of the Table to SysDate

    This seems to be an easy thing to do, but I can't understand the best way to do it.

    I have a table with 2 input text areas and some areas of output text.  When either text entry box for a line change, I need to update the date in one of the text boxes in the same line to the current date. Then, when I commit the changes, the database should show the current date to this field date in this folder.

    I use JDev 11.1.1.6

    Thank you
    Ray

    I figured this out.  I used the method doDML and the Create method in the EntityImp class to set the Date field using the Set accessor method.

  • How can I update the field when the enabled checkbox

    Hi all

    I am using oracle 10 g forms,

    I have a block with 20 areas. So first 10 fields are not editable and remaining are editable. If the user enters data and modifies the data. And check the box and save the data.

    Inside save button I wrote the code update.

    When the user change records of two or three and three check box and click on save button only a recording is done in my custom table.

    It's my code please correct me where I went worng.

    It's my code inside my button

    declare
    Begin
    If: ASSEMBLIES_BLOCK. CHECK_IN_OUT = 'Y' THEN
    IF SHOW_ALERT ("UPDATE_ALERT") = alert_button1 THEN
    LOOP
    XXTLX_PO_LOGOSTICS. XXTLX_PO_LOGOSTICS_UPDATE;
    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
    NEXT_RECORD;
    END LOOP;
    STANDARD.COMMIT;
    fnd_message.set_string ("Transaction saved successfully");
    fnd_message. Show;
    On the other
    NULL;
    END If;
    END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    WHILE OTHERS
    THEN
    NULL;
    END;


    I write a procedure in the program unit.

    XXTLX_PO_LOGOSTICS. XXTLX_PO_LOGOSTICS_UPDATE

    Is my block of current assemblies that the user enter data and click the save data check box.

    Update XXTLX_PO_ASSEMBLIES set CASE_NO = nvl(:assemblies_block.) CASE_NO, Null),
    PACKAGE_TYPE = nvl(:assemblies_block.) PACKAGE_TYPE, null),
    PACKAGE_QTY = nvl(:assemblies_block.) PACKAGE_QTY, Null),
    GROSS_WT = nvl(:assemblies_block.) GROSS_WEIGHT, Null),
    OPI_DATE = nvl(:assemblies_block.) OPI_DATE, Null)
    Where ponum =: DETAIL_BLOCK. PO_NUMBER
    AND PO_LINE_NUM =: DETAIL_BLOCK. LINE_NUM
    AND BOM_NO =: assemblies_block. BOM_NO;




    So when we click on the multiple check box and save the data that one is striking.

    Thanks and greetings
    Srikkanth

    I guess that I do not understand.

    >
    ... my requirement is that active fields must get updates. If there is way to 10 records in a block, sick day only registration of the 3rd and 4th and then click on the box... and then ill click on save button.
    >

    Is - this block a block of data or a block of data non-base? If it is a block of data, Oracle can manage updates of this block for you because if keep tabs if a record has been updated or not and you wouldn't need to do an UPDATE statement.

    If it is a non-base of data block and you are a loop in each folder and only update items that have checkboxes next to them you would still go to the first record, and then scroll through each record and see if it needs to be updated. I guess right here because I don't think I have a good knowledge on what you're doing, but you can change your XXTLX_PO_LOGOSTICS. Package XXTLX_PO_LOGISTICS_UPDATE update only elements that have checkboxes next to them, by checking every box:

    -- Check Case No
    if nvl(:assemblies_block.chase_no_check,'N') = 'Y' then
      update xxtlx_po_assemblies
         set case_no = :assemblies_block.case_no
       where ponum = :detail_block.po_number
         and po_line_num = :detail_block.line_num
         and bom_no = :assemblies_block.bom_no;
    end if;
    
    -- Check Package Type
    if nvl(:assemblies_block.package_type_check,'N') = 'Y' then
      update xxtlx_po_assemblies
         set package_type = :assemblies_block.package_type
       where ponum = :detail_block.po_number
         and po_line_num = :detail_block.line_num
         and bom_no = :assemblies_block.bom_no;
    end if;
    
    -- Check Package Qty
    .
    .
    .
    
  • Trying to update a field with the RANK function

    Hello world

    I'm trying to update a field using a PL/SQL function rank. When I'm doing it, I get a "+ ORA-01427: einreihig subquery returns more than one row +", and it's just that sometimes I have the same value more than once.

    All the world is facing this issue before? I mean try to update a field using the RANK function?

    Please don't hesiate to contact me, if any additional information is required.

    Best regards.

    UPDATE spd_f_mkt_DC_2
    SET RANKING_ID =)
    SELECT PLUS RANK()
    (
    KPI_MKT_ID PARTITION
    ORDER BY F_MKT_KPI DESC
    )
    OF SPD_F_MKT_DC_2
    )
    UPDATE  spd_f_mkt_DC_2 a
       SET RANKING_ID = (
                         SELECT  rnk
                           FROM  (
                                  SELECT  ROWID rid,
                                          RANK() OVER(PARTITION BY KPI_MKT_ID ORDER BY F_MKT_KPI DESC) rnk
                                    FROM  SPD_F_MKT_DC_2
                                 )
                           WHERE a.ROWID = rid
                        )
    /
    

    SY.

  • Dynamically update a numeric field as the sum of the values of page element.

    Hello

    I am updating a numeric field on a page of the apex by summing the values of several components of the page. I have tried to follow this tutorial http://st-curriculum.oracle.com/obe/db/apex/r40/apexdynactions/apexdynactions_ll.htm, especially the part "create a Set value dynamic Action with the help of PL/SQL'.

    In the example of the tutorial, they return a value of page element P3_SAL multiplied by a multiplier determined by the case of another page. What I want to do is much more simple that I just want to add multiple values page element and then display them in a numeric field at the bottom of the page.

    so the code I tried to use based on the tutorial is in the tab: Home > Application Builder > Application 103 > Page 3 > Dynamic Action change > create / edit Action

    Set type: PL/SQL function body

    PL/SQL function body:

    BEGIN
    return: P3_ITEM1 + P3_ITEM2 + P3_ITEM3;
    END;

    Page items to submit: P3_ITEM1, P3_ITEM2, P3_ITEM3

    But it gives me an error that I need to declare identifiers, and yet it works if I use only one article and I can perform arithmetic.

    That is to say.

    BEGIN
    return: P3_ITEM1 + 1000;
    END;

    Any help would be appreciated.

    PL/SQL function body:

    BEGIN
    return: P3_ITEM1 + P3_ITEM2 + P3_ITEM3;
    END;

    Page items to submit: P3_ITEM1, P3_ITEM2, P3_ITEM3

    But it gives me an error that I need to declare identifiers, and yet it works if I use only one article and I can perform arithmetic.

    In your code, it lacks the ":" for articles P3_ITEM2 and P3_ITEM3.
    Try this:

    BEGIN
    return :P3_ITEM1+:P3_ITEM2+:P3_ITEM3;
    END;
    
  • Default value for the field in the report updated

    I am using an update report (form-> tabular). When I add a new line to a new record, I need set automatically one of the fields in the new record to a value of element. I don't want the user of having to hand enter this field (this is a foreign key to a related table iD). How can I set the value of this field in the new row when I click on the "add a line"?

    I hope the question makes sense!

    Thank you
    John

    John,

    You wrote

    When I add a new line to a new record, I need set automatically one of the fields in the new record to a value of element.

    Under report attributes > column attributes see the attributes of tabular form

    Default type element (application or name of the item page)

    The value default to your point value name.

    Jeff

  • Script for updating a field for the current year

    Is it possible to have an update of field at the end of the current year? Example 20-(dashes to change it for any year). I think that it is not possible, but if anyone knows how this is possible I'd really appreciate help. Thank you

    Sorry, I guess I need to change throughout the year, not only at the end.  Thank you

    I tried a few scripts that I found here, such as; year (dateAdd ("yyyy", 1, now()))) with no luck. I confess that I don't know about scripts and can be a bad thing. The script goes on the Action tab as a javascript or somewhere else (validation?) Any advice or assistance would be appreciated. I use Acrobt Pro version 9.

    Going by your post you wanted the year is displayed in a text field, I gave the code to go into the script will count for this field. If you want to use it somewhere else (e.g. a mouseup), then use the variable 'year' in this script. In a calculation script, any value you assign to "event.value" is what will show on the field during the calculation.

  • Restrict the metadata field during an update to a specific group of users

    Hi all

    I have some difficulty to find the best way to restrict permissions to change some fields of metadata for 2 different groups of users.

    I have two user groups, A and b. Group A will check in the documents that group B will then review for accuracy and quality. Group B will then update an optionlist field called "State" with "recommended" or "not recommended".
    This is not a situation of workflow as the scope requires that all documents are immediately available for research. I currently have a profile CheckIn and search for content to read write access for both groups A and B. The 'Status' field is hidden on the page of CheckIn. Can someone please suggest a good way to limit the 'Status' field on a page to update users to simply "B"? Groups A and B must be able to update all the fields except for the limited B field "Status".

    Thank you!

    Published by: user6750815 on June 2, 2010 16:11

    Hey rMac,.
    I understand in this way you have a profile for A and B groups of users. On this profile status field is hidden.

    If this is your problem, you can the two-step approach, while making the rule in order to hide the status field, use the activation of rule condition. Make active only for users with A role. This way even with the only profile some of the user with the role B will be able to see the status field.

    Alternatively, you can put a similar code to restrict the link of personalization where you make this hidden field editable and mandatory for users in B.

    see you soon,
    Sicard

  • Collective update to a field in the data sorted in a tubular form

    I do a mass update to a field in the data sorted in a tubular form. I've seen samples where they use Java script, but how can I do the same thing in sql, is this possible?
    Again thanks.

    It is possible to make updates in SQL, but of course after a shipment.
    JavaScript changes the values of the form objects, when you use SQL wil you need a way to know what values should be updated and with what value.
    You can create a process with this update, which is carried out under the condition of a specific button.

    Hope this helps,

    DickDral

  • Have fields auto tab to the next field, when the limited characters have been achieved

    I have text fields for our account numbers and it of a pain to enter one number and then tab and enter another number and tab.  I have set the limit of 1 character and would like the AutoShape tab to the field following account and continue with all account numbers.

    Thank you

    EC

    Check the update the attached form for script automatic tab on each level of text field on the event of CHANGE and method in the variables.
    Make sure all the text fields in the order in the hierarchy as place on page (right now some are not in order).

  • Problem with storage of the profiles moved in field with the version 20.0

    Hello. Used an online translator. At the office of a local network with the domain name. All user profiles are stored by politicians in the field in the network folders on the server using equipment "the folder redirection. With the Firefox update to version 20, it stopped working. Pages that have been stored in bookmarks do not open pages only, open new, generally nothing happens as if the buttons in the page transition actions are inadequate, all search engines have disappeared. The complete elimination of the program and repeated installation does not solve a problem with a profile. Help, only the creation of a section local profile, but it is not a solution.

    Sorry,
    This is a known problem due to the use of UNC paths does not correctly supported by Firefox 20

    There will be a special ("Chemspill") version of Firefox. It will be Firefox 20.0.1 and will probably be released Wednesday, April 10.

    If you are unable to wait for to install Firefox ESR 17.

    Firefox17 ESR is affected by this problem and intended specifically for business / corporate, up-to-date and secure.

    This is a related thread and it contains a suggested workaround solution /questions/955232 #answer - 424739 while continuing to use Firefox 20.0.0

    It's a shame these undertakings do not use ESR apparently do not test the pre-release versions in their IT departments. At least by two Aurora and Beta

    1. Evening http://nightly.mozilla.org/
    2. Aurora, http://www.mozilla.org/en-US/firefox/all-aurora.html
    3. Beta http://www.mozilla.org/en-US/firefox/beta/
  • How to get the substring of the field in the rules file

    Hello

    I use the Hyperion Essbase 11.1.2.3 version and try to build the size of the area. I have the Code area and description of the region in the source file. But the Description of the region is preceded with another character. Example - "AXX - Asia", "NXX - Netherland" and etc. I don't want to exclude "AXX -", "NXX" - during the generation of dimension. Please could you let me know how to remove these characters through rule files. I want to just generate rule with region Code file and description of the region without these extra characters.

    Source file:

    Region code | Region / / Desc

    AP | AXX - Asia

    NL | NXX - Netherland

    Build of contour should be:

    -AP (Alias: Asia)

    -NL (Alias: Netherland)

    Thank you

    Michel K

    Deker suggestion (using find and replace) is useful if you have a list of possible prefixes and that you are happy to have to update the rules file every time that this list is growing. I'm not a fan of this, personally.

    If the prefix length is always three characters then you must separate the first six characters of the code (the three characters and then space, hyphen, space). This creates two fields of the original; you ignore the first one and then use the second as an alias.

    To split a field into a State of charge, see: splitting fields

  • Can I use program generator to change a field in the contacts that run a campaign?

    I am a new user, Eloqua, from a company that is a new client Eloqua (E10), try to penetrate the opaque world of the program Builder (PB).  I have spent some time looking for answers, but just empty and hope you can help: to end a pretty simple campaign of the canvas (CC) campaign, I want to edit a field in a contact to indicate that the contact has traveled the countryside. (We want to be able to easily return the bit on this area apart from Eloqua so that the customer returns in the campaign).

    I know CC this is impossible, but I gleaned that can of PB. And if I understand correctly, CC can put contacts in a program of PB.  My question: How can I build (and a link to my campaign) a PB simple program to change the value of a single field in everyone who enters the program through campaign canvas?  Is it still possible?  Is there a simpler way that I don't see?  I am really a beginner, so be gentle if I'm missing something basic.

    Thanks in advance!

    -Kevin

    Post edited by: Kevin for spelling/typo

    Yes, you can go to the canvas of the campaign on the program generator. You can still run a segment on the contacts that have responded to a campaign, if you're looking for just a way to pull the contacts who have or have not entered a campaign. Here is a basic outline of what you try to do with PB and the canvas of the campaign.

    To update the field in the program generator, you need to first put in place a rule update for updating the contact with a value field. (Updated contacts--> data tool--> new rule). Use the option 'Set to Value' in the update rule.

    Then build a program in PB with three steps - Enter (passage of the stage), update a Contact with the updated rule, program output.

    Then, as a campaign backdrop, choose either the "add a program" or "move to the program." 'Add' will maintain contacts in the campaign and 'Add' the program 'move' will move them to the campaign in the program. Whatever it is, choose the update program and step 1 at the stage of the campaign.

    Do you need more specific information?

  • Limit the first character in the text field to the letter and numbers?

    How can I limit only the first character entered in the text field as the letter H (uppercase) or any number? Thanks in advance.

    function of validateMemberID was a mistake on my part misnamed it. I thought about it...

    At the level of the JavaScript document

    Allow only characters that match the regular expression
    function validatePartialMemberId (value) {}
    return / ^ [H0-9]?\d{0,10}$/.test(value);
    }

    function validateFullMemberId (value) {}
    return / ^ [H0-9]\d{10}$/.test(value);
    }

    function checkMemberId() {}
    Get all of the characters that the user has entered
    var value = AFMergeChange (event);

    Allow the land to be developed
    If (! value)
    return;

    If (! event.willCommit) {}
    Event.RC = validatePartialMemberId (value);
    }
    }

Maybe you are looking for