Assigning different record groups to a single LOV
I have an LOV named as ship_refrence and this is how i display
DECLARE
a_value_chosen BOOLEAN;
BEGIN
a_value_chosen := Show_Lov('ship_refrence');
END; and the corresponding query for
the RG1 is
SELECT ALL TBLOBLIGATION.MATID, TBLOBLIGATION.MATCODE, TBLOBLIGATION.DESCRIPTION,
TBLOBLIGATION.PARTNO, TBLOBLIGATION.DESCRIPTION1, TBLOBLIGATION.PARTNO1, TBLOBLIGATION.MANUFACTURER,
TBLOBLIGATION.NETYPE, TBLOBLIGATION.CAT2, TBLOBLIGATION.CAT3,
TBLOBLIGATION.CAT5, TBLOBLIGATION.CAT6, TBLOBLIGATION.CAT7, TBLOBLIGATION.COMMCODE,
TBLOBLIGATION.NSMCODE, TBLOBLIGATION.UNIT_TYPE_ID
FROM TBLOBLIGATION Now i have created
RG2
select matcode,description,partno1,description1,partno1 from tblobligation where cat2!='C'
RG3
select matcode,description,partno1,description1,partno1 from tblobligation where cat2='C'now the thing is I want my default LOV which has been using rg1 to use RG2 if the billtype is 'Send it to site' or else use RG3 if it is 'Send it to Consumed'
Edited by: Suhail Faraaz on Jan 29, 2011 12:35 AM
i have solved it.. by creating 3 different LOV for the record group and under when button pressed i have written this
Declare
a_value_chosen BOOLEAN;
BEGIN
if
:shipbill.billtype
in ('Send it to staff','Send it to store','send it to repair','Received from staff','Received from site','Received from store','Received from STC')
then
a_value_chosen := Show_Lov('ship_refrence');
else
if :shipbill.billtype='Send it to site'
then
a_value_chosen :=Show_Lov('RG_SITE');
else
if
:shipbill.billtype ='Send it to consumed'
then
a_value_chosen :=Show_Lov('RG_CONSUMED');
end if;
end if;
end if;
END;
END;
Similar Messages
-
Cannot assign changes to groups, only to single images
Since aperture 3.4.4. I cannot assign changes to selected groups of images. Changes are only accepted to single images, although groups are selected. Can anybody help me?
You may have set the "Primary Only flag" - uncheck the little button with the framed "1" or the menu option "Edit > Primary Only".
See my User Tip:
Keywords or ratings are applied only to one of the selected images - why?
Regards
Léonie -
Record group/list of values question
Is it possible to assign one record group/list of values to multiple data items on a canves? If so, how is it done.
ThanksThanks for the replies..
What I have is this... I have a db record with 3 currency code fields, three different types of codes, displayed on the canvas. When the user mouse's over to any of the currency code fields, I wanted the lov to pop up and the user pick one of the selections. The lov has 2 columns, country and currency
Ex: France | Euro
U.S. | Dol
I built this as a static record group. If I'm in the second currency code field and pick a value, the first currency code field gets overlayed with the new value. -
Form Builder Static Record Group
Hi Folks,
I am a part of a development team where we do parallel development where a team in India is working on certain forms and we work on other forms.
We faced a peculiar problem, both the teams use Oracle Forms 6i, but we lose values in the static record group attached to Static LOV.
Have any one of you faced this problem before, please let me know.
With Regards,
SrikanthHi all
Should I install patches for correcting this problem ?
Thanks and Regards,
Srikanth -
Hi all
I have 2 records groups defined
based on a condition i want to populate the tree with a particular record group
I have assigned a record group in the property pallete of the tree
how can i populate the tree based on record group
Plzz help
thanks
RahulHi,
use following code on WHEN-NEW-FORM-INSTANCE
Declare
HTREE ITEM;
V_IGNORE NUMBER;
Begin
HTREE := FIND_ITEM(<Tree_block_name>);
V_IGNORE := POPULATE_GROUP(<Record_Group_Name>);
FTREE.SET_TREE_PROPERTY(HTREE, FTREE.RECORD_GROUP,<Record_Group_Name>);
end;
Hope this will helpful for you.
Thanks
Baloch
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!
Edited by: Baloch on Aug 2, 2010 5:04 PM -
Client Roaming Within Single WLC with Different AP Groups
I am trying to setup a 4400 WLC with 2 different AP Groups mapped to its respective Dynamic Interfaces / Vlans. AP's are equally mapped to both the AP groups by Floor wise ex: First floor AP's connect to one AP group and the Second Floor AP's connecting to other AP group.
Goal is to create separate Network policy for each Floor using ACL's and apply to their respective Vlans on Layer 3 Switch. Wireless Raoming should happen seamlessly between these Ap groups making the DHCP changes by not disconnecting and connecting every time user roam across the Floors.
Problem is When Clients Roam between Floors i,e moving between AP Groups, they still maintain their old DHCP IP addresses when moved to new AP group even after Client re-authetication. This defies our goal of creating a Wireless Network Policy using single WLC.
Knobs i have tuned in WLC to acheive our goal includes....
1. WLAN Session Timeout - No use
2. DHCP Proxy Disable - No Use
3. ARP Time out - No use
Looks like WLC is storing the IP address and MAC information of the Client unconditonally during roaming and clearing out untill a manual or forced disconnect or disassociation is done.
Did anyone tried to implement this setup and made it running? Any help or suggestion would be higly appreciated.
Thanks
Guruabit late for a reply but....try going to the SSID>Advanced and ticking the "DHCP Addr. Assignment" Required checkbox and test again.
What does the DHCP Required field under a WLAN signify?
A. DHCP Required is an option that can be enabled for a WLAN. It necessitates that all clients that associate to that particular WLAN obtain IP addresses through DHCP. Clients with static IP addresses are not allowed to associate to the WLAN. This option is found under the Advanced tab of a WLAN. WLC allows the traffic to/from a client only if its IP address is present in the MSCB table of the WLC. WLC records the IP address of a client during its DHCP Request or DHCP Renew. This requires that a client renews its IP address every time it re-associates to the WLC because every time the client disassociates as a part of its roam process or session timeout, its entry is erased from the MSCB table. The client must again re-authenticate and reassociate to the WLC, which again makes the client entry in the table. -
Static record group and lov problem
hi all,
1)I created a form module
2)created a basic datablock based on empno and ename from emp table.
3) created a static record group ,where i specified the column name as col1,provided the values as 1 ,2,3,4,5 etc
4) created an LOV and assigned the above record group to the LOV
5) then assigned the lov to the emp.empno item in the datablock emp....
when i run the form .....i get the list of values message on the console (bottom end of the window) ....
but I am not able to see the LOV when i press the cntrl L or see it from the edit menu command ?
what must be the problem ?
ta
sDear,
May be you don't set LOV's "Column Mapping Properties". After setting the properties correctly you will be able to display LOV.
Thanks. -
HI
I have a question regarding LOV's.
I have 2 fields dept_code which is a checkbox and field2 which is an LOV displaying the employee names based on the dept_code selected.
My record group has a query like this -
SELECT empname FROM emp WHERE dept_code IN(:parameter.P_dept_code). p_dept_code is char.
If the user enters multiple department codes then my p_dept_code should contain commas and single quotes for each department like this ('m10','m20')
In which trigger do I do this coding and how do I do it?
Thanks.Hi
Thanks for your response.
The key-listval does'nt seem to firing.
When I run the form the lov comes up but displays the value 2 which is from the default record group(select 1 "dno", 2 "ename" from dual).
This is the code in my key-listval -
DECLARE
rg_name VARCHAR2(40) := 'name_rg';
rg_id RecordGroup;
gc_id GroupColumn;
errcode NUMBER;
BEGIN
rg_id := Find_Group(rg_name);
IF Id_Null(rg_id) THEN
rg_id := Create_Group(rg_name);
gc_id := Add_Group_Column(rg_id, 'dno',
CHAR_COLUMN,10);
gc_id := Add_Group_Column(rg_id, 'empno',
CHAR_COLUMN,100);
END IF;
:parameter.p_dno := ''''||replace(:parameter.p_dno,',',''',''')||'''';
errcode := Populate_Group_With_Query( rg_id,
'select dno dno, ename ename from emp1 where dno in ('|| :parameter.p_dno|| ')' );
set_lov_property('name_lov', GROUP_NAME, rg_name);
list_values;
message(errcode);
END;
Please let me know what I'm doing wrong
TIA -
Can a single LOV return values to two different fields?
Hi,
I have a scenario where I already have a LOV in the form which is assigned to a Field A. This LOV returns the value to field A. I have another field B which needs the same list of values. I can assign the same LOV to the field B as well, but can the value selected be returned to B?
I can create another LOV with the same record group, but just wanted to know if its possible to use the same LOV again.
ThanksHi Karuna,
You can achieve this by providing a third column in LOV (whose column width can be set to 0 to prevent it from being visible in lov) which can be comma-separated of two fields. This third field can then be assigned to the form field. And a substr() function call can get you both values.
Hope this helps,
Anantha
[http://askanantha.blogspot.com] -
Stock report for single material contains different material groups
Hi Experts,
I have a scenario.I want to maintain material group for a material at the time of po creation.In next time i will maintain different material group for the same material.
But I want to view the the stocks for material group wise which i entered in po.Is it possible to achieve this?
Please suggest solution.
Thanks & Regards,
Deepika.Please read the KBA document 2012912 - Changeablility of the field "material group" in purchasing documents
It clearly says that material group can't be changed in case you will use material master in purchase order.
So, it is clear that you can't use different material group for material master in purchase order.
For stock report, system will only show you the material group which is assigned to the material master (MARA-MATKL). System will not look into the purchase order section (like EKPO). -
How can we assign different colours to different records(line items) in alv
how can we assign different colours to different records(line items) in alv reporting?
Hi Friend,
Please see this SDN Wiki for setting the color in ALV :[http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP-DevelopingInteractiveALVReportusing+OOABAP]
There are so many SDN Wiki's on this just try with search Alv Color display in SDN,
Regards, -
Dynamically populate a record group on the fly uisng LOV
Hi,
I want to create dynamically populate a record group on the fly uisng LOV.
1. This is how the RG_BANKNAME Record Group object look like
Object : Record Group
Name : RG_BANKNAME
Record Group Query : SELECT NAME, SHORT_NAME FROM C_BANKS
2. I create the Push Button and when user click it will popup the LOV.
DECLARE
rg_id RecordGroup;
errcode NUMBER;
status BOOLEAN;
BEGIN
rg_id := Find_Group('RG_BANKNAME');
IF Id_Null(rg_id) THEN
Message('No such group: ',ACKNOWLEDGE);
RAISE Form_Trigger_Failure;
ELSE
errcode :=POPULATE_GROUP(rg_id);
SET_LOV_PROPERTY('LV_NAME', TITLE, 'My Own LOV');
SET_LOV_PROPERTY('LV_NAME', GROUP_NAME, rg_id);
SET_LOV_COLUMN_PROPERTY('LV_NAME', 1 ,Title, 'NAME');
SET_LOV_COLUMN_PROPERTY('LV_NAME', 1 ,Width, 150);
SET_LOV_COLUMN_PROPERTY('LV_NAME', 2 ,Title, 'SHORT NAME');
SET_LOV_COLUMN_PROPERTY('LV_NAME', 2 ,Width, 100);
status := Show_LOV('LV_NAME',10,20);
IF NOT status THEN
Message('You have not selected a value.');
Bell;
END IF;
END IF;
END;
My question is do I need to create the LOV Object name call 'LV_NAME'? since I don't have this
create on my design times, because I thought it can be done dynamically on the fly.
The problem is compliant that the Lov Id is not valid.
Thanks
David
Edited by: user445990 on May 24, 2011 9:19 PMHello,
You request is not clear. Do you need to display the LOV or not ? In other words, what is the goal of your record group ?
Francois -
Creation of Record Group and LOV at run time
Hello All,
I have been stuck by this...I have two text items on which LOVs have been placed.Selection of one depends on selection of other.I can dynamically create a record group but how to create a LOV dynamically to populate it with the dynamic record group been created.
For more visualization consider that filtering of data takes place in one lOV based on the other LOV been provided.
Revert ASAP...
Thanks and Regards,
Kapil UppalI don't think you can create a LOV dynamically, but you can repopulate a pre-existing one, which should allow you to achieve the same goal.
-
(urgent) Dynamic record groups and LOV
I have to create a record group and then add 2 rows to it manually.Following is the code.There are no values displayed in the lov.Please help.
PROCEDURE create_record_group IS
BEGIN
DECLARE
rg varchar2(40) := 'test_fips';
rg_id RECORDGROUP;
lov_id Lov;
err NUMBER;
gc_id1 GROUPCOLUMN;
gc_id2 GROUPCOLUMN;
counter number;
BEGIN
rg_id := FIND_GROUP(rg);
lov_id := FIND_LOV('LOV_FIPS');
IF NOT ID_NULL(rg_id) THEN
DELETE_GROUP(rg_id);
END IF;
IF ID_NULL(rg_id) THEN
rg_id := CREATE_GROUP(rg);
gc_id1 := add_group_column (rg_id,'col1',number_column);
gc_id2 := add_group_column(rg_id,'col2',char_column,40);
END IF;
/* adding static content to LOV */
ADD_GROUP_ROW( rg_id,1);
SET_GROUP_NUMBER_CELL(gc_id1,1,997);
SET_GROUP_CHAR_CELL(gc_id2,1,'MLAB');
counter := get_group_row_count(rg_id);
/* adding dynamic content */
FOR rec in (SELECT FIPS_CD COL1, LOCNAME COL2 FROM FIPS) LOOP
counter := counter +1 ;
ADD_GROUP_ROW( rg_id, counter);
SET_GROUP_NUMBER_CELL(gc_id1,counter,rec.col1);
SET_GROUP_CHAR_CELL(gc_id2,counter,rec.col2);
END LOOP;
SET_LOV_PROPERTY('LOV_FIPS',GROUP_NAME, rg);
END;
END;I tried creating the group the way you suggested but it does not seem to work because of 'UNION' in the query.It says unable to create rcord group.Did you anytime use the 'UNION' option while creating record group.
While creating record group at design time also you cannot use UNION with dual.
This how I modified :
PROCEDURE create_record_group IS
BEGIN
DECLARE
V_RG_ID RECORDGROUP;
RG_NAME VARCHAR2(20) := 'TEST_FIPS';
V_ERRCODE NUMBER;
BEGIN
V_RG_ID := FIND_GROUP('TEST_FIPS');
IF ID_NULL(V_RG_ID) THEN
V_RG_ID := CREATE_GROUP_FROM_QUERY('TEST_FIPS', 'SELECT FIPS_CD, LOCNAME FROM FIPS
UNION SELECT 997,'MLAB' FROM DUAL');
END IF;
V_ERRCODE := POPULATE_GROUP(V_RG_ID);
MESSAGE('CREATED '|| V_ERRCODE);
SET_LOV_PROPERTY('LOV_FIPS',GROUP_NAME, RG_NAME);
END;
END;
Notice here 'MLAB' is char and I get compilation error if I use these quotes with MLAB.But is I remove the quotes the it compiles.
Thanks -
Count(*) giving different record count than Group by
I have a table which is giving me different record counts as below:
SELECT COUNT(1) FROM tbl_A --45104 records
SELECT ID,COUNT(*) FROM tbl_A GROUP BY ID ORDER BY 1 --42084 records(ID is the primary key)
Any idea why this will happen?Can you quickly show us what the below are returning?
SELECT COUNT(ID) FROM tbl_A
SELECT ID,COUNT(ID) FROM tbl_A GROUP BY ID ORDER BY 1
Maybe you are looking for
-
Slow boot time Mac Osx when USB external hard drive is connected
I have bought some days ago an external hard drive, the Western Digital 500 GB Elements. It goes very well by now but I have a problem. When I turn on my MBP, after the "bong", I have to wait 60 second more than the normal boot time. The screen stay
-
Hi folks, I've just experienced the weirdest thing! My whole library has just vanished (Invisible) It all happened when I went to use the Neat Image 'Plug In' it had to restart A3 in 32-bit and when it did all my images were gone 23,000 The folders s
-
I was having a problem with one of my new SUN Solaris 8 boxes so I installed the box without networking. I'm now trying to install the networking and thought I could use "sys-unconfig" to remove any networking and then on the reboot I thought it woul
-
Optimisation, using of one subquery several times,
Hi, is it possible to optimise such query? select * from (select count(*) as count1 from table where a=1) e1, (select count(*) as count2 from table where a=1 and b=1) e2, (select count(*) as count3 from table where a=1 and b=1 and c=1) e3, (select co
-
I freed up space on my hard drive now TC won't back up.
I have a 2TB HD and a 2TB TC. My HD had gotten down to around 250GB free when I cleaned some items out and got it up to about 280GB free. Since I did that, my TC will no longer backup. It says it needs 2.06TB and only 2TB is available. The free spac