Tabular Block with list item
I have tabular block (4 items) in this block and created a list item on top of this tabular.
I insert first record and select an item from list item
but when I go to 2nd record then list item value go back on this default item.
there is possibility that when I enter 1st record and select item from item list
this item (from list) is my default item in each row.
No.
Sr# Item1 Item2 item3 list ( all database items)
1 abc abc abc xyz
2 abc bbc ccd
now see list item this is a item list and having 3 list in item
1. abc
2. xyz
3. bbc
in first row I post record and select xyz from list item
in 2nd row i want that xyz will be the default value of all rows in list item.
null
Similar Messages
-
Problem with List Item in oracle forms
Hello Experts,
I am new in oracle forms and i am using oracle forms 11g with weblogic 10.3.5 at windows 7.
I have 3 database tables say(tbl_city,tbl_state,tbl_address).
tbl_city
C_ID
C_name
S_ID
0
None
0
1
XYZ
1
2
AS
2
3
AXD
2
tbl_state
ID
s_ID
S_Name
0
None
1
XY
2
ASD
tbl_address
A_ID
A_Street
S_ID
C_ID
1
ABC
1
1
Now I have made an oracle form having data block tbl_address with base table name tbl_address. In the form there are two list: one(list_state) for State_Name & State_ID and another(list_city) for City Name & C_ID display.
Here I want when I set State_name to ASD then List item list_city should be populated with the values having State_NAME=ASD not of State_Name=XY or None.I have tried it to make but not succeeded.I have made a procedure to populate list_city list item as:
-- here item_nm-->List item Name, sel_val & sel_val2 for selecting C_ID and C_NAME, tablNm---->tbl_CITY, whr for where condition, mtch--->selected value of list_State(list item in form)
PROCEDURE list_item(block_nm varchar2,item_nm varchar2,sel_val varchar2,sel_val2 varchar2,tablNm varchar2,whr varchar2,mtch varchar2) IS
group_id RecordGroup;
group_name varchar2(10) :='abc';
status NUMBER;
query1 varchar2(350);
item_name varchar2(20);
match varchar2(50);
BEGIN
match:=mtch;
item_name:=block_nm||'.'||item_nm;
group_id := find_group(group_name);
if not id_null(group_id) then
delete_group(group_id);
end if;
--if whr='' then
-- match:='0';
-- end if;
query1:='select '|| sel_val || ',TO_CHAR('|| sel_val2 || ') from '|| tablNm ||' where '||whr||' = '||mtch;
message(query1);
group_id := Create_Group_From_Query(group_name,query1);
/* Select statement must have two column*/
status := Populate_Group(group_id);
Populate_List(item_name,group_id);
exception
when others then
message('error');
END;
I am not able to guess what trigger in oracle forms should be used to populate list item(list_city). Please help by giving useful suggestion.
Thank You
regards
aaditya979801 wrote:
If I use LOV in place of List Item,Then I have to populate a LOV at run time.How could I maintain a record group n attach to LOV at run time?
On my previous post I have mentioned record group as follows:
select * from tbl_state where s_id=:tbl_address.s_id;
If :tbl_adress.s_id chaned during the time of run, then output values of list_city (LOV) is also changed. -
TABULAR BLOCK WITH PICTURES BELOW IN REPORTS 10G
I have a requirement to create a tablular report that usually holds 4 to 5 line items. Each line item has a picture that i must put at the bottom of the tabular block and the pictures need to be horizontal as they correspond to the items in the tab block. i have been trying to create two queries then link them, then create two Report Blocks, but the second block always says it's below the group level. any thoughts?
thank you,
stevenI have had this sort of problem before and I have just had to play around with the sizes of my margins and repeating frames and the elasticities until I finally get it to work the way I want. I think for your case I would start by setting the Main margin the same size as the page then leave the horizontal elasticity set to Fixed and the Vertical to Expand. Then for my main Repeating Frame I think I would set it up the exact same way as the Main margin but change the Page Break After property to Yes and leave the Page Break Before to No. Then for any additional repeating frames within that repeating frame I would try to set the width in such a way that I could leave it as Fixed and set the Vertical Elasticity to expand so that it only grows if I couldn't leave it as fixed. For those additional repeating frames I would leave the Page Breaks set to No for Before and After. If that doesn't work... you will probably just have to mess with the properties until it does. Oracle Reports is a nasty little bugger that is very tempermental as you are probably aware of.
-
hi ,
i have items in the form , the user need to visible this item with him self , so i make all the items visible = no
and make list item and but all the items in list value
when list item chanched and the user select any item the item will visible = yes
the form like that
list item named = bank
value in the list ( bank_name= 1
bank_address = 2)
and i have 2 items in the form
bank_name
bank_address
both of them visible = no
and i make trigger ( WHEN-LIST-CHANGED )
if :bank =1 then
SET_ITEM_PROPERTY('bank_name', VISIBLE , PROPERTY_TRUE);
elsif :bank=2 then
SET_ITEM_PROPERTY('bank_ADDRESS', VISIBLE , PROPERTY_TRUE);
end if ;
the qustion is
when the item visible = yes after the user selected it from the list
how can make this itme visible = no
when the user selected the same item ?
thank youHello,
One idea is to make that conrtol using one list item. Suppose you have two item names in the list then create two parameters/global variables in the form and use them like this...
Trigger = WHEN-NEW-FORM-INSTANCE
:PARAMETER.NAME_FIELD:='N';
:PARAMETER.ID_FIELD:='N';Now in the WHEN-LIST-CHANGED trigger use the code as below...
IF :list_name='NAME_FIELD' THEN
IF :PARAMETER.NAME_FIELD='N' THEN
SET_ITEM_PROPERTY('NAME_FIELD',VISIBLE,PROPERTY_TRUE);
:PARAMETER.NAME_FIELD:='Y';
ELSE
SET_ITEM_PROPERTY('NAME_FIELD',VISIBLE,PROPERTY_FALSE);
:PARAMETER.ID_FIELD:='N';
END IF;
ELSIF :list_name='ID_FIELD' THEN
IF :PARAMETER.NAME_FIELD='N' THEN
SET_ITEM_PROPERTY('ID_FIELD',VISIBLE,PROPERTY_TRUE);
:PARAMETER.ID_FIELD:='Y';
ELSE
SET_ITEM_PROPERTY('ID_FIELD',VISIBLE,PROPERTY_FALSE);
:PARAMETER.ID_FIELD:='N';
END IF;
END IF;HTH.
-Ammad -
FRM 41337: Issues with list item
Hi Everyone,
I have created list item, and populated elements dynamically in when-new-form-instance using below code
DECLARE
l_action_rg recordgroup;
l_action_id item
:= FIND_ITEM ('XXSCP_GBL_EXP_DETAIL_V.ACTION_TYPE_TEXT');
l_num_action NUMBER;
BEGIN
l_action_rg :=
CREATE_GROUP_FROM_QUERY
('Action_Type_Text_lov',
'select flv.meaning Action_Type_Text_lov, to_char(flv.lookup_code) Action_Type_Text_lov from fnd_lookup_values flv where flv.lookup_type= ''XXSCP_GBL_ACTION_TYPE'' AND flv.LANGUAGE = USERENV (''LANG'') '
l_num_action := POPULATE_GROUP ('Action_Type_Text_lov');
POPULATE_LIST (l_action_id, 'Action_Type_Text_lov');
END;My form opening with below error "FRM-41337: Cannot populate list from record group " and showing no records.
I have read the related threads and tried implimenting the tips. But didnt help me..
Please suggest me if i miss anything.
Thanks
PavanHi pavan
Let's test the query on toad...
or
i suggest u to try the first condition of ur rg in where clause as below ...
now let's see what's the output ???
DECLARE
l_action_rg recordgroup;
l_action_id item
:= FIND_ITEM ('XXSCP_GBL_EXP_DETAIL_V.ACTION_TYPE_TEXT');
l_num_action NUMBER;
BEGIN
l_action_rg :=
CREATE_GROUP_FROM_QUERY
('Action_Type_Text_lov',
' select flv.meaning Action_Type_Text_lov,
to_char(flv.lookup_code) Action_Type_Text_lov
from fnd_lookup_values flv where flv.lookup_type= 'XXSCP_GBL_ACTION_TYPE' ' );
l_num_action := POPULATE_GROUP ('Action_Type_Text_lov');
POPULATE_LIST (l_action_id, 'Action_Type_Text_lov');
END;
@ Divya ;
Hi Divya Action_Type_Text_lov in the fist select is just an aliasHope this helps...
Regards,
Amatu Allah -
Tooltips don't work with list items?
Hi
I have a list item (I've tried with both combo and poplist), I've set the tooltip and the tooltip doesn't get displayed. I tried setting the tooltip on a normal text item control for comparison and that displays the tooltip. Do tooltips not work on list items?
MarcIt's work in 10gR2.
It's not work with Combo Box!
Could be a problem about what JRE you are working? Jinitiator or Sun JRE.
Try your test on it
Regards -
Tabular form with editable items like Lov?
Hi everybody
I want to know if it's possible to make a tabular report / form where one column isn't a text field but a List of values. In other words, I'd like to edit the type of some columns of the tabular form, but in the Edit page doesn't appear a list of items like in the normal form pages.
Can you help me with this? I'm still a newbie with APEX!I think you should read the manuals first. You can edit a report / tabular form and change
the type of the column - in the report attributes.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://htmldb.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
How we can disable list item in apex.
Hi All,
We are having an issue with list item, i have two list items has "country" and "state". when ever country is selected state is populated.
We have done with select list with redirect option.But the problem when we have huge data it is taking time to load the page and end user has to wait..
Now they are asking me can we do this
It would be nicer to see a more striking visual cue that the user needs to wait until the next field populates before proceeding—maybe disabling the fields until population completes.
(or)
The “Please Wait” does not display on the IE status bar after the 2nd or 3rd field populates.
Note: They are not prefering to go Ajax method to populate the data, since the list will be construct thru xml and returns back to select list as option, during this time while converting to each option value is taking time to construct the results in select list.
Can any one help me in this.
Thanks,
Anoo..hi sampath,
If issue is business critical and if ur are customer,
Use this link https://websmp106.sap-ag.de/smb/sbocustomer for raising support ticket with SAP.
otherwise
Post this issue in SAP B1 Product Development Colloboration forum.
Edited by: Jeyakanthan A on Jun 8, 2009 11:47 AM
Edited by: Jeyakanthan A on Jun 8, 2009 5:12 PM -
Item Type "List Item" dosn't work
I've tried to give the item type of a item to List item
After compiling, I launch the form and I get this:
NoClassDefFoundError
Plugin Java 10.7.2.11
Version JRE 1.6.0_31-b05 Java HotSpot(TM) Client VM
Could it be because of something incompatible in my versions? But it's first time it happens (only with List items)
Database: Oracle 10gXE
Forms Builder: 10.1.2.0.2
JRE: 1.6.0_31
Jinitiator: 1.3.1.22
Thanks in advance!This error should only appear when you use a list-item with the list-type set to combobox. A combobox in forms is a listitem where you can also enter your own text. If you nly need a dropdown list, set the liststyle to poplist. This works also without patching. if you really need the combobox, patch.
-
Apexlib tabular form with lov gining ora-00900
Hi,
When I add a tabular form with 3 items and chagne two of them to a LOV display item I get the following error:
ORA-00900: invalid SQL statement
Debug:
1: begin
2: ---------------------------------------------
3: -- Get metadata of page
4: ---------------------------------------------
5: ApexLib_Page.generateBrowserData;
6: ---------------------------------------------
7: -- Get metadata of items and tabular forms.
8: ---------------------------------------------
9: ApexLib_Item.generateBrowserData;
10: ApexLib_TabForm.generateBrowserData;
11:
12: ---------------------------------------------
13: -- Send data for cascading lovs
14: ---------------------------------------------
15: ApexLib_Lov.generateBrowserData;
16:
17: ---------------------------------------------
18: -- Send NLS data for date formats and numeric
19: -- format masks and translated error messages
20: ---------------------------------------------
21: ApexLib_Browser.setNlsData;
22: ApexLib_Browser.setApexLibMessages;
23:
24: ---------------------------------------------
25: -- Active different navigation improvements
26: ---------------------------------------------
27: ApexLib_Browser.setLovIconsNonNavigable;
28: ApexLib_Browser.setLRButtonIconsNonNavigable
29: ( pLeftClassName => 'L'
30: , pRightClassName => 'R'
31: );
32: ApexLib_Browser.checkForLovKey;
33: ApexLib_Browser.checkForUpDownKey;
34:
35: ---------------------------------------------
36: -- Active different UI improvements
37: ---------------------------------------------
38: /* optional
39: ApexLib_Browser.setTextareaProperty
40: ( pProperty => ApexLib_Browser.VERTICAL_RESIZEABLE
41: );
42: */
43: ---------------------------------------------
44: -- Init browser validation
45: ---------------------------------------------
46: ApexLib_Browser.initValidation
47: ( pShowRequiredWarning => TRUE
48: );
49: ---------------------------------------------
50: -- Has to be the last statement!
51: ---------------------------------------------
52: ApexLib_Browser.flushJsBuffer;
53: end;
Any idea?
ErwinI solved it.
I modified a bit my code "On load Page". In case of LOV i have changed this condition
if (l == undefined) {
document.wwv_flow.f03.disabled = true;
}with this
if (l == 105) {
document.wwv_flow.f03.disabled = true;
}I don't know why 105 instead of undefined, but this works. I give 105, with alert on length. -
How to pick up value from list item
I created one form with list item(used to display all customer name).
From this i want to select one customer name and stored in a variable.. how can i do this..Use the Get_List_Element_Value function e.g.:
declare
v_customer_name VARCHAR2(50);
Begin
v_customer_name:= Get_List_Element_Value('customer_list', 1);
End; -
Get list items using spservices for sharepoint 2013
Hi,
I have a requirement like below.
I have 2 sharepoint custom list with some columns.
List1:listA
List2:listB
Now when i open the listB new item form i want some of the field values from listA should auto populate in Textboxes of listB new form.
Is there any ways to implement this?
Regards,
PooviHi Poovi,
You can achieve this using jQuery to get the SharePoint list items. Refer the below articles. It has explained how to get list items using jQuery and auto populate a text-box from a list item as a source.
You can put this code in list forms through SharePoint Designer. The articles explain about auto populating text box of web part but similarly you can implement it for list form, because nevertheless the text boxes are same.
http://www.c-sharpcorner.com/UploadFile/sagarp/sharepoint-2010-jquery-autocomplete-textbox-containing-list/
http://tomvangaever.be/blogv2/2011/07/sharepoint-2010-autocomplete-with-list-items/
Please remember to click 'Mark as Answer' if the reply answers your query or 'Upvote' if it helps you. -
Can we create a list item as a data block item?
Hi,
I have changed a text item to list item on the data block.
This list item used to get populated when it was control block item, but after i changed it to data block item, it's not getting populated.
My question is, can we create a list item(poplist) as a data block item?
Any idea?
Thanks in advance
R.GHi
When you use ctl blocks data dose not fetch from Database. But in data blocks it get fetches when you execute query. So you have to make sure table column values are matching with the List Box values you have given.
So please check table values.
Nilaksha. -
Tabular form with select list not updating
I have created a tabular form with a dynamic select list
select primary_key, column1,
htmldb_item.select_list_from_query(10,column2, 'select descr d, column_value r from lookup_table where column_value = '||column1) column2
from main_table
The select list appears to work correctly but the new value is not saved to the database. I assume this is because the tabular form element display as field for column2 is set to "standard report column" but when I select any of the "display as text" or "LOV" options either the current data is not displayed or errors are generated.
Any suggestions?
Thanks,
BobHi Ian,
As you have seen, sorting on the project_manager_id column will sort by the id value rather than the textual value. This is, of course, because this is the value in the field.
I haven't tried this out, but one thing that may work is the fact that you don't have to include the ORDER BY fields within the SELECT statement. You could, for example, do:
select p.project_number, p.project_manager_id
from projects p, users u
where p.project_manager_id = u.id (+)
order by u.name
Obviously, you won't be able to do this in the existing statement as you would then be blocked from using column sorting. However, it implies that if you could construct the SQL statement dynamically, appending appropriate ORDER BY strings to the end of the base select statement, you could sort by anything you like. This does, of course, mean that you would have to create a mechanism to allow the user to select the sort order, generate the appropriate string and reconstruct the entire sql statement.
I had had a similar request quite a while ago. The underlying reason for that request turned out to be that the user just wanted to quickly locate records relating to one person. In the end, we agreed that a search filter was the best thing to do.
Regards
Andy -
How to make a list item field with DATE data type?
I have a column with DATE data type. Using forms 6i I want to generate a poplist list item field with this column while the value of the elements in the list to will be day names like SATURDAY,SUNDAY,MONDAY. if we change the data type from date to char, it will work properly but now with DATE data type behind it, it gives the following error message
"FRM-32082: Invalid value for given item type.
List WEEKREST
Item: WEEKREST
Block: EMPRESTS
Form: MODULE3
FRM-30085: Unable to adjust form for output."
Using forms 6i how to make a list item field with DATE data type which can hold day names?Set your date column as a hidden (non-displayed) field. Create your list item with the varchar2 day names. Create the list item as a non-base-table field that accepts the text values of day names. On that field, create a when-validate-item trigger that translates the text into a real date, which it then uses to set the value of the actual base-table item.
Maybe you are looking for
-
Warning: Ovi Suite Will Delete Outlook data
When syncing with Outlook, Ovi Suite will delete what you have in Outlook, if you delete it on the phone. This happens even when you request no deletions to be done. Recommendation: Backup your Outlook PST file before sync'ing with Nokia.
-
Hi Nokia Folks I found that two copies of complete map data (0.1.29.100) for Nokia Maps v3.04 got different file sizes in total under the "cities" folder, though the two sets of map data are for the exact same (all) countries listed by Nokia Suite. T
-
Windows 7 64 bit recovery disk
Hello, I bought ThinkPad T510 with 3 Gb of RAM and Windows 7 32 bit Professinal Russian (I'm from Russia). I'm going to upgrade RAM in my laptop, but I need to change OS from 32 bit to 64 bit. I know that it is legally possible - the license allows t
-
Hi Experts, Request you to please help me with the activation of following tables: Table YCRM01_S_BUPM could not be activated Table YTEL01_S_BUPM could not be activated Table ZICMAG_S_BUPM could not be activated When I checked in SE11, the above tabl
-
Could not open (SQL) error log on passive cluster node
Hi. We have SCCM 2012 SP1 installation using clustered SQL instance running on 2-node SQL Server 2012 cluster. On the passive SQL node that's not running the SCCM SQL instance, there are repeated errors in the eventlog with ID 17058, source MSSQL$SCC