Static items to the values of the DB

Dear all,

I have 2 static text fields (TXT_NAME1 and 2) and 5 buttons static radiogroup (RGRP_Q1, RGRP_Q2... RGRP_Q5 each group with 5 choices radio). Then I have a button "submit".

How can I save it to a table (after the filing of the it) for example:

The table is

TBL_SAMPLE
XNAME VARCHAR2, <-set the value of the 1st field of text here
XNAME2 VARCHAR2, <-set the value of the 2nd text field here
NUMBER of Q1, <-placed here value based on the value of the choice of RGRP_Q1
Q2 NUMBER... NUMBER of Q5, <-placed here value based on the value of the choice of RGRP_Qn
TRANSACTION_NO, <-unique field as a PK
TRANSACTION_DATE <-sysdate

I have a little time to understand this, but I would really appreciate if someone could help me in the simplest possible way.

Thank you
Aaron

Hello

First of all, if you create the form, using the form wizard, and based on the TBL_SAMPLE table, then Apex will generate everything you need to insert records.

If you don't want to insert manually the records, you must create a PL/SQL process that runs "After Submit" and triggered by a button.

The process code would be something like:

BEGIN
INSERT INTO TBL_SAMPLE (XNAME, XNAME2, Q1NUMBER, Q2NUMBER, Q3NUMBER, Q4NUMBER, Q5NUMBER, TRANSACTION_DATE)
VALUES (:TXT_NAME1, :TXT_NAME2, :RGRP_Q1, :RGRP_Q2, :RGRP_Q3, :RGRP_Q4, :RGRP_Q5, SYSDATE);
END;

I missed TRANSACTION_NO in the fields to be updated as you should have a sequence and relaxation to manage the creation of new primary keys.

Andy

Tags: Database

Similar Questions

  • ADD ITEMS TO THE LIST DROP-DOWN LIST TO A TEXT FIELD (USER ENTERS THE ITEM) AND ALSO RELATED TO VALUE

    Untitled.jpg

    I have WANTED to ADD of ELEMENTS from the list drop-DOWN OF THE AREA of TEXT (the ELEMENT NAME) WHERE the USER BETWEEN of THE DESCRIPTION of POINT

    AND RELATED value SHOULD ALSO BE ADDED to THE SAME ELEMENT.

    LIKEWISE REMOVE ITEMS IN THE DROP-DOWN LIST

    PLEASE GIVE SHAPE TO SAMPLE OR JAVASCRIPT FOR THE ABOVE SCENARIO...

    INDEED USEFUL FOR MY PROJECT PLEASE SEND PDF FORM

    Hi Praveen,

    You can add items to the list in a specific order, which would be to load the elements in an array, sorting and then load in the dropdown list drop-down list.  This would be in the click event of the button Add.

    Create a table to hold all the list items, table drop-down list contains objects with a property 'displayItem' and 'value '.

    dropDownItems var = [];

    Add the new

    dropDownItems.push ({displayItem: ItemName.rawValue, value: BoundValue.rawValue});

    Add existing ones

    for (var i = 0; i)< dropdownlist1.length;="">

    {

    dropDownItems.push ({displayItem: DropDownList1.getDisplayItem (i), value: DropDownList1.getSaveItem (i)})

    }

    Sort by ascending order of displayed text

    () dropDownItems.sort

    function (a, b)

    {

    If (a.displayItem< b.displayitem)="" return="">

    If (a.displayItem > b.displayItem) return 1;

    return 0;

    });

    clear all items

    DropDownList1.clearItems ();

    load the sorted items

    for (var i = 0; i)< dropdownitems.length;="">

    {

    var dropDownItem = [i] dropDownItems;

    DropDownList1.addItem (dropDownItem.displayItem, dropDownItem.value);

    }

    clear the fields of the source

    ItemName.rawValue = null;

    BoundValue.rawValue = null;

    I added a button 'Add' sorted in my sample https://workspaces.acrobat.com/?d=OwysfJa-Q3HhPtFlgRb62g

    Concerning

    Bruce

  • How to read the value of the selected item in the DropDownList control?

    Hello

    The DropDownList component has a selectedItem property is supposed to return a ListBase.

    But what I want is just the 'chain' which is supposed to be the selected item in the DropDownList control.

    How to read this value?

    Thank you

    -Malena

    You are misreading the documentation. ListBase.selectedItem returns an object. This item comes directly from your data provider, so you just have to go up or go for any property you need.

  • Automator: using a text file to set several items from the finder?

    Hello

    what I would do:

    I have a text file that contains multiple entries for files and folders, each on a separate line. I want to dragndrop this file on an automator action, he should ask me a destination folder and then copy all the files and folders in this folder.

    I have my action, automator, set up like this:

    Elements of the open Finder

    Get the content of the TextEdit Document

    Copy to the Clipboard (I have not found another way to keep my text sort file values and let it not be crushed by the following, but it works)

    Quit the Application (TextEdit)

    Ask the Finder items (this requires a destination folder)

    Set the value of the Variable (Destination)

    Get the contents of the Clipboard

    Copies the items from the Finder (at Destination)

    It all works, but only when there is 1 entry in my text file. As soon as I have 2 lines of text, I get the following error message:

    The action "copy Finder items" has not provided with the required data.

    How can I make this work with multiple entries?

    The problem is that you only pass the only element to the copy action (you have copied text), instead of an element for each line (paragraph) in the text.  The solution is to use the action filter paragraphs to break up along the borders of paragraph text, which will give you a list of items.  In addition, you do not necessarily have to use TextEdit or the Clipboard - If you already have a file somewhere, you can simply use the action to combine text files to read the text.

    With the above modifications, your workflow should look like:

    Ask the Finder items  (ask for a destination folder)

    Set the value of the Variable  (Destination)

    Ask the Finder items  (Download text files) - set the action to ignore the entry

    Combine text files  (read the text files)

    Filter paragraphs  (paragraphs which are not empty return)

    Copy the items to the Finder  (at Destination)

  • E/s files does not save the items in the table

    I can't save the items in the table. If I quit the program and restart it, the array starts at 0 again. I want it from the value at which it stopped.

    Is this a flaw in the Subvi "Timer A1"?

    Thanks for the help.

    mhaque

    Your feedback nodes are defined overall boot on the first call, as evidenced by the glyphs.  If you are stop and start your program, must be configured to initialize worldwide on the compilation or the load, simply right-click and change the setting.  This should give you the behavior you're looking for, but does not exclude the intrinsic problems with the code.

  • Load the items of the combobox file

    Hello

    I don't know how to use correct components here, but I tried to load some drop-down list items file selector. I have the file, what has changed all the time, so I have to load those to selectro menu drop-down user every time that when the program starts. Eny ideas?

    A.A

    Use of a Strings property node

    The property strings]

    [ Short name: chains]

    Request: Basic package

    Class: ComboBox properties

    Array of strings which you can select in the control drop-down list box. String values and [of] property allows you to specify values for each string.

    If you use this property with a list box control that has custom values, the number of values for the drop-down list box control determines the number of strings that you can set using this property. For example, if the combo box control has the values given, free and complete, you can set only three strings using this property.

    If the combo box control has more values the number of channels that connect to this property, LabVIEW creates channels for all values that have no corresponding channels. For example, if the combo box control has the only free values, Discount and full and wire you channels coupon and Coupon to this property, LabVIEW sets the last string of .

    This property is similar to the element to change the items in the context menu of a control area combo and the option of labels on the page change the items in the drop-down list box-properties dialog box.

  • Cannot display some items on the start menu

    When I opened my laptop, go to the internet, then open the start menu, this alert rises; Unable to display some items in the start menu...

    What can I do? What the menu items start? This can be corrected?

    Thanks for the help

    Tim

    Hello

    Were there any changes (hardware or software) to the computer before the show?

    Perform the steps mentioned below and see if the problem persists.

    a: right click on the Start button, then click on Properties.

    b: now click on the Start Menu tab and click the Customize button.

    c: Now in the option which reads, number of programs to display the value less than 5 , then click on ok.

    Hope this information helps.

  • How to get items of the multi ArrayDataModel element

    Hello

    When I add items to an ArrayDataModel like that

    // Main.qmlvar data = {"name": filename, "path": filepath}theDataModel.append(data);
    

    How can I get items once again? When I fill out a single item of the data model I can use the value() method

    theDataModel.value(i)
    

    This gives the value added to the i - th position. But now I have items at each position in the data model. How can I get each item? When I use again theDataModel.value (i) I get '[object Object]' as output.

    Your output [object Object] is ok as is JSON object. To access name or path you need this

    theDataModel.value(i).name //print name value
    theDataModel.value(i).path //print path value
    

    Use the method of data instead of the value of your

    https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__arraydatamodel.html#functio...

  • Width of the items in the task bar that represents the open windows

    I usually have very little windows open at a time.  Despite this, the titles of the taskbar of these windows are truncated, because there is obviously a maximum width allowed for each item in the taskbar.  Due to this restriction, a lot of space is left unused on the right side of the taskbar (just to the left of the notification area).

    Is there a way to remove the restriction on the width of these elements of the taskbar?

    There is not, no.  It is coded in the shell (explorer.exe).  There is no external input value or registry that controls it.

  • JumpLists disabled; 'store and display of recently opened items in the Start Menu and the taskbar' is greyed out

    My option 'store and display of recently opened items in the Start Menu and the taskbar' is grayed out. Are also grayed out any mention of "jumplists" system (i.e. the number of items to display in the jumplists). Have I inadvertently disabled this feature? If so, how can I return it?

    Hi, landonblaine:

    When the option store and display recently opened items in the start menu and the taskbar is disabled and grayed out, it is a symptom that two Windows fonts are applied to your system.

    Open the Publisher of the registry (Regedit.exe) and navigate to this key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer. If there is a registry that NoRecentDocsMenu value set to 1, delete it. If there is a registry that NoRecentDocsHistory value set to 1, remove it as well.

    Repeat the same steps in the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer registry key (it cannot exist).

    Restart your computer and see if the problem is resolved. Microsoft MVP Windows Desktop Experience

  • where is the static ID for the buttons

    Hello

    I am not able to set the static id of a button in 5 Apex.

    As in previous versions we can simply define button ID STATIC by specifying this value in the settings of the button, but by their top 5 is as the "static" of a button Id does not work? you check in the code Inspector it does not show the button id I am I missed something?

    help appreciated,

    Thank you.

    Gor_Mahia wrote:

    I am not able to set the static id of a button in 5 Apex.

    As in previous versions we can simply define button ID STATIC by specifying this value in the settings of the button, but by their top 5 is as the "static" of a button Id does not work? you check in the code Inspector it does not show the button id I am I missed something?

    Theme? Model of button?

    It seems that the definition of the button model lack an ID attribute containing the string substitution # template #BUTTON_ID:

  • Impossible to delete previously selected items from the drop-down lists at the click of the button Reset on a page of the screen.

    Hello

    I'm unable to clear previously selected items from the drop-down lists at the click of the button Reset on a page of the screen. The code I did to clear the previous value when the click on the button Reset is as below.

    {} public void onReinitialize (ActionEvent actionEvent)

    System.out.println ("onReinitialize is called ::");

    UIComponent uiComp = actionEvent.getComponent ();

    If (uiComp is nothing)

    {

    otherwise we use the button that we linked to that bean

    uiComp = getButtonResetByBean ();

    _logger.info ("reset fields: buttonID =" + uiComp.getId ());

    }

    on the other

    {

    _logger.info ("reset fields: CompID =" + uiComp.getId ());

    }

    Pass the component inside the uniforms, UIXForm, UIXSubform, UIXRegion, UIXPopup, RichCarousel

    or RichPanelCollection that contains the components to reset

    getTextIDLOV () .setValue (null);

    ResetUtils.reset (uiComp);

    }

    ---

    Using this code Iam able to clear the entrance to the text box but can not clear previously selected items from the drop-down lists when the reset button is clicked

    Can anyone please help on this issue.

    It's simple, you can set GenerateIsNullClauseForBindVars = "false" in the viewCriteria who created in EmployeeView

    After doing that it will fill the list of employees only after the Department selection

    Again check the enclosed application

    Ashish

  • Add the item to the basket problem on SCC 11

    Hello

    We have customized shippingGroups, with only an additional property and it works very well in the app store application of trade, but, when I try to add an item to your cart via CSC, I get an error and the item is not added. This problem occurs only on the CSC.

    It's on OrderTools:

    beanNameToItemDescriptorMap-=.

    atg.commerce.order.HardgoodShippingGroup = hardgoodShippingGroup

    & beanNameToItemDescriptorMap =.

    com.my.order.MyHardgoodShippingGroup = hardgoodShippingGroup

    shippingTypeClassMap-=.

    hardgoodShippingGroup = atg.commerce.order.HardgoodShippingGroup

    & shippingTypeClassMap =.

    hardgoodShippingGroup = com.my.order.MyHardgoodShippingGroup

    And this is the error I get when trying to add an item to the basket:

    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler caused by (#2):atg.repository.RepositoryException: descriptor invalid name: 'atg.commerce.order.HardgoodShippingGroup'
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.adapter.gsa.GSARepository.getValidItemDescriptor(GSARepository.java:6622)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.adapter.gsa.GSARepository.createItem(GSARepository.java:710)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.OrderTools.createShippingGroup(OrderTools.java:1397)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.OrderTools.createShippingGroup(OrderTools.java:1344)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.ShippingGroupManager.createShippingGroup(ShippingGroupManager.java:651)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.ShippingGroupManager.createShippingGroup(ShippingGroupManager.java:627)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.purchase.PurchaseProcessHelper.getShippingGroupForItem(PurchaseProcessHelper.java:1881)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.purchase.PurchaseProcessHelper.addItemToOrder(PurchaseProcessHelper.java:1027)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.purchase.PurchaseProcessHelper.addItemsToOrder(PurchaseProcessHelper.java:957)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.purchase.CartModifierFormHandler.doAddItemsToOrder(CartModifierFormHandler.java:3800)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.purchase.CartModifierFormHandler.addItemToOrder(CartModifierFormHandler.java:3420)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.purchase.CartModifierFormHandler.handleAddItemToOrder(CartModifierFormHandler.java:3367)

    What I'm doing wrong here? Any ideas?

    Kind regards

    Lucas

    Look at the configuration rolled upward to OrderTools.shippingTypeClassMap in/dyn/admin or CCA.  My theory is that there is a table entry with something like the key and atg.commerce.order.HardgoodShippingGroup as the value.  OrderTools.createShippingGroup takes a group expedition (string) as input type and who looks up in shippingTypeClassMap.  If there is no entry, you will get an exception.  You do not get an exception.  Later, createShippingGroup takes the output of shippingTypeClassMap and upward resembling beanNameToItemDescriptorMap.  If there is no entry, the input string is returned by the search and used as input for createItem.  This is the exception you get.  If CSC must have configured the form Manager with a group type of delivery of the first card that has a class name (atg.commerce.order.HardgoodShippingGroup), which is no longer in the second plan.

    There are two oddities of = and += who could you be shifted upward.  One is that they are not necessarily be applied in the order that you will see in your properties file.  The Java properties class based implementation of the map and does not preserve the order of the text file.  The second oddity is that deleting via = requires that the text exactly.  If you have a space located right at the end of your line of =, for example, the kernel does not match and will not erase what you want to delete.

  • Info session not showing all the items on the page

    Hello world

    Apex 4.2.5.00.08

    Need to check a mental health, went to check the values of session of an item on a page and only the PK element was on the list in the State of Session window.  See the list of items on the page by using the tab elements and they are all there.  Page source checked and yes they have values

    < snip >

    "" < td align= "right" >< label for= "P174_DESCRIPTION" tabindex= "999" >< a class= "option-w-help" href= "javascript:popupFieldHelp('1261598755721459294','2188531882820')" tabindex= "999" >default< /a > </ label > <table > ""

    < / snip >


    Still this hidden item is displayed in the window of session state

    < snip >

    < input type of =" hidden " name =" p_t28 " ID = " P173_COMPONENT_COUNT " " value =" 0 ">

    < / snip >


    and I don't mean tha the value is missing, but the real thing is not on the list of issues


    Thanks for your help.


    Gary


    When you inspect the session state?

    How and when are the set of values of item?

    See this current thread for what seems like the same problem: The State of Session items that are database columns

  • Post adjustment Application items in the apex.server.process for a * process application *.

    We were spending the entirety of our method of apex.server.process htmldb_get request the favorite (and documented and supported!). It has worked well so far for the AJAX JavaScript process call, as long as the process of AJAX in question was one * Page * level process. However, when we try to eat a * application * process, it just doesn't seem to work.

    For the examples below, we have two elements of Application named PRS_PRODUCT_PROFILE_ID and PRS_PROFILE_OPERATION. We have a process to request on request (* not * a process page!) named MAINTAIN_PRODUCT_PROFILE_2.

    Here are the previous htmldb_get approach (which works fine):

    function resynchronizeProductProfile (productProfileID)

    {

    var profileOperation = 'EDIT_PROFILE ';

    var ajaxRequest = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is MAINTAIN_PRODUCT_PROFILE_2', 0);

    ajaxRequest.add ("PRS_PRODUCT_PROFILE_ID", productProfileID);

    ajaxRequest.add ("PRS_PROFILE_OPERATION", profileOperation);

    var resynchronizeResult = ajaxRequest.get ();

    ajaxRequest = null;

    Return resynchronizeResult;

    }

    Here's the (what I think is the) same call using the new approach of apex.server.process:

    function resynchronizeProductProfile (productProfileID)

    {

    var resynchronizeResult;

    $s ("PRS_PRODUCT_PROFILE_ID", productProfileID);

    $s ('PRS_PROFILE_OPERATION', 'EDIT_PROFILE');

    Apex. Server.Process ("MAINTAIN_PRODUCT_PROFILE_2"

    , {pageItems: ' #PRS_PRODUCT_PROFILE_ID, #PRS_PROFILE_OPERATION '}

    , {dataType: "text"}

    Async: false,

    complete: function (ajaxResponse)

    {

    var resynchronizeResult = ajaxResponse.responseText;

    }

    });

    Return resynchronizeResult;

    }

    However, in the new version, arguments don't appear to be preparing when the MAINTAIN_PRODUCT_PROFILE_2 application process is called. PRS_PROFILE_OPERATION, for example, is on "even if above, you can see that it is, in fact, pre-programmed on 'EDIT_PROFILE '.

    As a general rule, the call to apex.server.process sets the item values in the page and in the session in a single step. This doesn't seem to be the case with elements of the Application (although it works very well for the items on the Page).

    What's up with that? Everyone see my mistake?

    Thank you

    -Joe

    Post edited by: Joe Upshaw

    Joe,

    Using the pictures I showed you can simply use your application objects in the process. This is exactly the same as what htmldb_Get: when you use. add(), you provide a key pair / value that will be added to the respective tables, it is just behind the scenes. By manually adding to the table with apex.server.process, you get the same exact behavior and apex define elements of page/application corresponding to the value in the table of p_arg_names with the value in the p_arg_values table.

    When test you it in your demo application by assigning the value of the page element, and then using the 4 button (point), you can see that the question of the application session state has changed by inspecting the session state of the elements of the application through "session" in the developer toolbar. (it's in the "apex of ajax samples - forum" app)

    Of course, you can use the scalar parameters x # to provide values for the process, but why would you do the extra arch? If the elements of the application would set the restrictions, you still get the same result as if they were not, and they are easily manipulated through the same ajax call. I added an extra button with an ajax call using x 01. I never had problems with the help of the scalar parameters.

Maybe you are looking for

  • Recently bought movies video app only appear not

    Whenever I buy a new film, it takes several days for it appears in my video library on my iPad Pro. Immediately appears on my iPhone. All I have this problem and know how to fix?

  • just out of box, unable to connect to the internet

    Unable to connect bluetooth with settings of the watch internet icon with an x.

  • error 8007005

    Hello For the last week, I can't get windows updates.  I am running windows vista Home premium on a Dell Inspiron 531.  I checked the permissions, disabled UAC, tried running as administrator updates, renamed the old C:\Windows\SoftwareDistribution f

  • Cannot back up the system - get "critical error (0x8000FFFF) - how do I fix this?

    I have a Gateway laptop with Windows Vista Home Premium - recently I received this error message when you try to make a point to restore/backup: unable to backup system - get "critical error (0x8000FFFF)". Any ideas how to fix this? Thanks for any he

  • Cisco ASA 5510 + license + AIP - SSM

    Hello. I have this box. I have a few questions about it. (1) I'll be able to update the firmware (from 8.2 to 8.3 or greater for example) without smarnet for ASA 5510? And what can not do without smartnet? (2) I have only AIP-SSM-10 module this ASA 5