How to populate list item depending another
hello all,
Am newbie to using Oracle forms 6i i have 3 list items namely CITY_NAME, STATE_NAME ,COUNTRY_NAME and i want to display city_name depending on state_name and display state_name depending on country_name... help me
Hi
Pls Study , try & Test the following...
http://andreas.weiden.orcl.over-blog.de/article-28957008.html
Hope this helps...
Regards,
Abdetu...
Similar Messages
-
How to populate List Item from the table in a form builder
I want to know how to populate the List Item (pop up menu and combo box) from a table.
Supposing I have a table Customer(cust_id,cust_name)
and now I want to populate it in such a manner that I can update the data back to the database and also access the list on the form.This is the method i am using to populate a list.
1- First of all you need to create a non-database list item for customer_name.
2-create this procedure
PROCEDURE populate_list_with_query
--Populates the given list item with the specified query.
(p_list_item in VARCHAR2
,p_query in VARCHAR2)
IS
/* Name the record group after the list item (no
block prefix). */
cst_rg_name constant VARCHAR2(30) :=
GET_ITEM_PROPERTY(p_list_item,item_name);
v_rg_id RECORDGROUP;
BEGIN
v_rg_id := FIND_GROUP(cst_rg_name);
IF ID_NULL(v_rg_id) THEN
v_rg_id := CREATE_GROUP_FROM_QUERY(cst_rg_name,p_query);
END IF;
IF POPULATE_GROUP(v_rg_id) = 0 THEN
POPULATE_LIST(p_list_item,v_rg_id);
/* Force display of first list element label
in the list item. */
COPY(GET_LIST_ELEMENT_VALUE(p_list_item,1),p_list_item);
END IF;
END populate_list_with_query;
3- Create When-Create-Record on the block level and write this code
BEGIN
POPULATE_LIST_WITH_QUERY('bk1.customer_name',
'SELECT customer_name, to_char(customer_id) FROM customer');
END;
In this example, the customer name is the (visible) list label and the customer ID is the (actual) list value
i hope this will solve your problem ... -
How to copy List item from one list to another using SPD workflow using HTTP call web service
Hi,
How to copy List item from one list to another using SPD workflow using HTTP call web service.
Both the Lists are in different Web applications.
Regards, Shreyas R SHi Shreyas,
From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
So I recommend to achieve this goal programmatically.
More references:
https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
Thanks,
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Please tell me how to handle list item in this concern
please tell me how to handle list item in this concern
My problem is:
i have a category table with column categoryname(varchar type)
I want to display the records of categoryname in a drop down list (i.e., list item )
So ..please tell me how to do it
Thanks in advance..This code is just a sample from the Help documentation. It won't work until you modify it for your form.
Why do you have "steps" in your code? You are suppose to do what the steps tell you. You don't place the steps in your code. The steps must be removed from your code.
Step 1 code goes in a program unit, not in a trigger.
Step 2 and 3 code usually goes in a trigger.
You will have to replace the names of the items and record group with your own names as you have defined them in your form.
step 1: create a procedure in your application
procedure load_list(itm in VARCHAR2, rg in VARCHAR2) is
group_id RecordGroup := Find_Group(rg);
list_id Item := Find_Item(itm);
Begin
if Populate_Group(group_id)<>0 then
Message('Unable to populate record group');
Raise Form_Trigger_Failure;
end if;
Clear_List(list_id);
Populate_list(list_id, group_id);
end;
step 2: create a record group named rg_cat and assign Record Group Query to something like "select categoryname from category"
step 3: call this procedure as
load_list('categoryname','rg_cat'); -
How to populate list component via xml file?
There is a TextArea component that should show the name and
the description of the item selected in the list component. But I
dont know how to populate list with external XML and what should be
the coding in flash as well as what should be written in the XML.
Please help.Here's an xml file listing a couple of brother comedy teams:
<?xml version="1.0" encoding="UTF-8"?>
<team>
<brothers>
<Marx>
<name>Groucho</name>
<name>Chico</name>
<name>Harpo</name>
<name>Zeppo</name>
<name>Gummo</name>
</Marx>
<Howard>
<name>Moe</name>
<name>Curly</name>
<name>Shemp</name>
</Howard>
</brothers>
</team>
Open a new .fla and save it in the same folder as the .xml
file. Place a List Component on the Stage and name it (in this
case, "comicTeams_list"). In the first frame write the following
ActionScript:
//create XML object and load external xml file
var broList:XML = new XML();
broList.ignoreWhite = true;
broList.onLoad = processList; // this is a function that will
be written below
broList.load("populateList.xml");
function processList(success:Boolean):Void{
if(success){
loadList();
}else{
trace("Load failure");
function loadList():Void{
var broName:String;
var listEntries =
broList.firstChild.childNodes[0].childNodes[0].childNodes.length;
for(var i:Number = 0;i<listEntries;i++){
broName =
broList.firstChild.childNodes[0].childNodes[0].childNodes
.childNodes[0].nodeValue;
trace(broName);
comicTeams_list.addItem(broName);
//to make something happen when you click on a name in the
List, create a Listener and function
var broListListener:Object = new Object();
broListListener.change = someAction; //"someAction" is a
function to be written shortly
//add the Listener to the List
comicTeams_list.addEventListener("change", broListListener);
function someAction(evtObj:Object):Void{
var pickedBrother:String = evtObj.target.selectedItem.label;
//write actions here, referencing pickedBrother variable
The names of the Marx Brothers will appear in the box.
This is written in AS2. When you post a question, it's a good
idea include which version of ActionScript you're using. -
Hello All,
I have a list item for status. I need to dynamic build the item for list item depend on the status on the database.
Status is 0, 1, and 2.
If status 0 : list item contains status (1,2)
if status 1 : list item contains status (2)
if status 2 : list item contain status (1)
Please give me the step how to do it.
Any help from you is appreciated
JennyHello All,
Thank you very much for all your help.
Instead of using the list item, my manager wants to use the text item with specific LOV based on the status code existed on the table.
My question are
1. Do I need to build multiple LOVs and call the specific LOV depend on the value of status code?
LOV1 for status 1
LOV2 for status 2
2. Do I need to dynamic build the record group based on the value of the status code and call by 1 LOV?
LOV
Record group (where statement for status 1) and (where statement for status 2)
If you do not understand my post, please let me know.
Please give me your suggestion and any sample code.
Any help from you is appreciated.
Jenny -
How to populate list box in module pool program
How to populate list box in module pool program.
Please give me reply as soon as posible
regards,
Venu.hi,
go thrugh the folling code .
TABLES sdyn_conn.
DATA ok_code TYPE sy-ucomm.
Global data
TYPES: BEGIN OF type_carrid,
carrid type spfli-carrid,
carrname type scarr-carrname,
END OF type_carrid.
DATA itab_carrid TYPE STANDARD TABLE OF type_carrid.
*& Processing Blocks called by the Runtime Environment *
Event Block START-OF-SELECTION
START-OF-SELECTION.
CALL SCREEN 100.
Dialog Module PBO
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
Dialog Modules PAI
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'SELECTED'.
MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
ENDCASE.
ENDMODULE.
Dialog Module POV
MODULE create_dropdown_box INPUT.
SELECT carrid carrname
FROM scarr
INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CARRID'
value_org = 'S'
TABLES
value_tab = itab_carrid
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
ENDIF.
ENDMODULE.
the following code should be included in flow logic of screen
process on value-request.
field scarr-carrname module create_dropdown_box.
in module pool select list box.
hope it is useful.
regards,
sreelakshmi. -
How to get List Item attachments name without write any custom code or any database query?
Hi,
How to get List Items attachments name without write any custom code or any database query?You can get it from Rest,
There are 2 options,
1) create a 'Result Source' which has a search query for that List which has attachments
- Use rest query to get the 'Filename' , it will have the attachment file name
For example, if the result source id is : 73e6b573-abf8-4407-9e5f-8a85a4a95159 , then the query will be
http://[site URL]/_api/search/query?querytext='*'&selectproperties='Title,Path,FileExtension,SecondaryFileExtension,Filename'&sourceid='73e6b573-abf8-4407-9e5f-8a85a4a95159'&startrow=0&rowLimit=100
You can refine the query, be giving proper 'querytext'
2) Use the List rest api
For example if your list guid is :38d524a1-e95c-439f-befd-9ede6ecd242e
You can get he attachments for 1st item using this
http://[Site URL]/_api/lists(guid'38d524a1-e95c-439f-befd-9ede6ecd242e')/items(1)/AttachmentFiles
get2pallav
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
Copy windows sharepoint services list items into another sharepoint server list
My requirement I have one windows SharePoint services 2007 site list. one SharePoint server 2013 site. 1.I have to copy data from windows SharePoint services 2007 site list to SharePoint server 2013 site list. 2.when ever data changes in windows SharePoint
services 2007 site list data has to reflect into SharePoint server 2013 site list.
Could u pls help on thisHi,
According to your description, my understanding is that you want to copy data in SharePoint 2007 list to SharePoint 2013 list and the data in SharePoint 2013 list changes with the data in SharePoint 2007 list.
You could use JavaScript client object model to retrieve SharePoint 2007 list items and copy them to other SharePoint 2013 list.
An official documentation about how to retrieve list items:
https://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
A similar post about how to retrieve and copy list items:
https://social.msdn.microsoft.com/Forums/office/en-US/1d01a48f-c28b-467b-acd1-22e5fb266670/how-to-retrieve-list-items-and-copy-it-to-other-list-using-javascript-object-model?forum=sharepointdevelopmentprevious
And you could use SharePoint event receive to monitor the list items.
A post about how to use SharePoint event receive:
http://blog.sharedove.com/adisjugo/index.php/2009/03/12/develop-and-deploy-a-sharepoint-event-receiver-from-the-scratch/
Best Regards,
Dean Wang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Update one list item to another list using WF
hi
i have a SP Designer workflow which copies one list item to another list
but if i edit the 1st list this will copy a new item to another list i want the same item to be edited without making a new copy of the item.
Alen Austinso in the workflow separate between on edit and on new item, so mostly you will need to either do checking and have variable saved to know if you are editing only, or create 2 workflows one when you add new item and other when u edit (if needed)
Kind Regards,
John Naguib
Senior Consultant
John Naguib Blog
John Naguib Twitter
Please remember to mark this as answered if it helped you -
How to refresh list item values before report is run?
We have two SELECT LIST items (drop boxes) on our report. One SELECT LIST has values of "World Region" (e.g. NORTH AMERICA, SOUTH AMERICA, EUROPE, ASIA)
the other SELECT LIST has values of "Subregion" (e.g. NORTHERN EUROPE, SOUTHERN EUROPE, SOUTHEAST ASIA etc...)
The values in the Subregion list are dependent on the value that is chosen from the "World Region" List. Can someone tell up how to update the values in the Subregion list BEFORE we submit the page? We can get these values to update (via sql query) when the page is submitted but that is only happening after the report gets run- which is not what we want. We want the user to select a Region from one SELECT LIST and then see all the qualifying Subregions for that Region in the Subregion SELECT LIST. Only after both Region and Subregion have been selected do we want to run the report. Thank for any help on this.hey john--
john) things like Scott's reference to "The name of the LOV Item". What does this really mean?
raj) in htmldb there's a concept of items at the page and at the app level. page level items have ui component associated with them. in scott's explanation above, he's talking about using a page-level item with a "Display as" type of "select list w/submit" for your first select list. in that case, he's suggesting you have one select list item drive the values of another. when the self-submitting select list submits the page, it sets an htmldb built-in variable called :REQUEST to the name of the self-submitting select list item. in your follow-up post's example, that'd be "REGION_LIST". scott was explaining how you could control the functionality on your page by adding conditions to things like...
:REQUEST = 'REGION_LIST'
...or using declarative Condition options like "Request = Expression 1" and then putting the string "REGION_LIST" in that Expression1 field. so in your case, you have a report region that you don't want displayed until the user's done selecting from your Subregion list. an easy way to handle that would be to add a hidden item (where "Display as" is set to "Hidden") to your page, for example :P1_LAST_REQUEST, to store the last value of :REQUEST. put a Computation on your page that populates :P1_LAST_REQUEST with :REQUEST each time the page is submitted. then put a Condition on your report region that makes it only render when :P1_LAST_REQUEST != 'REGION_LIST'. so this way your users can select a Region and have the page submit itself. the page will then redraw with the values of subregion list correctly populated (you'd presumably use :REGION_LIST in your subregion LOV query to achieve the filtered values) w/o your report region displayed. the user would then select a correct subregion and click some sort of "run my report" button. this time when the page redraws, :P1_LAST_REQUEST would be set so something other than "REGION_LIST" (it'd be set to whatever you named your "run my report button") and so your report region would display as desired.
hope this helps,
raj -
Unable to populate list items with criteria
Hi
I want to populate some values based on condition in a text field.
I tried the code wihtout condition in new form instance and its working fine but when i tried with an condition on when mouse click on list item and its working for first action.If list having more than 1 values in list its became blank and not working
DECLARE
group_name varchar2(40) :='LSTCUR';
group_id RecordGroup;
list_id item := Find_item('TB.LSTCUR');
status NUMBER;
begin
IF Id_null(group_id) THEN
group_id := Create_Group_From_Query('LSTCUR','select distinct curr,curr from REC_CURR_V where br =:TB.PSRCH');
END IF;
Clear_list(list_id);
status := Populate_Group('LSTCUR');
Populate_list(list_id,group_id);
end;
rgds
soumyasoumya,
Try this code.
DECLARE
RG_Group_ID RECORDGROUP;
Num_Status NUMBER;
BEGIN
RG_Group_ID := FIND_GROUP('LSTCUR');
IF NOT Id_Null(RG_Group_ID) THEN
DELETE_GROUP(RG_Group_ID);
END IF;
RG_Group_ID := CREATE_GROUP_FROM_QUERY('LSTCUR', 'SELECT DISTINCT CURR, CURR FROM REC_CURR_V WHERE BR = ''' || :TB.PSRCH || '''');
CLEAR_LIST('TB.LSTCUR');
Num_Status := POPULATE_GROUP('LSTCUR');
POPULATE_LIST('TB.LSTCUR', RG_Group_ID);
END;Regards,
Manu.
If my response or the response of another was helpful, please mark it accordingly -
How to make list item as text item in oracle forms 6i
Hello all,
I created one form with one list item named "Country".. This list item shows country name for the particular employee in the employee table.I created this list item as database field. In the enter query mode i search an employee , This should act as item text.. Suppose i want to add an employee in enter query mode then i fill all the necessary fields,and
when i click "country" list item it should display all the country names from "country_tab" table..So based on the situation
this should act as list item and item text.. Can i Do this ?.. Pls help me.hai Andreas Weiden,
I simply explain my requirement:
I want to insert data and quering data by using single form...So, I created one form with data block. This form created from employee table.I have one text item in this form named country.This is database item.
Ok ,Now the actual problem comes.I press "Enter query" in tools menu,Then enter one employee number in employee_no field.after i press
Execute query In tools menu. It shows all the details corresponding to that employee..
Note: here "country" text item also shows employees country.
Right, Now i have another requirement. In the same form I want to insert a new employee. For that
I planed to changes country text to list item [ because when insert i can easily pick up one country .it
reduces typing work ] . I have another table "COUNTRY". Using this table, i should populate country list item..
So, the country item should act as both text item [When quering] as well as list item [ When inserting ]
Is there any idea ti do this ?
If this not possible then what is the alternative ?
Pls suggest me.. -
Is it possible to populate list item in TAB CANVAS
Hi,
I have two datablock first is master and second is detail (master detail block) I want to populate second datablock fields on the basis of first data block selection (second block is displayed on Tabuler or Grid like canvas) I made list item type data fields on second or Tabuler canvas(detail block) and want to populate this list at run time on WHEN-NEW-BLOCK-INSTANCE trigger, is it possible, if yes what's wrong I am doing because this list population works fine on master block
(master block with canvas type of FORM).
Thanks and Regards.
Khawar
Message was edited by:
skhawar03Hi,
Fifty percent of my problem is solved second canvas list item values now populated successfully, but another problem is that it populates when I click second time on a required button, the button and queried items are in same datablock
the code behind the WHEN-BUTTON-PRESSED trigger button is:
declare
exist_chk number:= 0;
begin
select count(*) into exist_chk
from incident
where ref_no = :incident.ref_no
and inc_type_code = :incident.inc_type_code;
IF exist_chk <> 0
THEN
SET_RECORD_PROPERTY(:system.cursor_record,'INCIDENT',status,new_status);
Set_Block_Property('INTERP_DETAIL', ONETIME_WHERE, ' WHERE ref_no ='||:incident.ref_no||' and inc_type_code='||''''||:incident.inc_type_code||'''');
execute_query;
else
display_message('msgbox_stop','No Master Data','First Enter Master Record ');
end if;
end; -
SPListItem deleting save the list item into another list.
Hi Friends,
Using SPList Item deleting event receiver ,before deleting the item I want save the list item to the another SharePoint list.
How can we do this using event receivers.Please help me anyone.
Thanks,
Tiru
TiruBefore delete the item, use the below logic
http://stackoverflow.com/questions/1075323/copy-list-items-from-one-list-to-another-in-sharepoint
or
You can do this by 2 workflows one creating list item by copying and second workflow on the copied item which will delete the original list item.
http://sharepoint.stackexchange.com/questions/93441/move-items-from-one-list-to-another-list-using-sharepoint-designer-2010
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/100c0b3c-72d9-4427-a48f-8300be508aa2/how-do-i-copy-the-items-in-a-sharepoint-2010-list-to-another-list?forum=sharepointgeneralprevious
Maybe you are looking for
-
REUSE_ALV_GRID_DISPLAY, columns reorder when exporting to Excel
I have a variable column output and am using "cl_alv_table_create=>create_dynamic_table" to create the field-symbol output table with correct number of columns in the exact order of the field catalog. The field formatting also matches from the dynam
-
Dear Friends, I want to learn HR-ABAP,so i need technical material could any one send to me , Thank you .
-
Roxio Media Manager or Windows Installer
Hello all. First let me say that I am truly a novice when it comes to PC understanding. Ok, so I purchased a blackberry pearl and had to replace it. Long story short, I ended up tryign to back up my data on my pc and now I keep getting error messages
-
Upgrade 4.2.0 Build(124) Patch17 to 4.2.1 - ACS folder locked
I try to upgrade ACS 4.2.0 to 4.2.1. When installation program tries to uninstall current version of ACS it fails with message "The CiscoSecure ACS folder appears to be locked by another application" - ACS is installed on Win 2003R2 server. -There is
-
N73ME Themes Problem after upgrading to new firmwa...
Hi All, I bought an N73 Music Edition when it was in 3.07 firmware version. Now I have upgraded it using NSU to 4.07. Currently I am facing a problem when trying to switch to some of the themes I installed before upgrade. These themes are not display