Lov Records
Hi guyz,
i want to select the records from LOV with the current entered record. and delete on commit.
example.
i have an IP module related to department wise. how can i select the current item record to an LOV?
Example: if i enter record in Department field "Administration' and in next filed with attach lov with IPS list. when i press this button it should shows the current department IP related to Administration and when i commit the record it should delete selected IP from IPS table
how can i perform this?
Regards
Yes andreas,
some like this let me explain you my scenario how i want to restrict the user by choosing LOV from departments.
i have three tables
1) system_user
2) Ip_master
3) ip_details
IP_master and IP_details im using this for lov
system_user contain fields dept_name and user_ip by click on button which is attach to user_ip field it will show the ips but i want that before displaying all ips it will check the :system_user.dept_name what ever i enter in dept_name like Administration, accounting, etc etc it will shows that department related ips. if dept_name is null or not related to :system_user.dept_name then shows a alert that department not exist like this?
i create an lov in system_user form and by clicking button lov appear with the below code on when button pressed triger but it will show all departments IPS from 172.xx.xx.01 to 172.xx.xx.254
DECLARE
LOV BOOLEAN;
BEGIN
LOV :=SHOW_LOV('LOV48');
END;
when i select the lov button it should shows the ips related to dept_name what i enter in system_user.dept_name if system_user.dept_name is null then then set an alert please enter the department name something like this.
how can i modify the code, plz give me some hint. like this.
Regards
Similar Messages
-
Show lov records in ascending order
we want lov to display the records in ascending order in forms. How can i do this ?
please help!Hi,
you can visit the following links. It will helps you to create a LOV using Form Personalization.
http://apps2fusion.com/apps-training/147-forms-personalizations
http://blog.optiosys.com/?p=202
http://erpschools.com/articles/change-displayed-data-in-lov-using-forms-personalization#13486622087461&59812::resize_frame
HTH
Sanjay
Edited by: Sanjay Desai on Sep 26, 2012 5:58 PM -
Hi
I have to achieve this task.
I have "company_list" record group and "company_list" lov
I am form layout style. I am in Enter-query. Then give some value to any field. Then Click execute-query. Its retreiving some records.
Now if I click the LOV can I show only those records currently I have retreived.
I have following trigger on button pressed.
It is giving 1)error Populating group.2)cannot create group company_list 3) error_populating group.
Anybody pl help me.
Christy.
DECLARE
cur_blk VARCHAR2(40) := :System.Cursor_Block;
last_qry varchar2(2000);
bk_id Block;
rg_name VARCHAR2(40) := 'COMPANY_LIST';
rg_id RecordGroup;
errcode number;
BEGIN
bk_id := Find_Block(cur_blk);
last_qry := Get_Block_Property( bk_id, LAST_QUERY);
rg_id := Find_Group('COMPANY_LIST');
IF NOT Id_Null(rg_id) THEN
DELETE_GROUP(rg_id);
END IF;
rg_id := Create_Group(rg_name);
errcode:=Populate_Group_With_Query(rg_id,last_qry);
end;I think that you have to use Create_Group_From_Query() instead of Create_Group():
rg_id := Create_Group_From_Query(rg_name);
Helena
null -
Change lov record group dynamilcally
Please provide me solution :-
declare
l_id lov;
rg_id recordgroup;
n boolean;
begin
l_id := find_lov('LOV14');
rg_id := find_group('LOV14');
if get_lov_property('LOV14',group_name) = 'LOV14' then
message('found');
message('found');
-- end if;
-- if not id_null(rg_id) then
-- delete_group(rg_id);
set_lov_property(l_id ,group_name, 'NEW_RG');
-- message('group has been changed');
-- message('group has been changed');
n:= show_lov('LOV14');
end if;
end;
i tried this code . but neither its giving error nor doing work. please help methanks for reply sir, bt problem is :---
my lov name is 'LOV14' and same name as record group 'LOV14' , now i hav to button on my form ;
i want to show lov at button first . as well as i want change record group dynamicly at button second.
first record group name is "LOV14' and another is "NEW_RG'. and run time i want to change NEW_RG record group at the place of LOV14.
declare
l_id lov;
rg_id recordgroup;
n boolean;
x number;
begin
l_id := find_lov('LOV14');
rg_id := find_group('LOV14');
if get_lov_property('LOV14',group_name) = 'LOV14' then
message('found');
message('found');
-- end if;
--x := POPULATE_GROUP('NEW_RG');
-- if not id_null(rg_id) then
-- delete_group(rg_id);
if not id_null (rg_id) then
delete_group(rg_id);
end if;
set_lov_property(l_id ,group_name, 'NEW_RG');
-- message('group has been changed');
-- message('group has been changed');
-- n:= show_lov('LOV14');
end if;
end; -
Dynamics Cascading Prompts LOV records limited
Sir,
I am using CR 2008.I did do the turn around .By changing the registry under LOV to MaxRowsetRecords from 2000 changed to 4000.
But still I dont get all the LOV's
thank youSir Thank you for your previous reply.
We dont have BO enterprise.
We installed CR 2008 on laptop and pulling OLAP data from Oracle 9i tables. Any idea.The client wants to see how CR works for them and then they will use BO Enterprise. Currently there is only CR designer to view reports.
thank you -
How to modify query statement in record grp of LOV in standard form
Hi,
We are using Service contracts in Production environment.
Duplicate rows selected for LOV query.
By adding a line userenv('language') we solve the problem.
But the coding was written inside the standard "OKSITMSL.pll". Here For the Field "NAME", LOV
record group "CUST_SYSTEM" assigned dynamically based on
other fields "ITEMSEL.FILTER = SYSTEM" and "ITEMSEL.CUSTOMER_FILTER = CUSTOMER".
I have added piece of the details below.
Form is Standard form "OKSITMSL", Which is calling om parent form "OKSAUDET".
Form : OKSITMSL
Block : ITEMSEL
field : NAME
pll : OKSITMSL.pll
oksitmsl.pll coding-------------
ELSIF NAME_IN('ITEMSEL.FILTER') = 'System' THEN
If UPPER(Name_In('ITEMSEL.CUSTOMER_FILTER')) = 'CUSTOMER' then
l_group_name := 'CUST_SYSTEM';
Elsif UPPER(Name_In('ITEMSEL.CUSTOMER_FILTER')) = 'RELATED' then
l_group_name := 'REL_CUST_SYSTEM';
Elsif UPPER(Name_In('ITEMSEL.CUSTOMER_FILTER')) = 'BOTH' then
l_group_name := 'BOTH_SYSTEM';
Elsif UPPER(Name_In('ITEMSEL.CUSTOMER_FILTER')) = 'ALL' then
l_group_name := 'OKS_SYSTEM';
End If;
Set_Lov_Property('ITEMSEL_LEVEL', GROUP_NAME, l_group_name);
âCUST_SYSTEMâ Record group present in âOKSITMSLâ form.
I need the advice how to solve my problem by adding a line in query of "CUST_SYSTEM" record group without touching/alter standard form.
Thanks in advance.
Navasthank you shadow,
I think you mean like below:
and trim(leading 0 from a.DD_DRX_BSID_NID) = nvl(trim(to_char(SUBSTR('00042',6,5),'XXXXXXXXX')),0)
and trim(leading 0 from a.DD_DRX_BSID_BSC) = nvl(trim(to_char(SUBSTR('00042',11,5),'XXXXXXXXX')),0) ))But i think it compares with all 0's record ... but that's not correct
Edited by: josh1612 on Dec 22, 2008 2:50 AM -
Guys,
I do have two fields of LOV types on my form
LOV attached to first field should display all the department. And second field should display all the employees assigned to the department selected in first field. Thats how I need dependent LOVs.. can you please guide me how it can be achieved.
Thanks
SunilHi Sunil
second field should display all the employees assigned to the department selected in first field. Thats how I need dependent LOVs.Here is an example...
Let's Suppose u have a rel between dept & emp table related with a FK called DEPT_NO that's what it should be
Now when u select the 1st Lov it will disploay the DEPT_NO of the dept u selected this DEPT_NO will be displayed on ur form or will be hidden it doesn't matter.
Now in the second LOV Record group u should write a similar select statment as follow...
SELECT EMP_NAME,... etc.
FROM EMP
WHERE DEPT_NO = :DEPT_NO ; Pls note that :DEPT_NO is the number of the department selected form the first lov in ur form, then all emp data will be displayed according to this DEPT_NO as ependent LOVs.
Another approach u should be aware and think about it...
u could u a drop down list dependent on one another specially if u don't have large number of departments in ur company.
Hope this helps...
Regards,
Amatu Allah. -
Can we return a value in two field based on a value select in LOV?
Hello expert.
i have a lov attached to a non-bind text field. when i select a value from non bind field lov, a record group of another LOV attached to a database item field generated. both text field are in same block.
LOV record group query of non-bind field is:
select cli_desc,cli from ivt_cli_mst
mapping is done for same lov field.
as: LOV record group query of database item_field :blk_stg_mst.item_cd is
select a.item_cd,b.short_desc
from storg_mst a,item_mst b
where a.item_cd = b.item_cd
and substr(a.item_cd,3,2) = :blk_stg_mst.nb_cli_cd(non bind LOV attached field)
and a.store_cd= :blk_store_mst.store_cd
order by item_cd
requirement:
i want as i select a value from LOV in non_bind field , value display in non_bind field as well as database item_field:
i.e in :blk_stg_mst.item_cd also.
please help.
thanks yashhi,
assign LOV to database item.(as usual setting the lov reuturn column to it). in the when validate item of database field assign value to no db field(something like if :db column is not null then :nondb_col := :dbcolumn). -
I have an LOV and two fields in BLOCK. 1-EMpNO 2-ENAME
there is the query
select empno,ename from emp,
Also i have a when-validate-item trigger on empno to filter LOV records,i.e Once a value is selected,it will be omit from the lov until the form is commit.
DECLARE
rg_id RecordGroup;
rec_count NUMBER;
BEGIN
-- Get the record group ID --
rg_id := Find_Group('EMPLOYEE');
-- Get the number of rows --
rec_Count := Get_Group_Row_Count( rg_id );
-- delete the selected row --
FOR j IN 1..rec_Count LOOP
If Get_Group_Number_Cell( 'EMPLOYEE.EMPNO', j ) = :HR_ATTENDANCE_REG.EMPNO Then
Delete_Group_Row( rg_id, j );
exit ;
End if ;
END LOOP;
END;
all is working fine .problem is that when i make changes in query
select empno,ename from emp where emp_type='P'
i got an error
41084-Error Getting Group Cell.have a look at the properties of your record-group. The last property opens a popup-window with a list of all columns in the record-group. Check the names against the ones you use in your code.
-
Include a data in LOV programmatically
I have created a LOV and I want to include a static value as one of the values with the queried values. How to do this ?
nullHi
The solution what Priya has given is true but with a slight problem that what if your origianl select query in the RECORD GROUP has more than one column and better still has different datatypes like DATE data type (since a union clause need same number of columns and datatype).
My solution to populate your static value on a LOV, before you implement this logic
do the following:
1. Create dynamically a non-query record group with the same structure as your LOV record group.
2. Copy all the records into it programetically, then you can very easily add a new value of correct datatype into this non-query records group.
3. As a final step change the underlying record group of your LOV to this NON-QUERY record group (using buitl-in SET_LOV_PROPERTY('LOV_NAM',GROUP_NAME,...) before displaying the LOV with your inserted value.
Hope this will help you.
Mohammed R.Qurashi
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Richard Dalvi ([email protected]):
I have created a LOV and I want to include a static value as one of the values with the queried values. How to do this ?
<HR></BLOCKQUOTE>
null -
Capturing LOV Return Item in a field of JSP Page
Dear Members,4
I am using JDev 10g (10.1.3.5.0)
Requirement: I want to display a LOV for a field which is not bound to data model. To achieve this requirement I have follwed the below steps.
Steps:-
I have a simple JSP page in which there is a select input text field which is as follows:-
*<af:selectInputText label="Label 1" action="dialog:Test1" windowHeight="500" windowWidth="400"*
id="label1"/>
I have created the necessary navigation rules to Test1 page and also the required VO for the respective LOV.
From this Label 1 field I am able to go to the Test1 page which is a LOV Page and I am displaying the LOV records. After selecting a record, I want to come back to my main JSP Page and the selected value should appear in the field Label 1. I am not able to return the selected LOV value to the Label 1._
The code I am using to return the value from the LOV Page is as follows:-
public void returnObject(ActionEvent actionEvent)
JUCtrlValueBindingRef selectedRowData = (JUCtrlValueBindingRef)getTable1().getSelectedRowData();
if(selectedRowData==null)
AdfFacesContext.getCurrentInstance().returnFromDialog(null, null);
return ;
assetCat = (String)selectedRowData.getRow().getAttribute("Name");
AdfFacesContext.getCurrentInstance().returnFromDialog(this,null);
Note: I want to return the assetCat value to the Label 1 field.
Can any one please help me in resolving this issue.
Many thanks in advance.
Reards,
R4SHello,
Many thanks for your reply.
I am new to ADF. Can you please elaborate your solution.
Regards,
R4S -
hi all,
i am using
i am trying to add the rows to the LOV which resides on the other block(that means 'block1' serial column i am showing on the lov(which in block2)
let us say block1 already have 2 record, and user entered 3 rd record.so serial become 3. this record 3 i want to add an LOV (record 3 is not saved yet).
i have coded as below
DECLARE
rg_name VARCHAR2(20) := 'RG_SERIAL';
rg_id RecordGroup;
errcode Number;
l_rows Number;
BEGIN
rg_id := Find_Group(rg_name);
l_rows := Get_Group_Row_Count(rg_name) + 1;
Add_Group_Row(rg_id, l_rows);
Set_Group_Number_Cell('RG_SERIAL.PPD_SERIAL',l_rows,:SERIAL);
errcode := Populate_Group(rg_id);
SET_LOV_PROPERTY('SERIAL_LOV',AUTO_REFRESH,PROPERTY_FALSE);
SET_LOV_PROPERTY('SERIAL_LOV',GROUP_NAME,'RG_SERIAL');
END;for the LOV i set the property reset to 'No' but still the row is not adding to LOV and i am not getting any compilation error too.
note: here RG_SERIAL is the record_group having select statement in it.
PPD_SERIAL is the database column in the record group.
Please guide me to acheive this.
Thanks..
Edited by: GD on May 3, 2011 5:42 AMhi,
since i am setting the automatic refresh to no. the items is Keeps on adding to an lov.
i cannot use
IF NOT ID_NULL(rg_id) then
delete_group(rg_id);
end if;since record group contains sql query.
where i can refresh this LOV
Thanks.. -
Multi-select LOV return into single row
I have a multi-select lov setup on a column in a table layout. I want to be able to select the lov, select multiple rows in the lov and then when I press the select button in the lov window to have those lov records select return to the same column. Currently, the lov returns the multi lov records into multiple records on my table layout.
IN JHeadstart 10.1.3, we will add the option to return multiple selected values as a comma-separated list into the same field. With 10.1.2 this is not possible. You can implement this yourself by overriding method JhsDataAction.onLovSelect.
Steven Davelaar,
JHeadstart Team. -
Please explain me step by step to create dynamic record group and populate it into my combo box.
thanks
rupal
Edited by: rupearlkaushal on Jun 13, 2012 9:39 PMhi
plz check out the following threads.
Dynamic creation of record group
and
Dynamic Record Group
LOV (List of Values)
LOV is nothing but a form item which is used to provide list of values to a text field.
Each LOV contains a Record Group which provides the data to the LOV
Record Group
A record groups contains the query which is used to populate the values to the LOV.
To alter a list of values(LOV) of a text field, we should change the query of the
record group which is attached to the corresponding LOV or we should create a
new record group and attach it to the existing LOV.
Note : We cant create a new LOV. But we can attach a exsiting LOV to a form field.Method 1: Changing the query of the existing Record group
declare
rg_id RECORDGROUP ;
err number;
lv_id lov;
begin
rg_id:=find_group('LOV4'); -- LOV4 is the name of the existing LOV
if not id_null(rg_id) then
err:=populate_group_with_query(rg_id,
'select deptno from dept where dname=''SALES''');
end if;
lv_id:=find_lov('LOV4');
set_lov_property(lv_id,group_name,rg_id);Method 2: Creating a new Record Group if doesn't exists
declare
rg_id recordgroup;
pg_num number;
lv_id lov;
begin
rg_id:=find_group('MYGROUP'); -- MYGROUP is the Group Name
if id_null(rg_id) then
rg_id:=create_group_from_query('MYGROUP','SELECT 100 deptno FROM dual');
end if;
pg_num:=populate_group(rg_id);
lv_id:=find_lov('LOV4');sarah
Edited by: Sarah on Jun 13, 2012 9:56 PM -
Duplicate rows in Record grp "Cust_sytem" in form "OKSITMSL"
Hi,
We are using Service contracts in Production environment.
Duplicate rows selected for LOV query.
By adding a line userenv('language') we solve the problem.
But the coding was written inside the standard "OKSITMSL.pll". Here For the Field "NAME", LOV
record group "CUST_SYSTEM" assigned dynamically based on
other fields "ITEMSEL.FILTER = SYSTEM" and "ITEMSEL.CUSTOMER_FILTER = CUSTOMER".
I have added piece of the details below.
Form is Standard form "OKSITMSL", Which is calling om parent form "OKSAUDET".
Form : OKSITMSL
Block : ITEMSEL
field : NAME
pll : OKSITMSL.pll
oksitmsl.pll coding-------------
ELSIF NAME_IN('ITEMSEL.FILTER') = 'System' THEN
If UPPER(Name_In('ITEMSEL.CUSTOMER_FILTER')) = 'CUSTOMER' then
l_group_name := 'CUST_SYSTEM';
Elsif UPPER(Name_In('ITEMSEL.CUSTOMER_FILTER')) = 'RELATED' then
l_group_name := 'REL_CUST_SYSTEM';
Elsif UPPER(Name_In('ITEMSEL.CUSTOMER_FILTER')) = 'BOTH' then
l_group_name := 'BOTH_SYSTEM';
Elsif UPPER(Name_In('ITEMSEL.CUSTOMER_FILTER')) = 'ALL' then
l_group_name := 'OKS_SYSTEM';
End If;
Set_Lov_Property('ITEMSEL_LEVEL', GROUP_NAME, l_group_name);
âCUST_SYSTEMâ Record group present in âOKSITMSLâ form.
I need the advice how to solve my problem by adding a line in query of "CUST_SYSTEM" record group without touching/alter standard form.
Thanks in advance.
NavasOf course you can/should do additional validations on the client as needed basing on your requirement, there is nothing wrong with that. If you can't afford the roundtrip to the database than by all means: do everything you can to permit it if it's not allowed anyway.
But even if you do checks on the client side you must not forget that you are in a multi user environment and you can't check for duplicates of uncommited data in another session. Also let's not forget that you might not be the only one jamming data into your database, and if you don't enforce it with a constraint another application actually could create duplicates because the developers forgot to implement a unique check. So the only way to be 100% sure you cannot pile duplicates into the database is a constraint.
My point is:
- always create a constraint when you want to enforce uniqueness => this is a must
- if needed do additional checkings on the client to make users life easier => optional and can be implemented as needed
From what I see mostly the first point get's ignored, and the second get's implemented. The implementations most of the time utterly fail when I start the application twice and enter the same data in two different sessions. Now I have a serious problem, as data which is supposed to be unique isn't unique anymore. too_many_rows are going to happen in every corner of the application, and nobody knows why.
cheers
Maybe you are looking for
-
Replacement Hard Drive does not appear in Disk Utility.
I've replaced the defective HDD in my MBP(A1278) with a 500GB Western Digital one after it failed the Hard Drive test in AST. The old drive is detected internally without issue but the new one does not show up in disk utitlity. I have reformatted to
-
Regd. workflows and org. assignment
Hi, Most of us would know PPOC and org. assignment used in workflows. What I want to know is, this org. assignments do they differ in the way they are built if we use SAP HR in our system. If so how do they differ, it is going to be the same PPOC isn
-
Installing MiniSAP but JVM setup giving error
Hi all... I am facing a problem in installing MiniSAP. During the installation process of minisap, the error message gets generated stating "JVM not found". But when I tried to install JVM there is another error stating that "try installing in -conso
-
Hello! I have have my curve 9300 for just over a year now and my battery lasts 6 hours tops. I do not have bluetooth on, or any gps on. I have no applications running in the background either. I don't use any social media on my device. The problem st
-
Admin40_check_ds_availability_init() error code = 4
I can't log into the admin console anymore. I've searched the other messages and changed the password and expiration time. That didn't work for me. What did I mess up? Here are the log entries: warning ( 5895): admin40_check_ds_availability_init(): u