Dynamically remove LOV from item
Hi All,
i have 2 items, item A and item B. The value of item A determines if a LOV will be created from item B. When i have item A filled with a value so that we need a LOV on item B, i will dynamically build up the record group for this LOV and assign this LOV to item B. But when i then change item A so that no LOV must be used for item B, the previous LOV stays assigned to item B. How can i unassign this LOV from item B? Set_item_property('itemB',lov_name,''); doesn't work.
Please help.
Kind regards,
Dave
Thanks for the reactions.
I checked my code again, and it was my fault.
set_item_property('itemB',lov_name,''); does work, i only put it in the wrong place.
Kind regards,
Dave
Similar Messages
-
Dynamic query built from items is not refreshing state
Hi. I'm generating a report table using the Pl/SQL function returns SQL query report region. My region source is:
declare
v_tbl varchar2(500);
v_sql varchar2(32676);
begin
v_tbl := v('P7_STUDENT_TBL');
v_sql := 'select b.grade,
b.lastname,
b.firstname,
b.middlename,
b.permnum,
a.student_attended,
a.parent_attended,
a.num_assoc_w_student,
a.ea_id
from event_attendance a right outer join ' || v_tbl || ' b
on ( lpad(a.permnum, 12, '' '') = b.permnum
and a.event_id = ' || v('P7_EVENT_ID') || ' )
where b.status = '' ''
order by b.lastname, b.firstname ';
return v_sql;
end;
As you can see, the query relies on a dynamic table name and event id. These 2 items are hidden items, although i've checked them and they are correct, as is the sql query supposed to generate the report.
It seems i have to go back and forth between the event page and this page in order for the report to "catch up" to the items (event id, table name).
It's almost like it's cached the old report, and won't discard it and bring up the current report unless the page is repeatedly accessed. There's no place to designate the source to be "Always, replacing any existing value in session state" like other items.
My dynamic tablename is accessing a remote database using a dblink. It's working, and shouldn't be remarkably slower, but i'm wondering why my report is not current with the items its using to generate the report?
I hope this is clear... any ideas?Thanks for the reply, Scott.
I am indeed using bind variables in my query. The page before the "event attendance" page is "events" where you can search for an event. A link for attendance is there for each event record, which passes on the event id to the event attendance page, where you are recording the attendance for that event, which is for a particular school.
The query uses the event id and the school id in the query. The school table is dynamic, so i get the table's name from a function call. This query generates the list of students and some form elements for each student so you can record their attendance at an event.
Now i've verified that the table name, school id, event id, and even query are correct, by creating items i can see displayed on the page with their values. And the report is correct, but it seems a step behind.
For example, i may have an event for school 100. If i go back and select an event for school 200 to edit the attendance, my students are still from school 100. If i go back and select an event for school 300 to record attendance on, my students are from school 200. So you see, it's like the bind variables are hanging around. Yet if i look at the items (which are the same pl/sql source, but are items, not regions) they are correct.
My item query (which shows proper substitutions) is:
select b.grade,
b.lastname,
b.firstname,
b.middlename,
b.permnum,
a.student_attended,
a.parent_attended,
a.num_assoc_w_student,
a.ea_id
from event_attendance a right outer join schema.school015@dblink b
on ( lpad(a.permnum, 12, ' ') = b.permnum
and a.event_id = 91 )
where b.status = ' '
order by b.lastname, b.firstname
This item has EXACTLY the same pl/sql function returning sql source as the region, but it's an item, not a region. So what you see is the parsed query.
And here's my debug output:
0.00: S H O W: application="114" page="7" workspace="" request="" session="8149080792357934854"
0.01: alter session set nls_language="AMERICAN"
0.01: alter session set nls_territory="AMERICA"
0.01: ...Setting NLS Decimal separator="."
0.01: Application 114, Authentication: CUSTOM2, Page Template: 5225413680368493
0.01: ...Supplied session ID can be used
0.01: ...Application session: 8149080792357934854, user=ARICHMOND
0.01: ...Determine if user ARICHMOND with SGID 4503012961108875 can develop application 114 in workspace 4503012961108875
0.01: Fetch session header information
0.01: Branch point: BEFORE_HEADER
0.02: Fetch application meta data
0.02: ...fetch page attributes: f114, p7
0.02: Fetch session state from database
0.02: Computation point: BEFORE_HEADER
0.02: Processing point: BEFORE_HEADER
0.03: Show page template header
0.03: Computation point: AFTER_HEADER
0.03: Processing point: AFTER_HEADER
0.03: Computation point: BEFORE_BOX_BODY
0.03: Processing point: BEFORE_BOX_BODY
0.03: Region 1:Record Event Attendance for the following event:
Edit
0.04: FORMITEM: P7_EVENT_SCHOOL_DESC DISPLAY_ONLY_HTML
School: School 015
0.04: FORMITEM: P7_EVENT_TYPE_AND_DATE DISPLAY_ONLY_HTML
Event: Event Desc
0.04: FORMITEM: P7_LOCATION DISPLAY_ONLY_HTML
Location: Auditorium
0.04: FORMITEM: P7_SCHOOLNUM DISPLAY_AND_SAVE snum 015
0.04: FORMITEM: P7_STUDENT_TBL DISPLAY_AND_SAVE
tbl : schooltbl015
0.04: FORMITEM: P7_QUERY TEXTAREA
(see query above)
0.05: Region 2:Students
StudentsEdit
Edit Edit
0.05: show report 15
0.05: set report template: user defined template
0.06: determine column headings
0.06: is numeric ?
0.06: parse query
0.06: describe columns
0.07: define columns
0.07: execute cursor
0.07: print template before rows text
0.07: print column headings
0.07: rows loop
0.30: pagination
0.30: print template after rows text
0.30: Computation point: AFTER_BOX_BODY
0.30: Processing point: AFTER_BOX_BODY
0.30: Computation point: BEFORE_FOOTER
0.30: Processing point: BEFORE_FOOTER
0.30: Show page tempate footer
0.31: Computation point: AFTER_FOOTER
0.31: Processing point: AFTER_FOOTER
0.31: Log Activity:
0.31: End Show: -
How can i remove a LOV from the item on runtime?
dear firends
i have a problem
Ihave a tabular block.
the item "element_value' could have free writen value or sometimes reistrected values
if the value in :DETAIL.UVLS_ID is not null then a LOV is attchaed to the item"element_value" on runtime so that user select a avlaue from LOV.
this code fire on WHEN-NEW-RECORD-INSTANCE
BEGIN
:DETAIL.UVLS_ID := RSK_GET_PKG.F_GET_ELM_VLS(P_ELM_ID);
IF :DETAIL.UVLS_ID IS NOT NULL THEN
SET_ITEM_PROPERTY('DETAIL.ELEMENT_VALUE',LOV_NAME,'CG$VALUESETDETAIL');
Else
-- SET_ITEM_PROPERTY('DETAIL.ELEMENT_VALUE',LOV_NAME,'NULL');
null;
END IF;
END;
my problem is
i want to remove the LOV from the item"element_value" incase the
:DETAIL.UVLS_ID is null.
how can i do that
please help
Edited by: [email protected] on Sep 7, 2008 10:45 AMIf I understood,
You can assign a NULL lov to an item
Set_Item_Property( ..., LOV_NAME, '' ) ;
or
IF case-a THEN
Show_LOV ('A');
ELSE
< NO LOV >
END IF;
Regards -
How do I removing a specific item from an Array?
Hi there.
I am having an array of movieclips and when my circle(controlled with the keyboard) hitTests true with one of the movieclips inside that array i want to remove that movieclip from the array so when i hitTest it again it returns false (I hitTest using a "for in" with that array).
How do i remove a specific item from within an array?
Can someone help me? Thanks a lot.i haven't noticed anyone showing deference because of the points. in fact, i've seen some people (a minority, to be sure) be just obnoxious about it. i never encountered that before: some people feel they have power because they can dole out points.
but overall i agree with you: the loss of the list of threads i am participating in, along with the most recent posters name, is a significant drawback of the new forums. and there's nothing new in these forums that offsets that drawback.
in addition, i think we've lost way more than 1/2 the older threads. that's a lot of information that's no longer available. -
How can I completely delete an app, so it won't even be listed in the app store under purchased items? And I will stop being prompted to make updates even though I've removed it from my iPad?
Once an app is deleted from an iOs device, you will no longer be prompted for updates. Update alerts only occur for apps curently installed.
Purchases can be hidden (but not completely deleted) from the purchased list, but only using itunes on a computer. -
Remove Powershell Pinned Item from taskbar for all users in 2008 R2 RDS server
Im trying to remove the Powershell Pinned Item from the taskbar on a 2008 RDS server. I have setup a mandatory porfile from a 2008 SP2 server (because you cannot do this in R2 any more), Check the default user pinned items folder, check the registry for powershell.exe, loaded up the NTUSER.DAT file for default to see if any thing obious was there, tried some logon scripts that are suppose to remove pinned items and posted on several forums. This has to be one of the simplest dumb things i have ever worked on , and its been about a week. So how do i remove it?
P.S.
having the user click un pinn is not a solution
yes i have checked C:\Users\Default\AppData\Roaming\Microsoft\Internet Explorer\Quick LaunchHi Jeramy,
The default pinned items are created the first time a user logs in. Modifying the default user profile won’t help here.
The easiest option is to set the “Remove pinned programs from the Taskbar” to disable taskbar pinned items altogether. The default pinned items won’t show up, but the user won’t be able to pin anything else either.
If you don't want to disable pinning altogether the solution is a little more complicated. One option is to remove the shortcuts “Accessories\Windows PowerShell\Windows PowerShell.lnk” and “Administrative Tools\Server Manager.lnk” from the common start menu folder. These shortcuts are copied to create the pinned items. If they aren’t present they can’t be pinned. This is not a supported option but it may work.
Another option is to use IStartMenuPinnedList::RemoveFromList in a first run script to remove the pinned items. Not sure how reliable this would be due to the timing of when the default items are added compared to when the script would run.
One other option is to use shell scripting to invoke the pin & unpin verbs on items:
http://blogs.technet.com/deploymentguys/archive/2009/04/08/pin-items-to-the-start-menu-or-windows-7-taskbar-via-script.aspx
This would need to be done when the user first logs in (since unpinning default items in the default user profile won't affect each new user account), but it also need to be timed after Explorer sets up the default pinned items as explained above.
Hope one of these options work for you!
~Olga -
Hi!
I 've a report that does't make sense to use a date with All in the Page Item.
Can anybody tell me how can I remove <All> from the page item.
Thanks a lot,
LeilaHi Gianluca
You are right because I did not understand. Now I do and thanks for explaining otherwise I would have continued down that path for years. :-)
Ok, what you need to do is to create a new data type within your workbook, then more than likely in conjunction with one or more analytic functions, Discoverer will create the sub-totals and totals that you want.
Here is an example that may show the principle:
You can use calculations to create new data types within your worksheet. These new types only exist within the worksheet. You can apply sorts, totals and even base other calculations on these data types.
Example Data Type:
Let’s say we want to generate a new data type called Category, and this category has three values
High
Middle
Low
We want to analyze our sales and work out our top ranking customers, such that customers with:
Sales > 9,000,000 are High
Sales > 4,000,000 but < 9,000,000 are Middle
Sales < 4,000,000 are Low
Basic Requirement - Syntax:
IF Sales > 9,000,000
THEN HIGH
ELSE IF Sales > 4,000,000
THEN MIDDLE
ELSE LOW
Using a CASE statement, this translates into:
CASE WHEN Sales > 9,000,000 THEN ‘High’
WHEN Sales > 4,000,000 THEN ‘Middle’
ELSE ‘Low’
END
Here's an example using DECODE:
You have been asked to create a report that combines the sizes Small and Mini into a new category called Tiny so that we report
Large
Medium
Tiny – combined Small and Mini
Basic Syntax:
IF Product Size = SMALL
THEN Type = TINY
ELSE IF Product Size = MINI
THEN Type = TINY
ELSE Type = Product Size
Using a DECODE statement this translates into:
DECODE (Size, ‘SMALL’, ‘TINY’, ‘MINI’, ‘TINY’, Size)
Best wishes
Michael -
Is it possible to remove properties from a dynamic class?
I have a dynamic ActionScript Class that is used to send
parameters to a WebService. Some of these parameters are always
present, so they are public properties of the Class:
package
[Bindable]
public dynamic class WebServiceCriteria
public var property1:int;
public var property2:String;
public var property3:String;
public var property4:String;
But, I am also adding properties at runtime that can change
over time:
criteria.runTimeProperty = "1";
I'm not very familiar with using dynamic classes, so I was
wondering if it is possible to "remove" the new property. Let's say
the next time I call the WebService I don't want that property sent
- not even as a null. How can I remove it from the Class instance
without creating a new instance each time?Hi,
Please try delete criteria.runTimeProperty. Please find more
details on the delete operator at the URL below.
http://livedocs.adobe.com/flex/3/langref/operators.html#delete
Hope this helps. -
Why can't I remove attachments from emails in the Sent items folder?
I Recently upgraded from Snow Leopard to Lion, and so far, there are at least a couple of things that puzzle me.
One is that now I don't have the option to "Remove Attachments" from emails in the sent items folder. It seems to work normally
in the Inbox and Drafts folders, but not in the Sent items. Go figure ???
Another thing that bothers me is that in Preview, when I save a screen shot, or a scan, etc., I no longer have the option of saving it as a GIF
(which, when better quality isn't absolutely necessary, is often much lower in KB or MB than a PNG or JPG, etc.. When I store lots of things as such images, I'd rather have that option.
Any suggestions will be appreciated.I have now created a smart mailbox as described above (good idea), and although I have some 50 messages in my Sent box, all with attachments (waiting to be removed so I can store the messages in the proper mailboxes), the smart mailbox is empty. So, Mail doesn't recognise these messages as containing attachments.
This led me to think that maybe Mail has been redesigned to work the way you would expect it to, at last; to contain a link to attachments instead of including them in all their bits and bytes. That would mean that the messages in my Sent box - with attachments - could be stored in local (or server-side) mailboxes without taking up extensive space.
But then I checked the size of my Sent Messages folder inside the Mail Folder in Finder, and - whoops - it's 50+ MB. So the sent messages do contain attachments all right. And Mail doesn't recognise these, since a) the smart mailbox trick says that the messages are free from attachments, and b) the Remove Attachments menu option is disabled.
I will have to wait for the next Mail update, and my Sent box will grow accordingly ... -
Remove default pinned items from taskbar with gpo/p
I have created a custom windows 7 pro image through audit mode and then sysprepped it. Upon new user login, I notice that the three default taskbar items (IE, WMP, Explorer) are still there. How can I get rid of these with a gpo/p?
And yes, the CopyProfile tag is set to true in my sysprep.xml file.
Thank you.Hi,
As far as I know, there is a Group Policy setting to change the Pin behavior.
User Configuration\Administrative Templates\Start Menu and Taskbar\Remove pinned programs from the taskbar
The pinned item information are saved in the following locations:
File System:
%APPDATA%\\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
Registry:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband]
Hope this helps. Thanks.
Dale
No Dale, that does not help me. If I enable that gpo, it will prevent users from pinning items to the taskbar, we need our users to have that ability.
And if you delete the .lnk files from
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband]
it does not remove them from the taskbar, actually all it does is make it an unusable shortcut with no target.
And there is nothing in that registry key that is useful.
Any other suggestions? -
Alas, I updated to Lion and need to remove Appleworks from laptop. I am putting items onto a CD so I may be able to work on a Leopard machine.What, besides the application (folder) else do I need to remove to the CD?
(user)/Documents/AppleWorks 6 Button Bars (this is no longer used) and Appleworks User Data
(user)/Library/Preferences/Appleworks (folder) -
How to set lov criteria item dynamically
Hi,
pl let me know how can we set the lov criteria item programatically.
i have 2 lov's.if the 1st lov has a null value then 2nd lov shud have a null value.
but if 1st lov has a value then 2nd lov has to populate values based on the value in the 1st.
pl do help me
thanksHi,
Can you check the OAMessageLovInput
s addLovRelations api.
Eg.
OAMessageLovInputBean mlib =(OAMessageLovInputBean)webBean.findChildRecursive("id of lov");
mlib.addLovRelations(pageContext, "inputTest", // base page item
"Empname", // lov item
LOV_RESULT, // direction
LOV_REQUIRED_NO);
mlib.addLovRelations(pageContext, "inputTest", // base page item
"Empname", // lov item
LOV_CRITERIA, // direction
LOV_REQUIRED_NO); // Enable Look
Thanks.
With Regards,
Kali.
OSSI. -
How to create a condition based on a select that retrieve dynamically a LOV
Hi all, I need to create a condition based on a select that retrieve dynamically a LOV.
So, the condition have to be:
inventory_item_id NOT IN (SELECT inventory_item_id FROM apps.mtl_system_items_kfv WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV')
I need to create a LOV based on this select without making any join with the folder which contains the field inventory_item_id, because otherwise I have the contradiction:
and o124757.INVENTORY_ITEM_ID = o118741.INVENTORY_ITEM_ID -- join between the main custom folder (o118741) and the LOV custom folder (o124757)
and o118741.INVENTORY_ITEM_ID NOT IN (o124757.INVENTORY_ITEM_ID) -- condition
These two condition together don't show any data, obviously....This means also, that I can't use a calculated field, because if I want to see this field, I have to create a join, another time, with the main custom folder.
I tried to create a LOV on the Administrator, but when I create the condition I have to check manually the values....and if in the future this LOV will increase I need every time to re-check all the values.....instead I need that the inventory_item_id have to be NOT IN dinamically in the list of values retrieved by the select.
Anybody has inplemented something similar ??
Thanks in advance
AlexHi alex,
SELECT incidents.INVENTORY_ITEM_ID,
pcodes.PROBLEM_NAME
FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
WHERE incidents.category_id IN (SELECT category_id
FROM mtl_categories_kfv
WHERE concatenated_segments = 'IPTV')
AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
where incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
FROM apps.mtl_system_items_kfv
WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
You want to add this condition to the first query it holds good for this scenerio.All the items which are NOT IN will be retrieved.Here you are selecting other than "General_faults_iptv"
But again your trying to select in the second query where you want "General_faults_iptv"
SELECT inventory_item_id
FROM apps.mtl_system_items_kfv
WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
If you carefully go through what your doing,you will understand.In the above explantion ,there will be no records generated.First query your saying NOT IN and again your saying for the same IN,how will records retrieve its meaningless.
I dont know what you want to get from second query.I would suggest you to do is dont use the second query and just use the first query and you will get.Here is the query and this will give you result.
SELECT incidents.INVENTORY_ITEM_ID,
pcodes.PROBLEM_NAME
FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
WHERE incidents.category_id IN (SELECT category_id
FROM mtl_categories_kfv
WHERE concatenated_segments = 'IPTV')
AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
AND incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
FROM apps.mtl_system_items_kfv
WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
Regards,
Kranthi. -
Dymanic parameter with LOV from command demanding a parameter
Hello,
I have a problem with creating dynamic parameters. I use different query to form list of values for the main query parameter. Let's say this parameter is manufacturer_name, so I'm selecting distinct manufacturer_name values from some table. But every time I run this report I want report to promt me with parameter (some special tag) for select some filtered manufacturers. But when I create LOV query with parameter (tag), report keeps asking me for this parameter forever and never gets to show parameter promt for the main query with LOV from the first one. Am I doing something wrong or what I want is just not possible?
Thanks
gemiYou might have given a default value to a main report command level parameter. Go to database expert in main report and edit the command level parameter and remove the default value in it.
and check the report.
Regards,
Raghavendra -
Hi,
Im creating a node and its attributes dynamically and binding it to a table to show a table dynamically. The problem is that when i load a new item, i have to rebuild the node and table because it might have different columns. The node allways has 3 fixed columns (id, name, description) so first i have to remove all of the attributes except the id, name and description. Same for the table columns. Can anyone tell me how to remove attributes from a node or how to differently solve my problem? All i see is how to remove an element but is a data right, not the model?
Much thanks,
Hugo HendriksHi,
I had a similar situation, where 2 table columns were always present, and the name and type of other columns were only available runtime.
I simply deleted all data (invalidate()) and recreated the context from scratch after each model execution that impacts the table structure.
Otherwise, use the API to find the right methods for deleting Nodes and Elements.
https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/index.html
Good luck,
Roelof
Maybe you are looking for
-
If i update my ipod will it delete all my music as it is from various computers?
I have a 32GB iPod touch and when I plug it into the computer, it says an update is available. I manually manage my music so that I can take music from my laptop and the other computers in my house as well. If I update my ipod to this newer version w
-
I have a couple of questions; 1) all of a sudden I cannot sync any music files. the BB software says " Music services failed to load, an unexpected error occurred" Could this have occurred when I took the 6.0 upgrade? How do I fix it? 2) I've read
-
Java.exe Error while running Tomcat
Hello, I encountered a very strange Java.exe error while testing my servlet. Here is the screen dump of the aforementioned error: http://www.shelleysauction.com/db07-22-02.jpg . The error's message is as follows: "There is no disk in the drive. Pleas
-
Retina Display..... or gaming PC?
Hi everyone, I'm in the market for a new computer, currently using my 27" iMac from 2009. What I purchased it in '09 I maxxed out all the specs to get the longest time out of it. 3 years later, that time has come. The time to upgrade. When the MBP w/
-
Someone know what is the meaning of the last numbers/letter on the /etc/release? Example: (I'm talking about the 07b) Solaris 10 10/08 s10s_u6wos_07b SPARC Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. A