Populating list item with a record group
I'm trying to populate a list item (TList) with a Record group with a simple query: SELECT FRM_NAME FROM FORM
In the forms WHEN_VALIDATE_NEW_FORM trigger, I use POPULATE_LIST('FORM_LIST', 'RG_FORM_LIST');
Am I missing something? I get the error FRM-41334: Invalid record group for list population.
thanks, i've tried that, but still nothing. I must be doing something simple, but very wrong. I tried with oracle's default scott/tiger schema, created a simple form with a record group with 2 columns, and populating a manually made poplist (populate_list('LIST4', 'RG1'); Still get errors:
FRM-30191: No list items defined for required poplist.
List LIST4
Item: LIST4
Block: EMP
Form: MODULE5
FRM-30085: Unable to adjust form for output.
Similar Messages
-
Populating List item on condition.
-- I am populating List item based on the Record Group.
i.e: select casenature,to_char(casenaturecode) from casenature.
-- But when i restrict to display associated record with of another field.
i.e : select casenature,to_char(casenaturecode) from casenature
where casenamecode = :cases.case_namecode
-- it does not display any record in the list item
Plz, help me in this regard.
Thanks in advance.This is a "standard" lookup:
Create a non-database-item in your databaseblock with the datatype and length of the text to be shown (casenature). I assume that there is a casenaturecode-item in your databaseblock which is populated from the database.
Create a POST-QUERY-trigger on your block and read the value from the database:
DECLARE
CURSOR cr IS
SELECT CASENATURE
FROM THETABLE
WHERE CASENATURECODE=:BLOCK.CASENATURECODE;
BEGIN
OPEN cr;
FETCh cr INTO :BLOCK.THE_NEW_TEXT_ITEM;
CLOSE cr;
END;
-- Mark record as valid
SET_RECORD_PROPERTY(:SYSTEM.TRIGGER_BLOCK, :SYSTEM.TRIGGER_RECORD, STATUS, QUERY_STATUS);Create an Lov conatining both casenaturecode and casenature, set length of casenaturecode to 0, assign the lov to the new textfield and set "Use Lov For Validation"="Yes" for the textfield. -
I have two LOV s one in the mainform and one in the subform. If I select one category from the list in the mainform LOV. In the subform LOV has to change it's record group (3 record groups) depending on the category selected in the mainform LOV. Please help. I am pasting the code I wrote. I tried it in the NEW ITEM INSTANCE TRIGGER, NEW BLOCK INSTANCE TRIGGER (datablock for the 2nd LOV with 3 record groups) and in the NEW FORM INSTANCE TRIGGER. Please help. Thank you.
DECLARE
lov_id1 LOV;
--val boolean;
rg_id1 RECORDGROUP;
rg_id2 RECORDGROUP;
rg_id3 RECORDGROUP;
BEGIN
lov_id1 := FIND_LOV ('ACTIVITYTYPE_LOV');
rg_id1 := FIND_GROUP('ACTIVITYTYPE_RG1');
rg_id2 := FIND_GROUP('ACTIVITYTYPE_RG2');
rg_id3 := FIND_GROUP('ACTIVITYTYPE_RG3');
-- val := SHOW_LOV(lov_id1, 32, 48);
IF
GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1' AND :YOUTH_GOALS.GOAL_TYPE = 'EXIT COUNSELING'
THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id1');
ELSIF
GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1' AND :YOUTH_GOALS.GOAL_TYPE = 'COMPLETE TRAINING'
THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id1');
ELSIF
GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1' AND :YOUTH_GOALS.GOAL_TYPE = 'VOCATIONAL TRAINING'
THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id2');
ELSIF
:YOUTH_GOALS.GOAL_TYPE = 'GRADUATE FROM HIGH SCHOOL'AND GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1'
THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id2');
ELSIF
:YOUTH_GOALS.GOAL_TYPE = 'IMPROVE ACADEMIC PERFORMANCE'AND GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1'
THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id2');
ELSIF
:YOUTH_GOALS.GOAL_TYPE = 'OBTAIN GED'AND GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1'
THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id2');
ELSIF
:YOUTH_GOALS.GOAL_TYPE = 'NON-ACADEMIC'AND GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1'
THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id3');
END IF;
end;try on when-validate-item or on POST-CHANGE
Regards,
Danish Hayder -
Populate list Item with a recordgroup?
Hi Friend
I want to populate a list Item with a "Recordgroup". Does it possible without using the add_eliment function?
I did it through the Loop to read the item from record group. If the database changes the record does not change in my list item. because the list containing the added items which was delivered in the load time. But like Pressing F9, we can easily see the last changed data of the database.
If possible please send me the detail code to me. Here I delivered the detail procedure which i did for that purpose.
Farhad
==========================================================
PROCEDURE Populate_Item_In_List ( List_name VARCHAR2,
QUERY_Text VARCHAR2,
rg_Level_Col_name VARCHAR2,
rg_Value_Col_name VARCHAR2) IS
HERE THE PROCEDURE POPULATE THE LIST WITH THE REQUIRED DATA UNDER A CORRCET SQL (SELECT) COMMAND
List_name THE LIST ITEM WHICH HAS TO BE LOADED BY THIS PROCEDURE
QUERY_Text THIS CONTAINS THE QUERY TEXT BY WHICH THE LIST ITEM WILL LOAD
rg_Level_Col_name THIS IS THE LEVEL OF THE REQUIRED ITEM THAT OBVIUSLY A CHAR DATA TO BE RETRIVE
rg_Value_Col_name THIS IS THE VALUE OF THE REQUIRED ITEM THAT OBVIUSLY A NUMBER DATA TO BE RETRIVE
R_Group RecordGroup;
Rowcount NUMBER;
rg_name VARCHAR2(40) := 'DefaultRG';
rg_id RecordGroup;
errcode NUMBER;
Lid Item;
BEGIN
--+++++++++++++++++++++THIS IS USED TO POPULATE THE RECORD GROUP+++++++++++++++++++++++++++++++++
rg_id := Find_Group(rg_name); Find the record group +
--+
IF Id_Null(rg_id) THEN --+
rg_id := Create_Group_From_Query(rg_name,Query_Text); --+
errcode := Populate_Group(rg_id); --+
else --+
errcode := Populate_Group_With_Query(rg_id,Query_Text); --+
END IF; --+
--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If errcode = 1403 then
Message('There is no data to be retrive......');
else
--+++++++++++++++++++++THIS IS USED FOR LOADING DATA TO THE LIST ITEM++++++++++++++++++++++++++++
Rowcount := Get_Group_Row_Count(rg_id); Counting the total rows in RGroup +
Lid := Find_Item(List_name); --+
Clear_list(Lid); Clear the list which is loaded now +
FOR J IN 1..Rowcount LOOP --+
Add_List_Element(List_name, the name of the list item +
J, index of the list +
Get_Group_Char_Cell('DefaultRG.'||rg_Level_Col_name,j), Level of item+
Get_Group_Number_Cell('DefaultRG.'||rg_Value_Col_name,j) value of item+
); --+
END LOOP; --+
--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
end if;
END;
===============================================================Hi Farhad,
You can make use of Populate_List built-in.
Populate_List(list_id, 'RECGRP');
You can find more information in online documentation of forms.
Cheers
Zakiy -
Customising a SharePoint list content type form - "Manage multiple list items with this form"
I have designed a form for a content type on an existing SharePoint list. When I ran the initial wizard, I selected
Manage multiple list items with this form which is great, exactly what I want.
But, there are some columns in this content type that I do not want repeating and have them moved them outside of the Repeating Section but I am getting the below error. I can't seem to find a way to create a new non-repeating group though. Any
advice on how to do this?*Bump*
-
Filter list items based on security groups o365
How to filter list items based on security groups in o365.
Hi,
According to your description, my understanding is that you want to filter list items based on the Office 365 security groups.
If that is the case, I suggest you can create a data view to filter the list items with CAML Query like below:
<Where>
<Membership Type="CurrentUserGroups">
<FieldRef Name="VisibleToGroup"/>
</Membership>
</Where>
For more information, please refer the detailed article below:
SharePoint - Filtering a View by Group Membership
Thanks
Best Regards
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] -
How to create list items with multiple attachment files using rest api javascript
In one of user form I am using javascript rest api to create a list item with multiple attachment files. So far I am able to create list item and once created uploading an attachment file. But this is two step process first create an item and then upload
a file.
It create an additional version of the item which is not desired. Also I am not able find a way to attach multiple files in a go. Following is the code I am using.
createitem.executeAsync({
url: "/_api/web/lists/GetByTitle('UserForm')/items(1)/AttachmentFiles/add(FileName='" + aFile.name + "')",
method: "POST",
contentType: "application/json;odata=verbose",
headers: {
"Accept": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val()
binaryStringRequestBody: true,
body: fileContent,
success: fnsuccess,
error: fnerror
So somehow I need to combine item attributes along with attachment files in body: param. I visited https://msdn.microsoft.com/en-us/library/office/dn531433.aspx#bk_ListItem but no success.
Appreciate any help.Thanks Mahesh for the reply and post you share it was useful.
But this does not solve the core of the issue. You are uploading attachments after creation of item and multiple files are being attached in loop. This is kind of iterative update to an existing item with attachments. This will end up creating multiple versions.
What I am trying to achieve is to create an item along with multiple attachments in a go. No item updates further to attach a file.
Please suggest how this can be done in one go. SharePoint does it when one creates an item with multiple attachment.
Thanks for your reply. -
In SharePoint 2010 I created workflows that used the 'Create list Item' Action, which then set the Content Type ID (so I could create documents of various types in a document library).
We just switched to the SharePoint 2013 platform, and now the drop down for Content Type ID is blank in all of the workflows that are still using the SharePoint 2010 platform. Is there any way to create a list item with specific content
type? Even if I could just input a string into that field instead of using this blank drop-down. Please help!Hi Sarah,
According to your description, my understanding is that you cannot create a new list item with a specific content type using SharePoint 2010 Platform Workflow.
I tested the same scenario in my environment, and the Create List Item worked fine with the specific content type.
How did you create the content type?
Please check if the content type is added to the list/library the workflow associated with.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Populate HTML LIST ITEM with a query
Hello,
I've a problem,
I'm building a portlet based on an html form.
In this forms there are several list items,
How can I populate an html list item with a dynamic query based on a db table?I hope you are looking for something like this
declare
v_ret_string varchar2(32767);
begin
v_ret_string := ' <TABLE BORDER="1" bordercolor="#0000FF" bgcolor="#FFFFF0">
<TR><TD><TABLE BORDER="0" CELLSPACING="3" CELLPADDING="0">
<BR>
<TR><TD ALIGN=middle><SELECT SIZE="1" NAME="emp_list">
<OPTION VALUE="">';
For get_emp_list In (Select ENAME,EMPNO
From SCOTT.EMP
Order by ENAME) Loop
v_ret_string := v_ret_string || '<OPTION VALUE="'||get_emp_list.EMPNO||'">'||get_emp_list.ENAME;
End Loop;
v_ret_string := '</SELECT></TD></TR><TABLE></TABLE>';
End;
which uses PL/SQL code to generate the html page.
Thanks
-Krishnamurthy -
How to Populate a List item with LOV'S
How to Populate a list of items with Lov's
and then how to dynamically change the Values of one LIST Item
Based on the Value of anothe List item976798 wrote:
--Hello..I want to ask that How to bind a list item with table values? this below code does not populate items from database to list item.Pls any body give me solution.
declare
group_id RecordGroup;
list_id Item:=Find_Item('LST_CLASS');
status number;
begin
group_id:=Create_Group_From_Query('Answer_List','select CLASS_ID,CLASS_NM from CLASS_MSTR');
status:=Populate_Group('Answer_List');
message(to_char(status));
Populate_List(list_id,group_id);
end;Welcome to the Oracle Forums. Please take a few minutes to review the following:
<ul>
<li>Oracle Forums FAQ
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>How to ask questions the smart way
</ul>
Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
Check this link: How to Dynamically Populate a Pop List ?
Hope this helps
Hamid
If someone's response is helpful or correct, please mark it accordingly. -
Deleting a List Item with Very Huge Amount of Versions
A faulty workflow flooded list items with 50K+ versions on SharePoint List. Attempts to open the list item/delete/edit via SharePoint UI/PowerShell failed! Programmatic iterations to delete versions/items trys to consume complete server memory and
fails.
Deleting the complete list is successful, but that results in SharePoint timer jobs fail and places Lots of Block in the database, which stops SharePoint sites from loading.
Any help please?SP 2010 and 2013 support a max of 50,000 versions. Accessing more than 5000 items at a time causes SQL Server to escalate from row locks to table locks, which will generally bring SharePoint to a stop. You will need to write code that can bring back subsets
of the data, and the only approach I can think of is a CAML query. But, I can't find any examples of working with versions using CAML.
You could just change the Throttling settings in Central Admin from the default of 5000 to 50000 and then run your code during off hours.
Mike Smith TechTrainingNotes.blogspot.com
Books:
SharePoint 2007 2010 Customization for the Site Owner,
SharePoint 2010 Security for the Site Owner -
SOMEBODY HELP ME WITH A RECORD GROUP URGENT !
I HAVE THE NEXT ERROR 'UNHANDLED ERROR IN ICRG 102' IN ORACLE FORMS 5.0 WHEN I CREATE A RECORD GROUP WITH THE SENTENCE 'select nombres, to_char(ficha) from abogados order by nombres ' where nombres is data type VARCHAR2 and ficha is NUMBER. TOO I GOT IT THE SAME ERROR WHEN I CREATED A PROCEDURE WITH THE NEXT CODE:
PROCEDURE Populate_The_List(list_id VARCHAR2, sql_stat VARCHAR2) IS
group_id RecordGroup;
outcome NUMBER;
BEGIN
--Create temporary record group.
group_id := CREATE_GROUP_FROM_QUERY('List_Elements', sql_stat);
IF ID_NULL(group_id) THEN
MESSAGE('Record Group could not be created in Populate_the_List.');
RAISE FORM_TRIGGER_FAILURE;
END IF;
--Populate record group.
outcome := POPULATE_GROUP(group_id);
IF outcome <> 0 THEN
MESSAGE('Record Group could not be populated in Populate_the_List.');
RAISE FORM_TRIGGER_FAILURE;
END IF;
--Populate list item
POPULATE_LIST(list_id, group_id);
--Destroy the temporary record group to release resources
DELETE_GROUP(group_id);
EXCEPTION
WHEN OTHERS THEN
MESSAGE('Internal error occurred in Populate_the_List.');
RAISE FORM_TRIGGER_FAILURE;
END Populate_the_List;
ANYBODY CAN HELP ME WITH THE SOLUTION
ATTE: ROBERTO
SORRY FOR MY ENGLISHHi Roberto,
I don't understand your message!
What do you did?
bye Roxane
--thanks Roxane I did'it, but there is where jump the message
--the error, do you have other solution.
--Sorry
--Roberto -
Bug editing list Items using webpart connections ,group by and inline editing
Hi Everyone. I came across a bug using out of the box features.
Let me explain well the details to reproduce the error. I used :
*2 Lists :
-List one : the consumer list with two columns :
-Number column
-Choice column
-List two :
The sender list with one column :
-Lookup column to gets the number column on the consumer list
*A webpart Page
*2 listviewwebparts in the webpart page
*Connect webparts to filter by the lookup column/number column
*Add inline editing in the consumer webpart
Till now everything works perfectly, inline editing works fine. Let's add some more view details :
*Add a group by in the view of the consumer webpart (group by the choice column)
=> Try to edit list items, you will notice that inside a group, inline editing is OK and inside another group it doesnt work!
If you get the same error, that would be nice to find where is the problem (I already found a similar bug and the problem was the sorting that needs to be in the same way for both connected webparts , ASC or DESC). But this one... ???Hi Static,
According to your description, I create the consumer list and sender list, create a webpart page , add a chioce filter webpart and consumer list webpart. But after I add a group by in the view of the consumer webpart, the inline edit still work fine.
You can have a look at the blog:
https://support.office.com/en-ca/article/Connect-a-Filter-Web-Part-to-a-List-View-Web-Part-4f3f6c10-0a1b-479d-8b4d-c4f1bf49bb3f#bms3
Thanks,
Eric
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Eric Tao
TechNet Community Support -
Populating List Item From View
I have two data blocks in my form, one named USERS which contains updateable fields to a table from the view and another data block called CONTROL which are all list items that currently populate on a WHEN-MOUSE-CLICK trigger. The list items work as expected for the WHEN-MOUSE-CLICK trigger. However, my problem is trying to populate the list items based on a selection previously chosen and saved to the table (yes, the values are in the table and are selectable through the view). I have a seperate population for this occurrance in the WHEN-NEW-FORM-INSTANCE at the form level, as well as on KEY-SCRUP, KEY-SCRDOWN, WHEN-NEW-RECORD-INSTANCE, and POST-QUERY at the USERS data block level. The only way the list items populate on a previously chosen and saved value is if you choose (WHEN-MOUSE-CLICK trigger) the list of values and save. From then on, as I scroll through the data retrieved in the USERS data block the corresponding data in the users view shows up in the CONTROL block list items. How do I get my form to initially show the corresponding list item data on form load when it is already in a WHEN-NEW-FORM-INSTANCE and POST-QUERY trigger on form load?
Thanks in advance for any clue to point me in the right direction.
Kyle
Edited by: Kyle Miller on Sep 29, 2008 3:09 PMThe form is for editing a current student information system user who we will be extracting data for an OBIEE IDM import. All of the fields displayed in the OBIEE_USERS data block can be edited. For the CONTROL block list items I would like them to display the current value chosen for the user displayed in the OBIEE_USERS data block. When the CONTROL block list items are clicked on then a list of values are displayed in which the logged in form user can chose another value which ultimately changes the choice for the user displayed in the OBIEE_USERS data block. This all works fine in my current form except the list items do not display the current user selected in the OBIEE_USERS data block's saved value until the list item is selected, a value chosen, and a save is committed to the table tied to the OBIEE_USERS data block. From that point I can scroll through the OBIEE_USERS block and the list item displays the correct value for the selected user, if there are values (some users have NULL values). I have currently worked around this issue by displaying the fields in the OBIEE_USERS block and only use the list items for the changing selection. I did this because I needed a proof of concept for the pilot roll-out and could no longer wait to figure this issue out (it should be more simple it seems). I am still interested in resolving this as I feel it is a great functionality for the form.
-
Problem filling list item with values
Hi all,
We have a master detail form
block A (master) contains an item, this item is in the record group's where-clause used to fill a list item on block B (detail block) (database item)
we fille the list item in a pre-record trigger on the master block
this works fine but when we navigate through the records in block a we intermittently get the following error :
FRM-41337 : cannot populate the list from record group;
any solutions
how should we filll our list item, in which trigger (when-new-record-instance of master block doesn't work correctly, the list item only gets filled after clicking it twice)
Kr
MartinThe probloem is you cannot delete the elements from a listitem if there are records in the block which depend on the entries. You have to find a trigger which fires when the block is "clear". Without having forms at hand, i would suggest to use the ON-POPULATE-DETAILS (should already be there) and adjust the code so that the listitem is filled before the execute_query is done.
Maybe you are looking for
-
Hi Friends, I hope somebody can help. I have an Ides Ecc6(java+adap) installation on Oracle 10..*.os win 2003 32 bit Then I try to start the System in mmc the dispatcher is stopping (first yeloow then grey) and no error messages when is see sys log
-
SAPScript PC Editor - Line Repeats with Backspace key
In a transaction entering text data that is using the Word-Processing SAPScript PC Editor. When data is entered above the existed text, the line wraps onto another line and if the backspace is used to the first position, the line repeats. The form t
-
An invalid XML character (Unicode: 0x1d) was found in the element
Hi Guys, i am getting below error in moni, An invalid XML character (Unicode: 0x1d) was found in the element content of the document when i am taking source payload from moni and i tried to test with payload in mapping also i am getting same
-
Clips do not run continuously in iMovie 11
I have iMovie 11 and when I capture clips, iMovie 11 separates clips that are meant to run continuously (my grand-daughter singing a song). How can I get these clips to run continuously ? I am running iMac 10.9.2
-
Safari is not opening and keep asking reopen
<<PLEASE HELP. EVEN AFTER RE INSTALL OS X ITS NOT OPENING>> Process: Safari [1417] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 8.0.2 (10600.2.5) Build Info: