Creating dynamic LOV in form builder 6i
Hi All,
I am new to form builder.
I want to create dynamic lov, means
Project type
Client
Work_type(thsi is also lov) ->> 1) Billable
Reason (this is also lov) ->> 1) Billable
Work_type(thsi is also lov) ->> 2) Non-Billable
Reason (this is also lov) ->> 1) Fresher
2) Project Manager
As shown above, Suppose the project type is client then I will select either "Billable" or "Non-Billable" value.
If I am selecting Work_type LOV as "Billable" then it should display "Billable" value in reason LOV
or if I am selecting Non-Billable value from Work_type LOV then reason LOV will display the list of value as Fresher and Project Manager.
Please help me, its very urgent.
Thanks in advance.
Regards,
Bluetooth
Bluetooth,
This can be accomplished by creating two seperate record groups; one for Billable and one for Non-Billable. Then - in the WORK_TYPE When-Validate-Item (WVI)trigger - when the value is "Billable" you assign the Billable Record Group to your LOV or if the value is Non-Billable, then you assign the Non-Billable record group to your LOV. Your Record Group queries must return the same number of columns and the column names must match. If your record groups need to have a different number of columns and column names, then I would just use two seperate LOV's and assign them to the item accordingly. For example:
/* Sample WVI trigger */
DECLARE
lov_id LOV;
item_id ITEM;
BEGIN
lov_id := Find_LOV('YOUR_LOV_NAME');
/* Option 1: Change Record Group of LOV */
IF ( :YOUR_BLOCK.WORK_TYPE = 'BILLABLE' ) THEN
IF ( Get_LOV_Property(lov_id, GROUP_NAME) != 'BILLABLE_RG' ) THEN
Set_LOV_Property(lov_id, GROUP_NAME, 'BILLABLE_RG');
END IF;
ELSIF ( :YOUR_BLOCK.WORK_TYPE = 'NONBILLABLE' ) THEN
IF ( Get_LOV_Property(lov_id, GROUP_NAME) != 'NONBILLABLE_RG' ) THEN
Set_LOV_Property(lov_id, GROUP_NAME, 'NONBILLABLE_RG');
END IF;
END IF;
item_id := Find_Item('YOUR_BLOCK.REASON');
/* Option 2: Seperate LOV's */
IF ( :YOUR_BLOCK.WORK_TYPE = 'BILLABLE' ) THEN
IF ( Get_Item_Property(item_id, LOV_NAME) != 'BILLABLE_LOV' ) THEN
Set_Item_Property(item_id, LOV_NAME, 'BILLABLE_LOV');
END IF;
ELSIF ( :YOUR_BLOCK.WORK_TYPE = 'NONBILLABLE' ) THEN
IF ( Get_Item_Property(item_id, LOV_NAME) != 'NONBILLABLE_LOV' ) THEN
Set_Item_Property(item_id, LOV_NAME, 'NONBILLABLE_LOV');
END IF;
END IF;Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.
Similar Messages
-
Dynamic SQL in Form Builder 6.0
Hai,
I would like to know how to create Dynamic SQL in Form Builder 6.0. I'am using oracle 9i database...Please help me.....I studied the EXEC_SQL and i wrote these syntax(below), but it gives me error...Could you help me please......:
PROCEDURE Dynamic_sql IS
connection_id EXEC_SQL.CONNTYPE;
cursorID EXEC_SQL.CURSTYPE;
sql_string VARCHAR2(1000);
v_pc varchar2 (4);
v_pd varchar2 (30);
v_poc varchar2(4);
v_pvd DATE;
v_pid DATE;
exec_id PLS_INTEGER;
out_file TEXT_IO.FILE_TYPE;
linebuf varchar2(7000);
vchFileName VARCHAR2(100);
Vchfolder VARCHAR2(100);
AppID PLS_INTEGER;
nmbAlert varchar2(50);
BEGIN
SET_APPLICATION_PROPERTY(CURSOR_STYLE,'BUSY');
vchFileName := 'dynamic_sql_'||sysdate||'.txt';
Vchfolder := 'D:\KONS\Damar\';
host('mkdir '||Vchfolder,NO_SCREEN);
out_file := text_io.fopen(vchfolder||vchFileName,'w');
TEXT_IO.PUT_LINE (out_file,'PRODUCT CODE PRODUCT DESC PRODUCT OBJECT CODE PRODUCT VALID DATE PRODUCT INVALID DATE ');
connection_id := EXEC_SQL.OPEN_CONNECTION('FIFDBA/F1FDBA@REPL_DAILY');
cursorID := EXEC_SQL.OPEN_CURSOR(connection_id);
sql_string := 'SELECT PROD_CODE, PROD_DESC, PROD_OBJT_CODE, PROD_VALID_DATE, PROD_INVALID_DATE
FROM HOUS_PRODUCT_TYPE ';
EXEC_SQL.PARSE(connection_id, cursorID, sql_string, exec_sql.V7);
--EXEC_SQL.BIND_VARIABLE(connection_id, cursorID, '', input_empno);
EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 1,v_pc, 4);
EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 2, v_pd, 30);
EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 3, v_poc, 4);
EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 4, v_pvd);
EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 5, v_pid);
exec_id := EXEC_SQL.EXECUTE(connection_id, cursorID);
WHILE (EXEC_SQL.FETCH_ROWS(connection_id, cursorID) > 0 ) LOOP
EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 1, v_pc, 4);
EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 2, v_pd);
EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 3, v_poc);
EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 4, v_pvd);
EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 5, v_pid);
TEXT_IO.PUT_LINE(out_file,v_pc || v_pd ||v_poc||v_pvd||v_pid);
--Forms_DDL('INSERT INTO TEMP VALUES('||''''||nRows||' '||v_state_id||''''||')');
--COMMIT_FORM();
END LOOP;
EXEC_SQL.CLOSE_CURSOR(connection_id, cursorID);
EXEC_SQL.CLOSE_CONNECTION(connection_id);
SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');
TEXT_IO.FCLOSE(out_FILE); -
Creating dynamic rating scale forms.
Hi everyone!
I was wondering if is possible to create dynamic rating scale forms.
For example:
I have a multiple choice field.
Red
Green
Blue
Yellow
After this field I have a rating scale form.
I'd like to create this rating scale only with the previous selected options in the multiple choice field.
For example if I select only Red and Green, the rating scale form will have only two questions (Red and Green) and not the other choices.
If I select Red, Green ane Blue the rating scale form will have three questions (Red, Green and Blue) and not the other choices.
Is this possible?
I have a Basic account if it could change something.
Thank you for the attention, have a nice day!
Andrea
Message was edited by: AndreaM7890Hi,
Dynamic rating scale fields as you described is not something we currently support but you can add or vote on feature ideas:
http://forums.adobe.com/community/formscentral?view=idea
If you need to add a new idea click "Create an idea" under "Actions" in the top right.
As a workaround you could manually create multiple rating scale fields associated with your specific choices and use skip logic rules to show the corresponding rating scale field. For example, a rating scale field associated with choiceA, another one associated with choiceB ..etc.
Thanks,
Lucia -
Hi Everybody,
I am making forms based on procedures in 9iAS Portal. I am using two parameters for the form. One is Item Code for which I am having a simple LOV with sql statement. Other LOV has a dynamic Sql statement which accepts the Item_code as parameter and displays records containing the item_code. When I run the Lov seperately through navigaror it runs properly but when I used the lov through form and passed the item_code to it, on runtime it says that the lov is based on dynamic sql and unable to show results.
Can anybody please help me out of this problem.
Thanks in advance
Warm Regards
Vivek BajajWhen I tried to compile the following code in Forms, the compiler error I got was Encountered the symbol "STMT_STR" when expecting one of the following: select. However, when I run it in SQLPlus, it creates the function without any errors.
FUNCTION my_func
return number
is
TYPE DiaryCurTyp IS REF CURSOR;
cur DiaryCurTyp;
stmt_str VARCHAR2(200);
dmonth NUMBER;
dday NUMBER;
BEGIN
stmt_str := 'SELECT dmonth, dday FROM p2_diary
WHERE dmonth = :1';
OPEN cur FOR stmt_str USING '12';
LOOP
FETCH cur INTO dmonth, dday;
EXIT WHEN cur%NOTFOUND;
-- <process data>
END LOOP;
CLOSE cur;
END; -
Creating tabs in XML Forms builder
hi all,
is there anyway we can create a form in xml forms builder with different tabs? would that require manual coding?
thanks!Hello Samer,
the XMLForms buidler does not support tabs.
Manual changes to the files created by the XMLForms build is not recommanded, because you would loose all your chance, if you make afterwards a change within the Forms builder.
Regards, Roland -
Create user from oracle form builder 10g
dear all,
anyone to help me? I want to try, to create a new user from form builder oracle 10g in windows, I use a default script like 'create user user_name identified 123' in toad 9.0 for oracle and the result is success but when I try to combine with form builder oracle 10g this script doesn't work...I hope somebody can help me to solve my problem..
thank you,,,
Dedy Prasetyo T.Dear Francois,,
I've tried the way you suggested and success. but how if I take the value of user_name and password from the data block to insert table dba_users ? would you like to help me?
regard,
Dedy P.T -
Create a front-end form builder
Does anyone know of a front-end form builder? The client wants to create custom forms for its employees, choosing input field types
Any short-cuts to developing this?am not a techie so cannot answer your question in earnst but I know exactly how youfel about e-rec looka nd feel so adding my two pence:
1. when discussing e-rec it is imp to mentione the version below version 6 it was bsp 6 onwardsit is webdynpro.
2. before we discuss code changes, what is the extent of 'look and feel' change your clientwants? can that be addresed via the portal-theme by way of developing a flashy new css based theme? thatmakes life easy for everybody involved and also makes the entire nw portal flasy not just the outward facing job portal... at a comparitively low cost...
3. If the answer to abovepoint is a 'no' I guess the only option is to go-a-code-dredging,..
good luck. -
Dynamic LOV on form in update mode
I have a link to a portal form that specifies the primary key as below:
Portal30.wwv_user_utilities.get_url(
'application.form_link',
'primary_id',to_char(id),
'_primary_id_cond','=');
This works well. I can access the form in update mode for the specified row. However, on the form I have 2 combo boxes: one is for make of vehicle and the other for model. The make combo box uses an lov derived from a simple table query. The model combo box is a dynamic lov using a query based upon the value of the model. When entering the form in update mode, it fails to set the make bind variable to anything, so the model is left blank with no options. How can I set the value of the make bind variable on the link so I can get the dynamic lov for the model to be populated correctly?
(I have already tried to add the model to the url link, to no avail).
nullHi noor,
When I click the link button I am opening the userdefined form and filling the corresponding document number details manually.
Do you mean, you're filling the form, field by field???
If so you're doing it wrong. That way the form has no connection to the correct Database record and cannot update it.
The correct way is as follows:
Put a DocEntry field in your form and bind it to the DocEntry database field.
Set this field to NOT Visible by default.
When a user clicks the LinkButton, you change the form mode to FindMode, make the DocEntry field visible use the oForm.Items.Item("DocEntry").Specific.Value = "" method to set the correct value to the field (use the DocEntry number NOT the DocNum) and use the oForm.Items.Item("1").Click() to open the correct record.
Then the user can change the value it needs without errors.
Best Regards,
Vítor Vieira -
Problem with dynamic query in Forms Builder
Hi,
I need in forms builder cursor in procedure which parameter is a whole query. But i stuck when i wanna give some text in signs '' to procedure.
I wanna give like test('select ' ||'test' || ' from dual');
But this is not good beacuse it is missing ''.
Query which procedure get is select test from dual.
The right sql would be select 'test' from dual.
How could i pass signs '' to procedure.
Any ideas.
Thanks in advance.test('select ''' ||'test' || ''' from dual');Francois
-
Dynamic images in Form Builder?
Any idea about including images dynamically?
An example: how to print a form with the photo of the involved employee?
Images could be available via http...
Thanks a lot1. I've a requirement to display dynamic image in a Adobe form.
Could you please let me know how this can be done?
2. When I click on UPL field it says I need to create a connection to the
http://<app server>:8005/sap/bc/fp/.
How do I create this connection?
3. I don't have access to any documentatuin on designing Adobe form except the on-line help from the designer. Can you please suggest where can I get documentation about designing Adobe forms? -
How to create dynamic LOV in a page
Hi,
I am trying to create a cascading selection feature in a page.
That is:
Suppose I have a data in Oct. Nov. DEC. in 1998, May, June, July, August in 1999, and Sep. Oct, Nov. in 2000, Jan., Feb., Mar., in 2001.
If I choose 2000 in the first selection box then in the second selection box(month box) will show only Sep., Oct., Nov.,. I could create this feature with select and redirect with selection box.
However I want to create one with Multi_selection box.
Does anyone knows how to create one with multi selection box or check box?
Thanks,
Message was edited by:
user459223Hi
Sorry Could not understand ur problem exactly.
Anyhow a solution for ur problem is to use a select list with submit option for the first select list.
for second select list in the LOV part write the query with the where clause:
where a = :b(where b is the first select list)
try it
regards
ameya -
Hi,
How can i move the LOV item up/down with the help of mouse roller.Bluetooth,
This can be accomplished by creating two seperate record groups; one for Billable and one for Non-Billable. Then - in the WORK_TYPE When-Validate-Item (WVI)trigger - when the value is "Billable" you assign the Billable Record Group to your LOV or if the value is Non-Billable, then you assign the Non-Billable record group to your LOV. Your Record Group queries must return the same number of columns and the column names must match. If your record groups need to have a different number of columns and column names, then I would just use two seperate LOV's and assign them to the item accordingly. For example:
/* Sample WVI trigger */
DECLARE
lov_id LOV;
item_id ITEM;
BEGIN
lov_id := Find_LOV('YOUR_LOV_NAME');
/* Option 1: Change Record Group of LOV */
IF ( :YOUR_BLOCK.WORK_TYPE = 'BILLABLE' ) THEN
IF ( Get_LOV_Property(lov_id, GROUP_NAME) != 'BILLABLE_RG' ) THEN
Set_LOV_Property(lov_id, GROUP_NAME, 'BILLABLE_RG');
END IF;
ELSIF ( :YOUR_BLOCK.WORK_TYPE = 'NONBILLABLE' ) THEN
IF ( Get_LOV_Property(lov_id, GROUP_NAME) != 'NONBILLABLE_RG' ) THEN
Set_LOV_Property(lov_id, GROUP_NAME, 'NONBILLABLE_RG');
END IF;
END IF;
item_id := Find_Item('YOUR_BLOCK.REASON');
/* Option 2: Seperate LOV's */
IF ( :YOUR_BLOCK.WORK_TYPE = 'BILLABLE' ) THEN
IF ( Get_Item_Property(item_id, LOV_NAME) != 'BILLABLE_LOV' ) THEN
Set_Item_Property(item_id, LOV_NAME, 'BILLABLE_LOV');
END IF;
ELSIF ( :YOUR_BLOCK.WORK_TYPE = 'NONBILLABLE' ) THEN
IF ( Get_Item_Property(item_id, LOV_NAME) != 'NONBILLABLE_LOV' ) THEN
Set_Item_Property(item_id, LOV_NAME, 'NONBILLABLE_LOV');
END IF;
END IF;Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Hi All.
I have requirement like
In advance table I have a pick list (Type) which contains 3 values.
1) Item
2) category
3) All
If I select Type as "Item" My Item LOV should display Items and Description else If I select "Category" It should display Category and description else If I select All It should Display All.
How can i Implement this.
Please any one suggest.
Thanks,Hi,
Create three different LOVs as per the requirement. By default renderend property of all the LOVS will be false. Now depending on the value selected in the poplist you make the redered the true for the appropriate LOV.
HTH,
Syed. -
Error in news created in XML Form Builder
Dear Experts
I have created news in XML Form builder (three forms edit, rendered list and show). Created two iviews NewsExplorer and NewsBrowser.I have exposed these iviews for relevent users. Now the problem is the edit for and the show form of the XML news is not working for few users. While opening the edit form and show form for few users it is giving the below portal runtime message.
BEGINING OF ERROR MESSAGE----
Access denied (Object(s): com.sap.portal.system/security/sap.com/NetWeaver.KMC/low_safety/com.sap.km.cm/components/xmlformpreview).
END OF ERROR MESSAGE----
Appreciate your response.
Regards
Shanmukha Rao BanisettiTry adding everyone group to the low_safety security zone...
-
"Xml Form" Created with Form Builder in a CO
Is it possible to assign a "XML FORM" created with the tool Form Builder of Portal, and assign it to a CO?
Regards
David
Message was edited by:
David ValenzuelaIs it possible to assign a "XML FORM" created with the tool Form Builder of Portal, and assign it to a CO?
Regards
David
Message was edited by:
David Valenzuela
Maybe you are looking for
-
Device syncing, multiple Windows users accounts
I have an old iPod, an iPhone, and an iPad. I've been using only 1 account on my computer for a while now, but I recently went to 2 accounts with another computer. Both accounts are usually signed in at the same time. However, when I try to plug in a
-
Multiple values in subreport? How to put SQL logic into Formula editor
Hi I am passing a id from main report to sub report. Based on this id i display a field in the sub report. The field can have multiple values. The issue i am having is in the sub report only 1 value is displayed. I might be missing some link Below is
-
My "other" in my itunes in over 12GB, I have restored my phone but encountered the same problem. What should i do?
-
Authorization BI 2004s : restricting access to infoproviders in multi prov
Hi I have a multiprovider that contains 5 DSOs. Is there a way I can setup security such that user 1 has access to all 5 DSOs, however user 2 has access to only 2 DSOs. Thus, when user 1 runs a report off the multiprovider, they will have access to d
-
I cannot transfer my photos from the iphone to may mac using streaming, only by cable. I made all the installs in my mac and my iphone and it doesn't work.