CheckBox group in dynamic LOV-based form
I try to add a set of check boxes to a form and have problems to get the data incoming or outgoing check box group. I try to use the check boxes to view the transactions that are affected by a specific notification. The table relation is a number to-many between the REG_NOTIFICATION and MISC_VALUES tables with the table NOTIFICATION_LINK providing the link-to-many. I've defined something (P950_REG_TRX) on the form as a checkbox and connected to my named dynamic LOV. The LOV source is:SELECT DISTINCT MISC_VALUES_DESC display_value, MISC_VALUES_CODE return_value
of MISC_VALUES
WHERE MISC_VALUES_CODE_TYPE = 'REG_TRX. '
order by 1
and he correctly generates the boxes with their labels. So far, so good!
I've set up a page called GET_REG_TRX rendering process. It is an anonymous PL/SQL block and looks like:
declare
as_check_box htmldb_application_global.vc_arr2;
I integer: = 1;
Start
for r in (select MISC_VALUES_SEQ_ID
of NOTIFICATION_LINK
where NOTIFICATION_SEQ_ID =: P950_NOTIFICATION_SEQ_ID) loop
as_check_box (i): = r.MISC_VALUES_SEQ_ID;
i := i 1;+
end loop;
+: P950_REG_TRX: = htmldb_util.table_to_string (as_check_box, ' :');) +
end;
When I run the application, the form fills correctly except for the boxes. They remain empty. I checked the State of Session data and P950_REG_TRX contains a set of colon delimited numbers that correspond to the data in the MISC_VALUES table. So why not showing that the checked checkboxes? _
I also added a page that deals with the process for updating the database when the boxes were changed. It is also not update the NOTIFICATION_LINK table. Here's the source for the process:
declare
as_check_box htmldb_application_global.vc_arr2;
Start
delete from NOTIFICATION_LINK where NOTIFICATION_SEQ_ID =: P950_NOTIFICATION_SEQ_ID;
as_check_box: = htmldb_util.string_to_table (: P950_CHECKBOX, ' :');)
because me in 1.as_check_box.count
loop
insert into NOTIFICATION_LINK (NOTIFICATION_SEQ_ID, MISC_VALUES_SEQ_ID)
values (: P950_NOTIFICATION_SEQ_ID, as_check_box (i));
end loop;
end;
The part of the removal of this process works, but not the part of the update. So, what's the problem here?
I'd appreciate any help I can get on it.
BTW - I followed the instructions clearly written in Simple HTML-DB Oracle Application Express of the Rampant to this day.
Hello:
What is the point of process for the page process that fills the box run? Make sure it is before that regions are rendered.
In the post send process page reference you a page named 'P950_CHECKBOX', element while in the rendering of page-process page, you reference the item "P950_REG_TRX". Which of them is the checkbox element?
CITY
Tags: Database
Similar Questions
-
Dynamic LOV based on the number
I paint a blank on this one, but I am trying to create a dynamic LOV to a selection list where a user can select a number from 1 to the quantity of an item.
(ie. count (asset_id) where asset_type =: PAGE_ITEM would be the maximum of the selection list)Hello
What about...
SELECT LEVEL d, LEVEL r FROM dual CONNECT BY LEVEL < = ( SELECT COUNT(asset_id) FROM your_table WHERE asset_type = :PAGE_ITEM );
?
See you soon
Ben
Published by: Munky on Sep 30, 2010 15:19 - added display and return the value for the purposes of the LOV
-
Problem with a field display only based on a dynamic LOV
I have a field element / which is based on a dynamic LOV:
Select the DESCRIPTION display_value, STATUSID return_value
of CTCXFRREQS_STATUS_LOV
order by 1
.. .and I need to be only display on the page. However, if I do a field display only, the return value is displayed, not the display value. If I change it is a selection list field, the display value is shown, as I expect and need.
The area is based on a static LOV before, and it worked perfectly then.
Has anyone seen this before and have suggestions on how to get around?Hello
In the item to change
Display in the form: Display only
Save Session State: Yes
Based on: Display value for the list of values
Named LOV: YOUR_LOVKind regards
Patel Kartik
------------------------------------------------------------------------
http://patelkartik.blogspot.com/
http://Apex.Oracle.com/pls/Apex/f?p=9904351712:1 -
Select the element on a form as a table with a different dynamic LOV on each line
I would use a tabular form when one of the columns is a Select based dynamic LOV, and where this is dynamic LOV refers to a column on the values in each row.
So if the tabular presentation was a list of teams and the column selection LOV was the current head of the team, I would like to than this selection list to be filled only with the members of this team (different for each line). As the list of the members of the team is in a different table (all_players or something) I won't fill the LOV with a query with a where clause clause that only selected records of players from team-membership equal to the id of the current team tabular form. Thus, on each line the content of this list would be different.
-JustinThis is explained here:
http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:176
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------- -
Can someone please tell me if there is an easy way to code one
Dynamic LOV in tabular form?
I need the ability to access a column in the row of the table value, to be used in the WHERE clause of the query LOV to another column of the line? Seems
how it should be easy, but do not find an answer.
Thanks for any help.
CarolHi Carol,.
You can add the definition of the selection list directly in your SQL using APEX_ITEM statement. SELECT_LIST_FROM_QUERY - see: [http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDIDGDA]
If you run your page with your existing on this subject, first selection list, then do a View Source and find the list of selection, you'll see an attribute "name" of something as "f01" or "f02" etc. Take note of the part number of this.
Then update your SQL statement to include the above, and using the number you noticed that the Index value (for example, 4):
SELECT EMPNO, ENAME, DEPTNO, APEX_ITEM.SELECT_LIST_FROM_QUERY(4,MGR,'SELECT ENAME d, EMPNO r FROM EMP WHERE DEPTNO = ' || DEPTNO || ' AND EMPNO <> ' || EMPNO) MGR FROM EMP
Which would give you a list of selection of employees in the same Department as the current employee (excluding the employee themselves)
Andy
-
Hello
I have in the form of two Items (ID, DESC) and I want to fill LOV for item (ID) all records
and record_Group & the SQL statements are stored in DB.
ACTION: request in get after QUERY Trigger for each record in a table - the stored SQL-statements of table then put it in the record_group dynamics and fill the dynamic LOV.
Please advice,
Thanks in advance.but in a times-news-record-instance, you can change the assigned lov
If you have any 'column mapping"in your LOV you need to reproduce this for each new LOV. It would be simpiler to use the same LOV and the column mapping and simply change the Group of record used by the LOV for each record. You can use the Set_LOV_Property() built into the trigger once - new - Record - Instance.
Craig...
-
Dynamic LOV problem (in Custom.pll)
Hi all
I have a requirment to create my own lov for the 'LOCATION' field in the order form. Through Custom.pll, I want to create a dynamic disk group.
I use the following code:
declare
l_chr_group_id recordgroup;
Chr.location_record_group varchar2 (1000): = "CUSTOM_RG";
Start
l_chr_group_id: =.
CREATE_GROUP_FROM_QUERY
(l_chr_location_record_group,
"select query);
l_errcode: = POPULATE_GROUP (l_chr_group_id);
IF (l_errcode <>0)
THEN
MESSAGE ('error');
ON THE OTHER
l_record_count: = GET_GROUP_ROW_COUNT (l_chr_group_id);
IF l_record_count > = 1
THEN
SET_LOV_PROPERTY ("DELIVER_TO_LOCATION",
GroupName,
l_chr_group_id
);
END IF;
end;
But it gives the error message saying "Cannot create a"CUSTOM_RG"group" when I try to enter some information in the LOCATION field.
could you please tell me where it is unable to create. Or is - that this dynamic LOV has any restrictions that I can be violated.
Thank you inAdvance.
Aush...Aush,
Before you create the record group, check if its already exists or not. If it exists, then remove it and create it. To do this, add the following code before you create the built-in record group with CREATE_GROUP_FROM_QUERY .
l_chr_group_id := FIND_GROUP(l_chr_location_record_group); IF NOT ID_NULL(l_chr_group_id) THEN DELETE_GROUP(l_chr_group_id); END IF;
Kind regards
Manu.
If my response or response from another person was helpful, please mark accordingly
-
How to create a dynamic lov inside the table?
Hi all
I use JDeveloper11.1.1.1.4.
My scenario is that I have page with editable < af:table >. Table contains a < af:inputListOfValues > inside the column. I want to do this < af:inputListOfValues >
as a dynamic. Because according to users, we have to get the chronogram different objects in different point of view. I tried with below link it works very well for forms.
But editable tables, I'm not able to create the dynamic lov.
ADF practice: dynamic linking LOV
Thank you
David.
Hello David
have you tried ADFbc lov switcher?
See - Andrejus Baranovskis Blog: Groovy - multiple LOV by attribute in JDeveloper 11 g
http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/89-adfbc-lov-switcher-454168.PDF
Thank you
-
Set the Dynamic Menu based on the opening of session/user role
Hi all
Can someone help me to define the Dynamic Menu based on logon user/role? I have several menu and I want to change the menu primary logon user or role-based.
How can I do this?
ArifHello
try to use replace_menu, see form builder help
New_block_instance trigger, you can write
replace_menu ("C:------...-
.mmx'"); -
Where can I find the source of the usefulness of the dynamic "LOVs? white paper
I downloaded this white paper: -.
http://www.Oracle.com/technology/products/forms/PDF/10G/community_paper_generic_lov.PDF
and its title is:
Form of Oracle 10 g - dynamic LOVs
The problem here is that I can not find the AC power : -.
• THE COLORS. PLL
• LOV. PLL
• GEN_LOV. FMB
• INIT_LOV. FMB
• TEST_LOV. FMB
does anyone have an idea where I can find the Source?
Please I want to link specific, as it does not exist in the white paper: -.
{Sources of the utility can be downloaded from the Oracle Technology Network (OTN1).}Hello
On the same page, the title is followed by a link called: zip
(http://www.oracle.com/technology/products/forms/pdf/10g/community_paper_genlov.zip)
Just click this link ;-)François
-
How to enter a new value not contained in a dynamic LOV?
Hello
I have a tabular layout with a report. This report is used to update a table. I defined a column of the report as a list of selection (called LOVE). It diaplays a dynamic LOVE to let the user choose a value in the LOVE, as a suggestion, but I want to make it possible to the user enters a value that is not in dynamic LOVE. I tried with "Display additional value" in the section "List of values", but this option displays an 'empty' value, but does not offer the possibility to enter a new value.
You have an idea?
Thank you very much for your help!
ChristianHi Christian,
Sorry - my suggestion was for the normal items.
-J' tried it myself with a tabular form and it market in my env with Popup LOV (named LOV). I have a LOV named for it and then enter
additional values directly in the text field.Best regards
Carsten-
-
How to change name (label) text dynamically in oracle forms
My requirement is, I want to change the name of text dynamically in the form of oracle. How can do us? (Not the label of the button (or) box... Looking for a title of text element...)
Dear Sir
You cannot change the properties of TEXT elements. Instead, you can use the TEXT_ITEM guests to display the legend.
Manu.
-
ADF LOV based on Weblogic users
Hi all
I want to create a LOV based on all users of weblogic as the ADF. My version of Jdeveloper is 11.1.1.7. Can someone help me please in this matter? How can I achieve this in a simpler way. Thank you very much
Here you can find example how get and set attributes on jmx: http://pirabid.blogspot.com/2013/04/modifying-supported-attributes-of.html
Dario
-
Oracle apex 5.0
That's what I created to display the terminal node.
SELECT LPAD (' > ', 2 *(LEVEL-1),'. '). product_group_name "Product category", Product_group_id
Of oms_product_group
START WITH parent_id = 1
CONNECT BY PRIOR Product_Group_id = parent_id;
Result would be:
ALL THE
> Mobile
> > android
> > > Kitkat
etc...
I want to you use pipeline in dynamic lov thus result will be:
ALL THE | Mobile | Android | KitKat
How to get there
Thank you
Come up with a Solution that works for me hope it works for others as well.
Select
LTRIM (sys_connect_by_path (product_group_name, ' |)) '), ' |') l
product_group_id v
of oms_product_group
connect NOCYCLE. prior PRODUCT_GROUP_ID = parent_id
Start by parent_id = 0
siblings arrested by
product_group_name
-
How to add groups of objects to a form?
I'm working on my forms on Linux, Oracle Builder Version 11.1.2.1.0.
Now, I want to use the Webutil library. After plugging in the library on a form, I need to add the Webutil.olb to groups of form objects.
The documentation says to do to drag the object file to the node groups of objects on the form. But I can't drag the file to a folder on the node.
Actually drag all files to open in the form designer is not feasible in the Linux version.
I also tried opening the Webutil.olb first, it appears under libraries of objects, click on the file and drag to the node of the form, did not work.
Anyone know how to add the object to a form in Linux Version Oracle Builder?
Thank you!frank1018 wrote:
I'm working on my forms on Linux, Oracle Builder Version 11.1.2.1.0.Now, I want to use the Webutil library. After plugging in the library on a form, I need to add the Webutil.olb to groups of form objects.
The documentation says to do to drag the object file to the node groups of objects on the form. But I can't drag the file to a folder on the node.
Actually drag all files to open in the form designer is not feasible in the Linux version.
I also tried opening the Webutil.olb first, it appears under libraries of objects, click on the file and drag to the node of the form, did not work.
Anyone know how to add the object to a form in Linux Version Oracle Builder?
Hi Frank,.
Open webutil.olb
Select groups of objects in the form builder and click Create
now, select the (newly created) object group and go properties and make the subclass
1. Select the object
2. Select Module: WEBUTIL
3. Select object name: WEBUTILNow press ok and fact...
Fix webutil.pll and you're done.
I hope this works...
Hamid
Maybe you are looking for
-
Why parts of my menu boxes showing fully on my Mac/Firefox browser?
I'm on Mac 10.10.3. Joint is a screenshot of the problem. Menu boxes are to cut and I am unable to view them entirely. Here is an example with the Burger menu bar that appears on the browser. This happens elsewhere too. Thank you for your help.
-
Green Frog is displayed on the screen when Liveworship quit unexpectedly
To the Church, we run a third-party software for presentations on some projectors. When the (Liveworship) program that closes unexpectedly one frog green appear on the screen projectors. I tried to find where this image is so we can change or remove,
-
Howdy, I use Logic Pro X 10.2. I can't load my Space Designer IRs logic on interface Space Designer via the menu drop down. IE - I CAN load IRs one by one manually by clicking on the button IR and trawling through my library of Macbook etc. and do it
-
ICloud download duplicates if she tries to download a backup library on a new computer?
General information I am running OS X El Capitan on my MacBook Pro. My current setup, I have the Photos.app using a library of Photos on an external HARD drive. The photo library is 136 GB and is synchronized with iCloud library where I have 200 b of
-
SUDDEN STRIKE ANTHOLOGY COMPATIBILITY WITH VISTA
SUDDEN STRIKE ANTHOLOGY IS COMPATIBLE WITH WINDOWS 98, 2000 AND XP... BUT I BELIEVE THAT IT IS POSSIBLE TO USE WITH VISTA IF YOU CHANGE THE SETTINGS ON THE COMPUTER... ANYONE KNOW HOW THIS IS FACT... THANKING YOU.