Add radio button to each row of an interactive report: possible or not?

First of all, let me explain what is the point of this application.
I do an application that allows you to select an item in a drop-down selection list. This list is a list of food categories. Suppose the user selects "Fruit."
Then the page refreshes and shows an interactive report with a list of foods which belongs to the category of fruit.

This is where I want to change things:
I want the user to be able to view the interactive report, but in this interactive report, I would like to add a button for each row.
Then, when a certain type of food is selected (say "Strawberry") via the radio button, a text field should appear under the interactive report. In this textfield, the user can then add the weight of the food, and then it will calculate how many carbs in strawberries there.

All that I really want to know is:*.
How can I add an option button to each row of the interactive report, and how to bind this option button to the value of that particular line? *



Additional information:
The "P17_FOOD_CATEGORY" element contains the following LOV:
Select FOODCATEGORYNAME as display_value, FOODCATEGORYID as return_value
of FOODCATEGORY
order by 1

The 'Food' region contains the following source:
Select a.FOODID, B.SID, b.FOODCATEGORYNAME, c.STANDARDAMOUNT, c.NAME unit
food an inner join FOODCATEGORY b
On a.FOODCATEGORYID = b.FOODCATEGORYID join FOODUNIT c
On a.FOODID = c.FOODID
where a.FOODCATEGORYID =: P17_SET_CATEGORY

EDIT:
PLEASE, I BEG YOU! Even if you don't know an answer, or if you are unsure of your answer, publish! Same suggestions will be welcome! I really need all the help I could get, even if it's not much.

Published by: 917169 on February 29, 2012 12:25

Hello

I had the problem, that you have found.

>
Error cannot change the interactive report query.
ORA-12899: value too large for column 'APEX_040100 '. "" "" WWV_FLOW_WORKSHEET_COLUMNS '. "" DB_COLUMN_NAME' (real: 32, maximum: 30)
>
you found this problem because the size of this apex_item.radiogroup(1,a.FOODID) is longer than 30 characters, but we have certain restrictions for the column names, we cannot use more than 30 characters for column names, then for what his use of name of column, please see below changed the code.

select  apex_item.radiogroup(1,a.FOODID) as "FOODID", a.NAME, b.FOODCATEGORYNAME, c.STANDARDAMOUNT, c.NAME Unit
from FOOD a inner join FOODCATEGORY b
on a.FOODCATEGORYID = b.FOODCATEGORYID join FOODUNIT c
on a.FOODID = c.FOODID
where a.FOODCATEGORYID = :P17_SET_CATEGORY

Hope you help

Thank you
Jitendra

Tags: Database

Similar Questions

  • How to add the action button for each column in the interactive report

    Hi all

    I'm new in APEX, so pls forgive my question, if it's simple, but I am struggling with this problem for days now. I have interactive report and you want to add button in each row. What I want to do with this button is the following:

    1. to execute some stored procedure in need of that particular line item values

    2. returns a (id)

    3. go in another page in the application by passing the value out of the procedure (id).

    and I'm not find the way to do it. I tried now means:

    1. If I add the link of the column, so I can refer to the value of the current row, I don't know how to call the stored procedure and perform actions of rest I need

    2. If I add the button to the region, I do not know how to reference the values in column of a particular line of the interactive report...

    and I'm stuck...

    I just forms and global report and probably still think the "wrong" way .

    Any help would be appreciated!

    Thank you!!!


    user3253917 wrote:

    Please update your forum profile with a real handle instead of 'user3253917 '.

    I request of the company: there is a customer who always orders the same standard product orders (always order the same products, fair amount is different). I want to make it simple for the user: instead of retyping the command (master and few records details every time yet) I want to copy selected command (copy of the master record and record details) so that the user will only change date order (in master record) and amount fields in record details).

    So, in order to give him:

    1. the user must be able to choose the order in which I would copy (at page 4), select it,

    2. I need to make PL/SQL procedure to insert the new master record (order) and a few record details (order_items) (copy of the order/order_items chosen in step 1)

    3. navigate the user to page 29, where the master account at stage 2 insterted appears, so that the user can change the date and quantities.

    Any solution will be highly appreciated! Thank you very much!!!

    In simple terms:

    1. Add a link to column "Command copies" in the report on page 4, which sets the COPY request and passes the order ID on page 29.
    2. On page 29, create a process before header, sequenced to be the first process executed and conditional on REQUEST be EXEMPLARY, which creates a new order as a copy of the order with the ID from page 4 and returns the ID of the new order in the PK command ID of 29 page element.
  • Add dynamic buttons to each line of the report and bind the data line to this line-specific buttons

    I have a page with a form in the upper part and a report at the bottom that is bound to a table. I need to add a pair of buttons for each row in the table and add dynamic actions for these buttons. I need to submit the data corresponding to the line to a REST service and update the table/line. I know that it is possible to add ajax call and refresh the table after receipt of the response. But I don't know how can I dynamically include a pair of buttons on each line and access the data corresponding to the record when a particular button is clicked. I was not able to find such a feature using the help page. Can you please let me know if this is possible. Thanks in advance.

    Here is the representation of how I need to the page to look like.

    Col 1

    Col 2

    Col 3

    data 1

    data 21

    data 31

    Button 1

    Button 2

    data 2

    data 22

    data 32

    Button 1

    Button 2

    data 3

    data 23

    data 33

    Button 1

    Button 2

    data 4

    data 24

    data 34

    Button 1

    Button 2

    I should be able to access the data 1, data21, data button 31 11 and button21 etc.

    Select data1,

    data2,

    data3,

    ......,

    Button1 null,

    Button2 null,

    ROWID r_id

    Of...

    If you change the column for button1 and navigate to the area of column formatting you can create your button here, in several different ways.  You will need to play with the way you prefer.  See below:

    or or you could use and apply css of your theme.

    You create also two buttons in a single column.  From here you can reference columns in your selection by using the format #COLUNMNAME # (as I did with R_ID).

    Then, you will need something similar for all columns that you want to be able to recover when you click the buttons.  See below:

    -It would be Data1 column

    #DATA1 #.

    You would do this for each column that you want to access click the button as shown above.  You can skip this step and use jquery to iterate through the DOM using the. closest() and. find() and give each column a separate class.  Is your preference.

    You then create a dynamic action, when it is clicked on .button1.  Now that you have this object, you can get the id of the trigger object that would be your r_id and from here you can access all your individual data points (all this in a JavaScript in the dynamic action) and assign to items hidden on your page.  The next step in this dynamic action, you could run pl/sql and transmit the page elements.

    Hope that all of the senses.

    David

    Post edited by: DLittle

    As a bit of clarification: the r_id column does not have to be rowid, but it must be unique for each return line.  You can use your primary key or rownum.  Just what works for your scenario.

  • Currently can not find out how to add radio buttons to this javascript to make it work on them also.

    I am trying to add radio buttons to the if statement so that they are highlighted when not clicked aswell

    Thank you very much

    var emptyFields = [];

    var completedFields = [];

    for (var i = 0; i < this.numFields; i ++) {}

    var f = this.getField (this.getNthFieldName (i));

    v var = this.getField (this.getNthFieldName (i));

    If (f.type! = "button" & & f.required ") {}

    f.strokeColor = color.black;

    f.fillColor = color.white;

    If ((f.type=="text" & & f.value== "") |) (f.type == "checkbox" & & f.value == "Off"). (v.Value=="")) {

    emptyFields.push (f.name);

    f.strokeColor = color.red;

    f.fillColor = color.white;

    }

    }

    }

    If (emptyFields.length > 0) {}

    App.Alert ("error! You must fill in all the mandatory fields (highlighted in red)");

    }

    Try the following. I removed some superfluous things and formatted for readability.

    var emptyFields = [];

    for (var i = 0; i)< numfields;="" i++)="">

    var f = getField (getNthFieldName (i));

    If (f.type! = "button" & f.required) {}

    f.strokeColor = color.black;

    If)

    (f.type == 'text' & f.valueAsString == "")

    || (f.type == "checkbox" & f.valueAsString == 'Off')

    || (f.type == "radiobutton" & f.valueAsString == 'Off')

    || (f.type == "combobox" && f.valueAsString == "")) {

    emptyFields.push (f.name);

    f.strokeColor = color.red;

    }

    }

    }

    If (emptyFields.length > 0) {}

    App.Alert ("error! You must fill in all the mandatory fields (highlighted in red)");

    }

  • How can I add radio buttons to my form?

    How can I add radio buttons to my form?

    An update was released today which includes radio and checkbox button groups.

    Please update to the latest version.

    Thank you

    Sanjit

  • How to add radio buttons to the form

    Hello

    I want to add option buttons to the form.

    I wrote the following code:

    Rbg RadioButtonGroup = new RadioButtonGroup();

    RadioButtonField r1 = new RadioButtonField ("first option button");

    RadioButtonField r2 = new RadioButtonField ("second radio button");

    RadioButtonField r3 = new RadioButtonField ("third option button");

    RBG. Add (R1);

    RBG. Add (R2);

    RBG. Add (R3);

    mainScreen. Add (RBG);

    When I run this, I get uncaughException.

    I am doing wrong?

    can someone help me please.

    Thank you

    Maury.

    On the screen, we can add that the fields. RadiButton group will hold all Radiobutton Fields.

     RadioButtonGroup rbg = new RadioButtonGroup();
            RadioButtonField r1 = new RadioButtonField("first radio button");
    
            RadioButtonField r2 = new RadioButtonField("second radio button");
    
            RadioButtonField r3 = new RadioButtonField("third radio button");
            rbg.add(r1);
            rbg.add(r2);
            rbg.add(r3);
            add(r1);
            add(r2);
            add(r3);
    
  • Add Radio button dynamically, twice - #2025 error: the supplied DisplayObject must be a child of

    Hello

    I have some difficulty to the dynamic addition of user interface controls. For the most part with radio buttons.

    Here is an example that illustrates my problem:

    < s:Application
    ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx".
    creationPolicy = "all".
    >

    < fx:Script >
    <! [CDATA]
    Import mx.containers.Form;
    Import mx.containers.Panel;
    Import mx.controls.Label;
    Import mx.controls.NumericStepper;
    Import mx.controls.RadioButton;

    private var theChar:String = 'B ';.

    protected function btnAdd_clickHandler(event:MouseEvent):void
    {

    var theForm:Form = new Form();
    theForm.label = theChar;

    1 label
    var myLabel:Label = new Sun;
    MyLabel.set_Text = "My Label";
    myLabel.width = 120;
    theForm.addChild (myLabel);

    2. digital stepper
    var myNumStepper:NumericStepper = new NumericStepper();
    myNumStepper.id = "numPointHigh" + theChar;
    myNumStepper.name = "numPointHigh" + theChar;
    myNumStepper.minimum = 0;
    myNumStepper.maximum = 120;
    myNumStepper.width = 50;
    myNumStepper.height = 30;
    theForm.addChild (myNumStepper);

    3. radio button
    var myRadioButton:RadioButton = new RadioButton;
    myRadioButton.id = "myRadioButton" + theChar;
    myRadioButton.name = "myRadioButton" + theChar;
    myRadioButton.label = "my button";
    myRadioButton.selected = true;
    theForm.addChild (myRadioButton);

    4. expert group
    var thePanel:Panel = new Panel();
    thePanel.width = 300;
    thePanel.height = 475;
    thePanel.name = theChar;
    thePanel.title = 'my profile sign ';
    thePanel.setStyle ("backgroundColor", "blue");

    Add the shape in the Panel
    thePanel.addChild (theForm);

    Add the Panel to the list control
    myList.addChild (thePanel);

    }

    protected function btnClear_clickHandler(event:MouseEvent):void
    {
    var numChildren:Number = myList.numChildren;
    for (var i: Number = numChildren - 1; i > - 1; i--) {}
    myList.removeChildAt (i);
    }
    }

    []] >
    < / fx:Script >

    < mx:VBox width = "100%" >
    < mx:List id = "myList" / >
    < mx:Button id = "btnAdd" label = "Add a Panel" click = "btnAdd_clickHandler (event)" color = "black" / > "
    < mx:Button id = "btnClear" label = "Clear" click = "btnClear_clickHandler (event)" color = "black" / > "
    < / mx:VBox >

    < / s:Application >

    ^ Running. Click on the button "add a Panel." Then click on "delete". Then click again on the button "add a Panel." You will see the error:

    ArgumentError: Error #2025: the supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/getChildIndex()
    at mx.core::Container/getChildIndex() [E:\dev\4.0.0\frameworks\projects\framework\src\mx\core \Container.as:2833]
    at mx.containers::Panel/getChildIndex() [E:\dev\4.0.0\frameworks\projects\framework\src\mx\co ntainers\Panel.as:1174]
    at mx.controls::RadioButtonGroup/breadthOrderCompare() [E:\dev\4.0.0\frameworks\projects\fram ework\src\mx\controls\RadioButtonGroup.as:600]
    at mx.controls::RadioButtonGroup/breadthOrderCompare() [E:\dev\4.0.0\frameworks\projects\fram ework\src\mx\controls\RadioButtonGroup.as:611]
    at mx.controls::RadioButtonGroup/breadthOrderCompare() [E:\dev\4.0.0\frameworks\projects\fram ework\src\mx\controls\RadioButtonGroup.as:611]
    to Array$ / _sort)
    table / http://Adobe.com/AS3/2006/builtin:sort ()
    to mx.controls::RadioButtonGroup / http://www.Adobe.com/2006/Flex/MX/internal:addInstance ([E:\dev\4.0.0\frameworks\projects \framework\src\mx\controls\RadioButtonGroup.as:465])
    at mx.controls::RadioButton/addToGroup() [E:\dev\4.0.0\frameworks\projects\framework\src\mx\c ontrols\RadioButton.as:574]
    at mx.controls::RadioButton/commitProperties() [E:\dev\4.0.0\frameworks\projects\framework\sr c\mx\controls\RadioButton.as:514]
    at mx.core::UIComponent/validateProperties() [E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
    at mx.managers::LayoutManager/validateProperties() [E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
    at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:730]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback() [E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]

    I don't understand why I can't add the option button? If you comment out the code for the button of the radio (comment #3 of the article) you can easily add the panels. It happens only when I have radio buttons is added to the form/Panel.

    Why this is happening and how to fix it? Why is this only happening radio button? I thought that I had this problem

    I have responded on the stack overflow.  Make sure your Radio buttons are in a group of Radio buttons and your error disappears.

  • Automatically delete the data in row on the interactive report

    Hi all

    I would like to know is it possible to automatically remove row on interactive report data when the check box is selected.
    I'm enjoying if you can share your opinion or solution.

    Thank you very much in advance!

    Best regards
    Liz

    Hello

    Why you love square?
    Is it more clear for the user have button/image as in my example?

    This is an example only, you must change according to your needs. Example have no confirmation dialog.
    HTML page header

    
    

    The DELETE_ROW application process

    BEGIN
     delete from your_table where pk_col = APEX_APPLICATION.G_x01;
     htp.p('1');
    EXCEPTION WHEN OTHERS THEN
     htp.p('0');
    END;
    

    Change your_table and pk_col according to your table name and the pk column name.

    Call button/image javascript (infrared column binding) or the check box, and then send the value of the primary key as parametter

    BR, Jari

    Published by: jarola on July 5, 2010 11:58

  • Disable add a button to the row over the selection of the checkbox in the OPS

    Hi all

    I have a custom page with a box and an advanced array, so in my advanced table, I "AddaRow" button on clicking that I add a new empty row to the table, my requirement is when I select the checkbox, then "AddaRow" should disable the button on the page, so is it possible, please give me a few pointer on this

    Thnaks

    In the controller

    private static int chk = 1;  Define overall

    In PR

    Table2 OAAdvancedTableBean = (OAAdvancedTableBean) webBean.findChildRecursive ("Table2RN");
    table2.queryData (pageContext, true); OATableFooterBean tableFooterBean = (OATableFooterBean) table2.getFooter ();

    If (tableFooterBean! = null)

    {

    Get a handle to the row of table add bean

    OAAddTableRowBean addTableRowBean = (OAAddTableRowBean) tableFooterBean.findIndexedChild ("addTableRow1");
    addTableRowBean.setAttributeValue (AUTO_INSERTION, Boolean.FALSE);
    if(addTableRowBean!=null)

    {

    System.out.println ("addTableRowBean is" + addTableRowBean);

    If (chk == 1)

    {

    addTableRowBean.setRendered (Boolean.TRUE);

    }

    if(CHK==0)

    {

    Here Addrow Button disconnect after selection of the checkbox

    table2.setRendered (Boolean.false);

    }

    }

    }

    In LICS

    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    OAViewObject vo = (OAViewObject) am.findViewObject ("EmployeeEOVO1");

    for (row = vo.first () line; row! = null;row=vo.next()))

    {

    Rowi = rank (EmployeeEOVORowImpl) EmployeeEOVORowImpl;

    If ("Y".equals (row.getAttribute ("SelectFlag")) ') //Here I'm selected capture flag

    {

    chk = 0;

    pageContext.setForwardURLToCurrentPage (null, / / no parameter to pass)

    true, / / keep the AM

    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,

    OAWebBeanConstants.IGNORE_MESSAGES);

    }

    }

    }

    Thank you

    Dilip

  • Add a button to the row

    Hello

    I created a dynamic/fluid table in which I would like to have a button to add a line, if someone wanted to.  I searched the forums and I have not quite been able achieve what I have for the script.  I also have a total cost field, which will have to recalculate.  I am attaching the file.  If you could help me scripting, I'd appreciate it.

    Also, when the use of subforms is it possible still to control spacing. Mine keep knocking just one against the other.

    Thank you!

    Hello

    I have an example here: https://acrobat.com/#d=RZ1lzX23 * u7L4N9rtWCYPQ

    The script you want is in the click event for the add row button. The form should be saved in dynamic XML form in the Save as dialog box, and the page must be set to flowed. I think that you leaked it already because subforms are affected. You can set the margins in the page layout palette to keep a space between the objects.

    Also check out the script to calculate the total field event.

    Finally, you can share files by offloading on Acrobat.com, and then share the link published here.

    Help hope tht,

    Niall

  • HTML button on each row of tabular form?

    I would like a column of buttons html in tabular form, with the "Signoff" text on each button. When you click on it it should update a fixed value ('1') in a table for the row where the button is displayed.

    SQL for the tabular presentation is

    Select
    "ID."
    'ID' ID_DISPLAY,
    "TARGET."
    'RESULT ',.
    "SIGNOFF_BTN" -?
    of ' #OWNER # '. " RESULTS»

    I pasted < input type = "button" value = "Approval" onclick = "redirect('f?p=101:124:3780119178137162::NO:::'); "id = 'APPROVAL' / >
    in the text of the link to the column box and I'm getting a button.

    so, how to create the ' 101:124:3780119178137162:NO:'-string dynamically and
    How to call an update function of the button send a value ID him?

    Edited by: andypandy 21-dec-2009 01:13

    Hello

    If you change P124_ROW to be the element of text, you see that it is filled with the correct value?
    Are you sure that you do not have for example also affects condition in your process?

    I also think, process should be after the header in this case. But not safe/tested it.

    BR, Jari

  • How to add radio buttons and drop-down menus to forms of the muse

    I want to put a contact form on my site that I am building in muse of adobe but it leaves me not to add drop-down menus or boxes option in my forms, so would like to know how I can get the widget of forms to make me add these fields, I would like to me also can have different fields displayed on a form based on the value selected in a drop-down list and also to send data submitted to an e-mail address which is determined by the value of field drop-down list.

    can someone help me to implement these things?

    Alternatively, you can go with Andrew widget:

    https://creative.Adobe.com/addons/products/3124#.VEO37Mlsiks

    Here's the demo:

    https://widgets.Mu/se/FormsPlus/demo/

    Thank you

    Sanjit

  • Add the button to each pdf through batch processing

    I have the following basic... script that I use to get the button placed in a different location, how to work the cordinates... I tweaked the numbers (arect) below, but they are very limited in the implementation in the document.  Also is there a way to get the cordinates of a current key displayed in the console?

    var inches = 72;

    for (variety p = 0; p < this.numPages; p ++) {}
    aRect var = [688, 580, 520, 700];
    var f = this.addField ("MyField", "text",
    p, aRect);
    f.strokeColor = color.black;
    f.fillColor = color.yellow;
    }

    As you have noticed, it is not easy to understand how the rect property works. The best way is to create a button in the location and the size you want and then use rect of this button for your script. You can do this from the console as follows:

    this.getField("button's_name_here").rect

  • Modification of several radio buttons to a different group

    I have a pretty big shape based on the print that I need to turn it into a form online. I already have a PDF of the document and I just want to add radio buttons on top of the boxes existing. Each question had three possible answers (Yes, no, n/a), and of course I need to put each group of 3 checkboxes in the same group to make sure that they behave as expected and only allow one option by question.

    For the speed, I called the three checkboxes, gave them the right answers and the same group name, then duplicated them between the shape of alt - dragging them.

    I now need to go through the form and change the group names so that they are grouped by issue, rather than being part of the same group.

    i.e.

    The first group is P2_Q1. I want to choose the next group of three radio buttons in a single operation, and change their group to, say, P2_Q2. Then change the next group of three at P2_Q3, P2_Q4 and so on...

    I don't want not to change the name of each option button group, partly because I have a lot of questions, but also partly because that forced to do suggest Acrobat violates every principle of sound mind and good software design, Acrobat already makes my head ache like it is.

    Can anyone help? Thanks in advance.

    Screen Shot 2016-10-01 at 16.53.31.png

    Better start to rename, there is no way around it.

    I rarely use radio buttons, but when I do a large number of groups such as this (usually groups of checkboxes) I use a custom tool I built which allows me to quickly create fields. If although there is not a good integrated solution, it is possible to build a.

  • Using radio buttons

    Good day all.

    This is the first time I tried to use radio buttons on a form, so this issue "could" be very simple to most of you.

    I have a list of questions to add to a form, and the user must answer the questions using radio buttons. There will be 3 buttons for each question. Yes, no and n/a. I use raidio buttons I want only the user to select 1 choices. Thus, the shape will be casting so I thought that I need to put the question and boxes option in a table. When I tried this, the radio buttons 'statcked' one on top of the other. I would need to have the radio 'next' buttons between them. So it would look like.

    Question                                                                                                        0 Yes     0 No     0 N/A

    Any help would be appreciated

    Concerning

    Chomp

    The way you add radio buttons in the form you have downloaded seems to be OK...

    But one thing I've observed is, you put each line in a separate table in the form that you do not need to. You can have a table and have as separate lines. (the modified file attached)

    I would like to know if you still have any questions...

    https://Acrobat.com/#d=YM8D0zmRdG8IdqqgQ3 * z3Q

    Thank you

    Srini

Maybe you are looking for