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.
Similar Messages
-
"Unknown list item type 'list'" error
Hi Friends,
I am facing a problem while creating a listbox (in inDesign JScript). I have written the following syntax to create the same:
var myDialog1 = app.dialogs.add({name:"Simple Dialog"});
var styleList = new Array("Part Num","Part Title","Chap Num","Chap Title","Chap TOC");
var submenuItems = new Array("Style Formatting","Indents and Spacing","Paragraph Rules","Keep Options","Hyphenations","Nested Styles","Bullets and Numbering");
with(myDialog1){
with(dialogColumns.add()){
with(dialogRows.add()){
with(borderPanels.add()){
with(dialogColumns.add()){
var styles = dropdowns.add({stringList:styleList,selectedIndex:0,minWidth:133});
with(dialogColumns.add()){
var submenu = ListBox.add("list",submenuItems);
myDialog1.show();
But it is showing the following error message:
"Unknown list item type 'list'"
I want to know that what I should write in the parameter list. Please help me in this regard.
Thanks a lot in advanceHi Adithi,
dialogColumns don't know a child called 'ListBox'.
You can use 'dropdowns' instead as you did in 'var styles = dropdowns.add({stringList:styleList,selectedIndex:0,minWidth:133});':
var submenu = dropdowns.add({stringList:submenuItems, selectedIndex:0});
Martin -
Can't create a Content Type List Item on Visual Studio 2010
Can't create a Content
Type List Item on Visual Studio 2010Hi,
According to your description, my understanding is that you want to select the specific content type in new item form.
This is a default behavior. The "Add new item" link uses the default content type and does not display a dropdown list to change that value. This behavior is hard coded into the control and can't be changed.
Here are some similar threads for your reference:
https://social.technet.microsoft.com/Forums/en-US/de60f2a1-df91-4a67-a606-02a593c977b4/choose-a-content-type-when-creating-a-new-list-item?forum=sharepointcustomizationlegacy
http://sharepoint.stackexchange.com/questions/13281/content-type-field-missing-from-new-form
Best Regards
Zhengyu Guo
TechNet Community Support -
Allow user to select each item in list item only once.
Hi,
What is the best way to go to stop the user selecting the same item in a list item more than one.
I have a multi record block, the user can select values 1-10 for each record, but they should not be allowed to select duplicates.
Thanks for any help!Hi,
Suppose you have 4 list items A,B,C,D in block "test" and same 4 values in each list item. Now you want that, no two values selected by user in list item should be same.
On when-validate-item of list item B write code like :
If :test.A is null then
Message('First A must be enter");
Raise form_trigger_failure;
end if;
If :test.B = :test.A then
Message('value already in list item A');
Raise form_trigger_failure;
end if;
Now, for C same code with a addition of condition for B with OR operator like:
If :test.C = :test.A or then :test.C = :test.B
Like that.... you can achive your functionality.
But one restriction is that user has to enter values in list item in a pre-defined order only....
Hope that it would work for you..... -
Workflow with item type and item key is in progress. Abort existing workfl
Dear all,
I'm using the below code from the submit button event to launch the workflow. The workflow works fine when I submit for the first time, when i try to submit for the second time from the same session it throws me the error as Workflow with item type and item key is in progress. Abort existing workflow.
Where I am struck,Kindly send me any solution.
I am using below code in oaf
public void workflow(OAPageContext pageContext,
String headerId,
String empName,
String userName
String wfItemType = "XXSample";
String wfProcess = "XXSample";
String wfItemKey = headerId;
OANavigation wfClass = new OANavigation();
// Create Workflow Process
wfClass.createProcess(pageContext, wfItemType, wfProcess, wfItemKey);
System.out.println("Workflow created");
wfClass.setItemAttrText(pageContext,
wfItemType,
wfItemKey,
"XXHDRID",
headerId);
wfClass.setItemAttrText(pageContext,
wfItemType,
wfItemKey,
"XXEMPNAME",
employeeName);
wfClass.setItemOwner(pageContext, wfItemType, wfItemKey,username);
wfClass.startProcess(pageContext, wfItemType, wfProcess, wfItemKey);
System.out.println("Workflow started");
Thanks,
Kumar.Item type and item key forms unique record for the workflow session, you cannot have 2 instances of the workflow running for the same header id, in your case. Check if the process exists for the header id. If so, display a warning message without launching another workflow session, else start the workflow process.
Thanks
Shree -
Problem passing value from List Item to List Item
OK I will try to explain what I am trying to do. I have a Form that List Item at the top and they cascade from left to right. When I get to the BPOST_TAG I choose the Bpost then move to EPOST_TAG to choose the Epost. The EPOST_TAG should show all the Epost that go with Bpost you already chose, but it only showing 1 or 2. Below is the example of how should work!
SYSTEM COUNTY ROUTE BPOST_TAG EBPOST_TAG
1 77 80 025 030
------- The Return Values Should be as below-------------------------------------------------
Sy Co Route Dir Bpost Epost Miles Descrption
1 77 80 1 025 026 ? ?
1 77 80 1 026 027 ? ?
1 77 80 1 027 028 ? ?
1 77 80 1 028 029 ? ?
1 77 80 1 029 030 ? ?
1 77 80 2 025 026 ? ?
1 77 80 2 026 027 ? ?
1 77 80 2 027 028 ? ?
1 77 80 2 028 029 ? ?
1 77 80 2 029 030 ? ?
The top 5 List Items are based on the first Data Block (PMISCURR) and the bottom 8 columns are based on the second Data Block (PMISCURR1).
I have PRE-QUERY on the first Data Block (PMISCURR), below is code for the PRE-QUERY.
DECLARE
Wh_clause VARCHAR2(200);
BEGIN
IF :PMISCURR.SYSTEM is not null then
Wh_clause := 'SYSTEM = '||:PMISCURR.SYSTEM;
END IF;
IF :PMISCURR.COUNTY is not null then
Wh_clause := WH_CLAUSE ||'AND COUNTY = '||:PMISCURR.COUNTY;
END IF;
IF :PMISCURR.ROUTE is not null then
Wh_clause := WH_CLAUSE ||'AND ROUTE = '||:PMISCURR.ROUTE;
END IF;
IF :PMISCURR.BPOST_TAG is not null then
Wh_clause := WH_CLAUSE ||'AND BPOST_TAG = '||:PMISCURR.BPOST_TAG;
END IF;
IF :PMISCURR.EPOST_TAG is not null then
Wh_clause := WH_CLAUSE ||'AND EPOST_TAG = '||:PMISCURR.EPOST_TAG;
END IF;
END;
OK It's just not my day I can't even get this line-up! :)
Edited by: Monty on May 5, 2011 2:58 PMHello,
Simply get the current item value in a When-List-Changed trigger:
current_value := :block.listitem ;Francois -
Unable to check'relevant for delivery' for 'Standard' Item type in Item cat
Hi
I am facing a strange situation in SAP when I tried to create a new
Item category with Item type as 'Standard' & 'Relevant for Delivery',I
am getting a message that 'Relevant for Delivery'is possible only with
Value Item & Text Item...We have an other Item category in the system
which is of Item Type 'Standard' & 'Relevant for Delivery'..We could
create that Item category without any issues..Could you please let me know
why system is behaving differently when we have same combinations( Item
type as 'Standard' & 'Relevant for Delivery'.)
Regards
PrasadHi Ramesh
Thanks for your response..
Only if we check'relevant for delivery' field the item will appear in the delivery document.
Regards
Prasad -
Conditionally diplaying items in List item
Hi,
It is appreciably if anyone could help me, how we could conditionally display list items. Depending on the condition the certain items should be greyed out. Our environment is 10g Forms on Windows XP.
Thanks with Regards.
HectorDo you want to disable the list or the values in the list?
For the first one use set_item_property: enabled property_false/true based on your condition.
The second one is not possible.
Monica -
Attach Item To List Item Using Powershell
Hi Everyone
Hoping someone can help me with a SharePoint Powershell Script i need to do..
What I have is a Document Library with word documents and a list of items that these documents needs to be attached to.
The document library and the list have a column in common, Customer Order No.
I want to basically take all the items from the document library and attach them to the list items where the Customer Order No matches, is this possible with Powershell?
Thanks in advance :)[System.Reflection.Assembly]::LoadWithPartialName(”Microsoft.SharePoint”)
$filePath = "location"
$siteUrl = "site"
$spSite = new-object Microsoft.SharePoint.SPSite($siteUrl)
$spWeb = $spSite.OpenWeb()
$spList = $spWeb.lists["YourListName"]
$spitem = $spList.Items.Add()
$item = $splist.GetItemById($1)
AddAttachment $item $filePath
function AddAttachment($item, $filePath)
$bytes = [System.IO.File]::ReadAllBytes($filePath)
$item.Attachments.Add([System.IO.Path]::GetFileName($filePath), $bytes)
$item.Update()
$spitem.Update()
w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP -
Change RPM Item Type after Item creation
There is a requirement where RPM Item Type needs to be changed for an Item after it is created.
Using the Override in SPRO we can enable field for change. But it does not really change all Decision points etc. I think it would not happen since ITem type drives everything once the item is created.
Please correct me if I am wrong.
Also, any other alternatives for this requirement besides starting all over again to create the Item?
Thanks!Hi,
1 - Map the permitted item types in the path: SAP Portfolio and Project Management > Portfolio Management > Global Customizing > Portfolio-Independent Settings > Define Portfolio Item Types
Select an item type, a decision point and then set the permitted item types for switch to.
2 - Make settings for process flow in the path: SAP Portfolio and Project Management > Portfolio Management > Global Customizing > Portfolio-Independent Settings > Process Flow for Items > Make Settings for the status mapping for itens
3 - In the portfolio item click in the "Change Process" yellow button.
3.1 Chosse the item type
3.2 Select "Delete previous decision points"
3.3 Save
Best regards,
Jonatan -
How to filter data by list item
hi all,
I create list item on block BLK1 ,
name :emp_name
item type: list item
elements in list : list_elements : (null) list_item : (null)
data type : Char
maximum length : 200
and create PROCEDURE :
PROCEDURE POPULATE_LIST_BY_QUERY(P_LIST_NAME VARCHAR2,P_QUERY VARCHAR2) IS
RG_NAME VARCHAR2(30) := 'RG_CODE_DESC' ;
RG_ID RecordGroup;
errcode NUMBER;
LIST_ID ITEM;
BEGIN
RG_ID := FIND_GROUP(RG_NAME);
IF NOT ID_NULL (RG_ID)
THEN DELETE_GROUP (RG_ID) ;
END IF;
RG_ID := Create_Group_From_Query (RG_NAME, P_QUERY) ;
errcode := Populate_Group (RG_ID) ;
LIST_ID := FIND_ITEM (P_LIST_NAME) ;
POPULATE_LIST (LIST_ID,RG_ID) ;
END;and wrote in trigger WHEN_NEW_FORM_INSTANCE:
POPULATE_LIST_BY_QUERY('BLK1.emp_name', 'SELECT emp_name,emp_id FROM employees');
create table employees
(emp_no number(10) primary key,
emp_name varchar2(200))
Insert into EMPLOYEES
(EMP_NO, EMP_NAME)
Values
(1, 'hhh uuo');
Insert into EMPLOYEES
(EMP_NO, EMP_NAME)
Values
(2, 'hh ppp');
Insert into EMPLOYEES
(EMP_NO, EMP_NAME)
Values
(3, 'ph');
Insert into EMPLOYEES
(EMP_NO, EMP_NAME)
Values
(4, 'uuuuu');
COMMIT;when Run my form list item give me all data, no problem ,ok
My question is that can i want to filter data when write anythnig data is found im my list or part of data,
show data only by my filter,
for example:
I wrote in my list : hh
show data in list:
hhh uuo
hh ppp
I wrote in my list : h
show data in list:
hhh uuo
hh ppp
ph
I wrote in my list : uu
show data in list:
uuuuu
if not wrote anything fetch me all data,
Thanks a lotHi,
You can try,
POPULATE_LIST_BY_QUERY('BLK1.EMP_NAME', 'SELECT EMP_NAME, EMP_ID FROM EMPLOYEES WHERE EMP_NAME LIKE ''' || <your_search_variable> || '%''');Hope this helps.
Regards,
Manu. -
I added an icon to my URL "Item Type Properties". But, I don't see the icon on any URL items. I added every attribute to the "Displayed Attributes" for the region, and I still don't see any item type icons. The "Available Attributes" in "Edit Region" doesn't list anything like "Item Icon" anyway.
Oracle Portal Version: 10.1.2.0.2
How can I show the item icon? Or, what is it used for?
Thanks.Hi Brian,
You're talking about a mime type icon, and those are shown for a File Item. Those work fine. I'm talking about the Icon associated with the Item Type, where you specify the Icon in the "Item Type Properties" when you edit the Item Type.
For example, I made an "External URL" Item type:
Base Item Type: Base URL
Name: EXTERNALURL
Display Name: External URL
Description: <none>
Icon: <this is where I added my icon, and it's displayed in the properties here...>
Help URL For Add Item Wizard: <none>
Help URL For Edit Item Wizard: <none>
In this Edit Item Type area, there are also tabs for "Item Type Attributes" and "Procedures". I don't think those apply.
When I make an External URL item, there's no icon.
Again, the portal version I'm using is 10.1.2.0.2. -
Please help on List Item... I'm stucked... :(
Hi,
I created my Data Block (my data block is called Supply inside
have DeptId, VendorId and Date_Last_Meet) and Layout
(Windows/Canvases) using the Wizard, than I chg one of the
control item frm Text Item to List Item (Property Palette ->
Item Type). And I added the following code (below) into the WHEN-
NEW-FORM-INSTANCE trigger to populate the list:
DECLARE
group_id RecordGroup;
list_id ITEM;
BEGIN
group_id := Create_Group_From_Query ('my_group',
'SELECT DeptName FROM Department');
list_id := Find_Item('DeptId');
IF (Populate_Group(group_id) = 0) THEN
Populate_List(list_id, group_id);
END IF;
END;
When I run my form it give me this error (a popup error):
FRM-30351: No list elements defined for list item.
List DEPTID
Created form file C:\MP3\75131\TEST_LIST_ITEM.fmx
and this error (displayed in form status bar):
FRM-41334: Invalid record group for list population.
What wrong with the code? I tried every single code in this
forum, but none of them work for me... could someone please help
me out, I'm stucked... :(
Note: I'm using Oracle8i and Form Builder [32 Bit] Version
6.0.8.11.3 (Production).
Thank You.
Regard,
Wai ChongHello,
For populating list from Query you need to return 2 columns
from query, one will be display column and Second will be it's
corresponding value. Problem is in your query.Look at following
procedure. Value column must be converted to Character,that's
why I am using To_char here.
PROCEDURE POPULATE_ZONE IS
V_ZONEITEM ITEM;
V_ZONEGROUP RECORDGROUP;
N
NUMBER;
BEGIN
V_ZONEITEM := FIND_ITEM('TSTATEM.ZONE');
IF ID_NULL(V_ZONEITEM) THEN
MESSAGE('Item zone does not
exists.');
MESSAGE('.');
ELSE
V_ZONEGROUP :=
CREATE_GROUP_FROM_QUERY('ZONEGRP','SELECT NAME,TO_CHAR(ZONE0)
ZONE
FROM YOGI.TZONEM ORDER BY ZONE0');
N := POPULATE_GROUP('ZONEGRP');
IF N <> 0 THEN
MESSAGE('Group zone does
not contain entries.');
MESSAGE('.');
RAISE
FORM_TRIGGER_FAILURE;
ELSE
POPULATE_LIST
('TSTATEM.ZONE','ZONEGRP');
END IF;
END IF;
END;
Adinath Kamode -
Hi,
I am working in SRM 7.0
I am facing a problem in creation of shopping cart through portal. After clicks on Shopping cart link, Shopping cart creation screen is appearing but in pace of Item type "undefined Item type" is coming instead of "MATERIAL" and "SERVICE" and instead of Line number dot (.) is coming. Kindly help me to resolve this issue.
Regards
SushHi Muthu,
Thanks for your quick response. Now I solved the issue of product category. Actually problem was that, we have huge number of product categories (approx 2000) and I have maintained (*) in attribute. So when system is searching for product categories, it takes lots of time and later it time outs. Now I have maintained a small range of category in attribute and it works.
Now one more problem is coming. When I am trying to check or save the shopping cart system throwing a short dump. Kindly help
srmdbdev
http://srmdbdev:8000/sap/bc/webdynpro/sapsrm/wda_l_fpm_oif/
UNCAUGHT_EXCEPTION
Incorrect status in pricing
Module: %_HTTP_START of program SAPMHTTP
Form: ABORT of program SAPLBBP_PDPRC
Form: CREATE_PRICING_DOCUMENT of program SAPLBBP_PDPRC
Function: BBP_PDPRC_UPDATE of program SAPLBBP_PDPRC
Form: PRC_UPDATE_CALL of program SAPLBBP_PDIGP
Form: PRICE_AND_VALUE_DETERMINE of program SAPLBBP_PDIGP
Form: SC_ITM_CHECK of program SAPLBBP_PDIGP
Form: ITMPROC_CHECK_AND_ENRICH of program SAPLBBP_PDIGP
Form: ITMPROC_MAINTAIN of program SAPLBBP_PDIGP
Form: ITMPROC_F_CREATE of program SAPLBBP_PDIGP
Regards
Sush -
How to write a query on a component-item-type properties
hi
For the following sample repository definition file.
<item descriptor name ="student" idcolumn="id">
<property name="name" data-type="string"/>
<property name="department" component-item-type="department" data-type="list" />
</item descriptor>
<item descriptor name ="department">
<property name="name" type="string"/>
<property name="HOD" data-type="string" />
</item descriptor>
If I get a view of the student Itemdescriptor and will I be able to query on the department item descriptor in the same rql ?Nitin,
Thanks for the mail.
I am getting below error.
Attempt to create a sub-property query expression for the property: "department", which is not a RepositoryItem. Only properties that are RepositoryItems can have sub-properties.*
atg.repository.RepositoryException: Attempt to create a sub-property query expression for the property: "department", which is not a RepositoryItem. Only properties that are RepositoryItems can have sub-properties
For more clarity PFB how the ItemDescriptor looks like
<item-descriptor name="student" display-property="displayName">
<property name="isActive" data-type="boolean" default="false"/>
<table name="student" type="auxiliary" id-column-names="student_ID">
<property name="studentId" display-name="student" column-name="student_id" data-type="string" required="true"/>
</table>
<table name="student_department" type="multi" id-column-name="student_ID" multi-column-name="sequence_id">
<property name="department" display-name="department" column-name="department_id" data-type="list" component-item-type="departmentl" />
</table>
</item-descriptor>
<item-descriptor name="department" super-type="superDepartment" sub-type-value="department" display-property="name" display-name="departmentname">
<table name="department" type="auxiliary" id-column-name="department_id">
<property category="Basics" name="location" data-type="int" column-name="location" display-name="Location" required="true" default="1">
<attribute name="propertySortPriority" value="-5"/>
</property>
<property category="Basics" name="name" display-name="name" column-name="name" data-type="String" />
<property category="Basics" name="HOD" display-name="HOD" column-name="HOD" data-type="String"/>
</table>
</item-descriptor>
Thanks
Shobby
Maybe you are looking for
-
Planned Delivery Costs in IMPORT PO
Hi, What planned delivery costs are posted to GL accounts and material accounts. I want to post Clearing & Forwarding and Demurrage charges to material accounts.How it can be done. Regards
-
How to get the current type of a generic Field Symbol
Hi Experts, I have a Field Symbol: FIELD-SYMBOLS: <lf_any> TYPE ANY. I loop around an internal table with a generic structure and assign their fields to my fieldsymbol: LOOP AT it_data ASSIGNING <lf_any>. After executing this statement I am able to s
-
Could not resolve mx:AdvancedDataGrid to a component implementation
Hi, I receive this error msg: "Could not resolve <mx:AdvancedDataGrid> to a component implementation" whenever i try to compile my application using the Flex 3 application command line compile tool. I've gone through the folder where i exctracted the
-
Value Exceptions - Import Map Update
Hello MDM Gurus, We have the requirement to update the existing import map by unmapping two of the fields that we no longer required. When we try unmapping the required fields and save as another map name, export, reimporting it and overwriting the e
-
WSDL ACL update is controled by?...What's causing the timeout?
I am doing some small tests. - drop localhost.xml - register localhost (allow all *) - check wsdl call ("OK") - drop localhost.xml - register localhost (disallow via for instance 192.* --> server / network is in 10.* domain) - check wsdl call ("Not O