Creating dynamic form data with SetValue QPAC
I'm creating form data in a workflow process, and using it to populate a dynamic XDP with a subform. In my test form, the subform is named "Item", with a text field named "ItemData". Initially, I can create the form field via the SetValue QPAC and using these parameters;
location: /process_data/form/form-data/data/xdp/datasets/data/fields/Item/ItemData
value: "first"
However, I need to add multiple instances of the Item subform. For example, if I fill out the test form with 3 items and export the data to XML, the data structure comes out like this:
first
second
third
So, the question is, how do I use the SetValue QPAC to create multiple instances of the items? I've tried various locations;
/process_data/form/form-data/data/xdp/datasets/data/fields/Item.x/ItemData
/process_data/form/form-data/data/xdp/datasets/data/fields/Item[x]/ItemData
/process_data/form/form-data/data/xdp/datasets/data/fields/Item/ItemData.x
but none of them seem to work. I know I'm probably just missing something simple. Anybody care to fill me in on the obvious?
Hi Clifton
Looking back on this thread, I think you're saying that the data is eventually going to come from a MySQL database.
In that case, our SQLPlus QPAC will do the job perfectly.
You just specify the query, specify the repeating element:
/process_data/form/form-data/data/xdp/datasets/data/fields/Item
and then map columns in the result set to sub-element of the Item.
eg mycolumn -> ItemData
The SQLPlus qpac will create all the repeating items for you.
Does this work for you?
If not, please specify what you'd like to see.
A couple of options are:
- A setValue qpac that correctly inserts for expressions like: process_data/form/form-data/data/xdp/datasets/data/fields/Item[2] (probably difficult to do)
- An InsertSequence qpac that takes a repeating element and a count as an input, and creates that many repeating elements. You could then refer to them using the regular SetValue qpac. (Probably easier to do.)
- Something else. Go wild :-)
Howard
Similar Messages
-
Creating Dynamic Internal table with a dynamic name
Hi,
I want to create dynamic internal tables with dynamic names.
For example:
Suppose I have a table with three fields.
1. Structure name
2.Fields
3.file
And the structure of the internal table is as follows:
TYPES:BEGIN OF table_type,
struct TYPE char70,
fields TYPE tt_type OCCURS 0,
File TYPE ttab_type OCCURS 0,
END OF table_type.
Suppose I have one record inside my internal table with struct as "STRUCTURE", fields have an internal table content of set of fields and File has some set of records.
Now I want to create dynamic internal table whose name will be "STRUCTURE" , the fields of the dynamic internal table structure[] will be as in fields, and the records will be as in File.
Like this if i have 100 records in my internal table then I have to create 100 dynamic internal table dynamically.
Can anyone suggest how to do this?
Edited by: Jjammy on Jul 22, 2009 7:52 AMHi,
Check the sample program and develop your program accordingly.
<font color=blue><pre>
REPORT ztest_notepad.
*& Declarations
*Type-pools
TYPE-POOLS:
slis.
*Types
TYPES:
ty_fcat TYPE lvc_s_fcat,
ty_fcatalog TYPE slis_fieldcat_alv.
*Work areas
DATA:
wa_fcat TYPE ty_fcat,
wa_fcatalog TYPE ty_fcatalog.
*Internal tables
DATA:
it_fcat TYPE STANDARD TABLE OF ty_fcat,
it_fcatalog TYPE STANDARD TABLE OF ty_fcatalog.
*Type reference
DATA:
it_dyn_tab TYPE REF TO data,
wa_newline TYPE REF TO data.
*Filed symbols
FIELD-SYMBOLS:
<gt_table> TYPE STANDARD TABLE,
<fs_dyntable>,
<fs_fldval> TYPE ANY,
<l_field> TYPE ANY.
*Variables
DATA:
l_fieldname TYPE lvc_s_fcat-fieldname,
l_tabname TYPE lvc_s_fcat-tabname,
l_fieldtext TYPE lvc_s_fcat-seltext,
l_index TYPE char2.
"Selection-screen
PARAMETERS:
p_colms TYPE i.
*& start-of-selection.
START-OF-SELECTION.
PERFORM build_fieldcat.
PERFORM create_dynamic_table.
DO 20 TIMES.
DO p_colms TIMES.
l_index = sy-index.
CONCATENATE 'FIELD' l_index INTO l_fieldname.
ASSIGN COMPONENT l_fieldname OF STRUCTURE <fs_dyntable> TO <l_field>.
<l_field> = sy-index.
ENDDO.
INSERT <fs_dyntable> INTO TABLE <gt_table>.
ENDDO.
LOOP AT it_fcat INTO wa_fcat.
PERFORM fieldcatalog1 USING: wa_fcat-fieldname
wa_fcat-tabname
wa_fcat-seltext.
ENDLOOP.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = 'ZTEST_NOTEPAD'
it_fieldcat = it_fcatalog
TABLES
t_outtab = <gt_table>.
*& Form BUILD_FIELDCAT
FORM build_fieldcat .
CLEAR: l_fieldname,
l_tabname,
l_fieldtext,
l_index.
DO p_colms TIMES.
CLEAR l_index.
l_index = sy-index.
CONCATENATE 'FIELD' l_index INTO l_fieldname.
CONCATENATE 'Field' l_index INTO l_fieldtext.
l_tabname = '<GT_TABLE>'.
PERFORM fieldcatalog USING: l_fieldname
l_tabname
l_fieldtext.
ENDDO.
ENDFORM. " BUILD_FIELDCAT
*& Form CREATE_DYNAMIC_TABLE
FORM create_dynamic_table .
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fcat
IMPORTING
ep_table = it_dyn_tab.
ASSIGN it_dyn_tab->* TO <gt_table>.
Create dynamic work area and assign to FS
CREATE DATA wa_newline LIKE LINE OF <gt_table>.
ASSIGN wa_newline->* TO <fs_dyntable>.
ENDFORM. " CREATE_DYNAMIC_TABLE
*& Form FIELDCATALOG
FORM fieldcatalog USING field table f_txt.
wa_fcat-fieldname = field.
wa_fcat-tabname = table.
wa_fcat-seltext = f_txt.
APPEND wa_fcat TO it_fcat.
CLEAR wa_fcat.
ENDFORM. " FIELDCATALOG
*& Form FIELDCATALOG1
FORM fieldcatalog1 USING field table f_txt.
wa_fcatalog-fieldname = field.
wa_fcatalog-tabname = table.
wa_fcatalog-seltext_m = f_txt.
APPEND wa_fcatalog TO it_fcatalog.
CLEAR wa_fcatalog.
ENDFORM. " FIELDCATALOG1 </pre>
</font>
Thanks
Venkat.O -
Can we create Interactive forms only with ABAP & without using GP, or Java
Hi,
I would like to know if we can create Interactive forms only with ABAP & without using GP or Java. We want to develop an offline solution using Interactive forms, but would like to use only ABAP for creating the forms. All the documents so far either refer to creating the forms, in reference to / in sync with: ISR (Service Requests), GP (General Procedures) or Java. Can this be done with ABAP alone?
Regards,
Ramesh
Edited by: Ramesh Nallabelli on Apr 16, 2008 12:02 AMHello Ramesh,
You should be able to create Adobe Interactive Forms using only the ABAP stack (without GP, Java, etc). Please refer to the thread below. Hope it helps.
Re: help for-offline interactive forms based on sending receiving mails in ABAP
Regards,
Rao -
How to create dynamic connection string with variables using ssis.
Hello,
Can anyone let me know on how to create dynamic connection string with variables using ssis?
Any help would be appreciated.Hi vinay9738,
According to your description, you want to connect multiple database from multiple servers using dynamic connection.
If in this case, we can create a Table in our local database (whatever DB we want) and load all the connection strings. We can use Execute SQL Task to query all the connection strings and store the result-set in a variable of object type in SSIS package.
Then use ForEach Loop container to shred the content of the object variable and iterate through each of the connection strings. And then Place an Execute SQL task inside ForEach Loop container with the SQL statements we have to run in all the DB instances.
For more details, please refer to the following blog:
http://sql-developers.blogspot.kr/2010/07/dynamic-database-connection-using-ssis.html
If there are any other questions, please feel free to let me know.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Can't create dynamic html elements with jsp????? important
Hi All,
I am having problem creating dynamic html elements with jsp tags, i have tried to use EL and java scriplet, both of them don't work.
i am trying to create dynamic menu in my "rightMenu.jspf", based on, if user has logged in or not.
some like this!
<jsp:if test ="${validUser == null}">
some simple text menu here
</jsp:if>
but it is not working. it simply loading all and images with in statement, regardless of whether user has logged in or not. i think some how if statement is not working properly.
"validUser" is a session bean, which is not creating at this point, it will created when user will log in successfully. and also this session bean does not exist at the page, where i am trying to check that .
Is there any way to create dynamic values in jsp. It is really important, is there any body who help me in this matter. i would be really grateful.
zamanhi jaspre,
thanks for replying me. you know what, is it not something wrong with web.xml file. i remember once, i deleted some from there, a property with "*.jsp". i can't remember what exactly was it though.
all if statements works on files ending with extension ".jsp" but don't work only on with extension ".jspf". there must be to do with this.
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>ValidateServlet</servlet-name>
<servlet-class>ValidateServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ValidateServlet</servlet-name>
<url-pattern>/ValidateServlet</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>pollAndCometEnabled</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
main.jsp
</welcome-file>
</welcome-file-list>
</web-app>
if any one can figure it out. i would be grateful.
zaman -
My dynamic form - issue with saving data (urgent-i would greatly appreciate any help)
Hello,
I have some problems with this dynamic form (created in livecycle) http://www.pathology.ubc.ca/Academic_Activity_Data_Form_Jan_4_2013.pdf . It doesn't save data unless I add a' new row' to any of these tables. There are a few text fileds and if I type anything in there data won't be saved unless I trigger it by adding randomly a table row. This is big problem as this form will be used for updates and if I want to change any of my entered records I will always have to remember to 'add a new row' otherwise just adding/changing text won't be saved. This might sound confusing but you will understanding what is going on if you type in your name and save the form and then type in your name, add a table row and save the form (first case won't be saved second will).
I would greatly appreciate any help.
DebbieHi Marco Russo ,
= CALCULATE (
SUM ( [measure] ),
PARALLELPERIOD (
SAMEPERIODLASTYEAR ( DateTime[DateKey] ),
0,
QUARTER
I have used the above DAX function it is working fine and i have applied same for Year , Quarter and Month
But when i remove month filters (Slicer) and Year filters in Power view report
it is showing total Year values for Year and Quarter values
for Quarter etc..
Like below i am getting
Last Yr Month Amt Current Yr Month Amt Last Yr Qtr Amt Current Yr Qtr Amt Last Yr Current Yr
10000 30000 10000 30000
30000 30000
but i need Blanks in report if i am not selecting any filters
thanks,
Sreeni -
How to Create Dynamic form using table data
Dear All,
I have one Table called PRODUCT_MASTER where product details are stored. Say product A,B,C,D are stored in the table. Another table called SUB_PRODUCT_MASTER, which contains sub product details.Say A1,A1,B1,B2, B3,C1, C2, C3, D1,D2,D3.
Now, I want to create a dynamic form based on product,sub product. for a whole month. For better under standing here is the format.
PRODUCT A B C D
SUB_PROD A1 A2 B1 B2 B3 C1 C2 C3 D1 D2 D3
Days
1 x x x x x x x x
2
3
4
5
6
7
Now whenever I add one row in the PRODUCT)MASTER table and SUB_PRODUCT_MASTER table, Form should add one column in the form automatically. e.g. If I add Product E with two Sub product E1 and E2 then form should add ptoduct E column in the form with sub products E1 and E2 as per above format. Here days are fixed to 31. This forms should accept product wise daily despatch entry. For
storing despatch entry another table is created.
Please help to create this type od forms.You want I believe to create Croos-Table(Matrix) form. Visit Cross-table (matrix) forms layout and add "Please Send me too".
-
Apps included with Creative Cloud for creating dynamic forms
Do any of the creative cloud applications help you to write script for dynamic forms?
Hi Steven,
LiveCycle Designer comes bundled with Acrobat X Pro. It can be used for this purpose I believe. So you might want to hold off from upgrading to Acrobat XI. I'd recommend posting more details about what you are wanting to do here to confirm:
http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es/livecycle_designer_es_faq
-Dave -
How to create Dynamic internal table with columns also created dynamically.
Hi All,
Any info on how to create a dynamic internal table along with columns(fields) also to be created dynamically.
My requirement is ..On the selection screen I enter the number of fields to be in the internal table which gets created dynamically.
I had gone thru some posts on dynamic table creation,but could'nt find any on the dynamic field creation.
Any suggestions pls?
Thanks
NaraI don't understand ...
something like that ?
* Form P_MODIFY_HEADER. *
form p_modify_header.
data : is_fieldcatalog type lvc_s_fcat ,
v_count(2) type n ,
v_date type d ,
v_buff(30).
* Update the fieldcatalog.
loop at it_fieldcatalog into is_fieldcatalog.
check is_fieldcatalog-fieldname+0(3) eq 'ABS' or
is_fieldcatalog-fieldname+0(3) eq 'VAL' .
move : is_fieldcatalog-fieldname+3(2) to v_count ,
p_perb2+5(2) to v_date+4(2) ,
p_perb2+0(4) to v_date+0(4) ,
'01' to v_date+6(2) .
v_count = v_count - 1.
call function 'RE_ADD_MONTH_TO_DATE'
exporting
months = v_count
olddate = v_date
importing
newdate = v_date.
if is_fieldcatalog-fieldname+0(3) eq 'ABS'.
concatenate 'Quantité 0'
v_date+4(2)
v_date+0(4)
into v_buff.
else.
concatenate 'Montant 0'
v_date+4(2)
v_date+0(4)
into v_buff.
endif.
move : v_buff to is_fieldcatalog-scrtext_s ,
v_buff to is_fieldcatalog-scrtext_m ,
v_buff to is_fieldcatalog-scrtext_l ,
v_buff to is_fieldcatalog-reptext .
modify it_fieldcatalog from is_fieldcatalog.
endloop.
* Modify the fieldcatalog.
call method obj_grid->set_frontend_fieldcatalog
exporting it_fieldcatalog = it_fieldcatalog.
* Refresh the display of the grid.
call method obj_grid->refresh_table_display.
endform. " P_MODIFY_HEADER -
How to creater dynamic form in Acrobat 9
Can I make a form that will dynamically add pages (with header and footer) when needed in Adobe Acrobat 9 and if so where is the best documentation on how to do this?
You can dynamically add pages using templates. This requires some relatively simple JavaScript programming. It will work in Acrobat (Pro or Standard) and Reader 11 (Win/mac), but not previous versions of Reader. Here are some links to the Acrobat javaScript reference:
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_Dev_Templates.80.1.html
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_Dev_Templates.80.2.html
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.1216.html
If you don't get a two-paned window with the navigation pane on the left, click "Show Navigation" icon in the upper-left.
If it has to work with previous versions for Reader, Acrobat 9 Pro for Windows comes with the LiveCycle Designer application. With it you can create dynamic XFA forms that can work with Reader. -
Creating dynamic internal table with deep structure
Hi all,
I need to create an internal table with deep structure dynamically. I've already created tables with method 'create_dynamic_table' but I'm struggling with the deep structure.
I would need an internal table with the following structure:
DATA: BEGIN OF lt_t1,
s1 TYPE REF TO data,
s2 TYPE REF TO data,
END OF lt_t1.
S1 and S2 have to be tables.
It might be possible with RTTS but all the examples in the forums (that I've found so far) are related to at least one DDIC-structure. And that's my problem because both tables are created during runtime.
Thank you in advance
NicolaHi Frédéric,
I hope my english is good enough to explain it correctly:
We use a function builder for SEM-BPS which copies data from one Cube to another. This Cube is transactional, so you can't easily read a structure out of DDIC.
The export parameter of this function builder is a table with type 'any table'.
Until today we used a fixed definition e.g.:
TYPES:
BEGIN OF xtyp_chas,
/sie/sr_ocomp TYPE /b52/oisr_ocomp,
/sie/ts_03psp TYPE /b52/oits_03psp,
0activity TYPE /bi0/oiactivity,
0acty_elemt TYPE /bi0/oiacty_elemt,
0costelmnt TYPE /bi0/oicostelmnt,
0co_area TYPE /bi0/oico_area,
0creditor TYPE /bi0/oicreditor,
0currency TYPE /bi0/oicurrency,
0curtype TYPE /bi0/oicurtype,
0db_cr_ind TYPE /bi0/oidb_cr_ind,
0fiscper TYPE /bi0/oifiscper,
0fiscper3 TYPE /bi0/oifiscper3,
0fiscyear TYPE /bi0/oifiscyear,
0metype TYPE /bi0/oimetype,
0network TYPE /bi0/oinetwork,
0part_actty TYPE /bi0/oipart_actty,
0part_cctr TYPE /bi0/oipart_cctr,
0piobjsv TYPE /bi0/oipiobjsv,
0project TYPE /bi0/oiproject,
0unit TYPE /bi0/oiunit,
0vtdetail TYPE /bi0/oivtdetail,
0vtstat TYPE /bi0/oivtstat,
0vtype TYPE /bi0/oivtype,
0bus_area TYPE /bi0/oibus_area,
0cashdetail TYPE /bi0/oicashdetail,
0cashtype TYPE /bi0/oicashtype,
0comp_code TYPE /bi0/oicomp_code,
0coorder TYPE /bi0/oicoorder,
0cs_dimen TYPE /bi0/oics_dimen,
0cs_unit TYPE /bi0/oics_unit,
0int_bus TYPE /bi0/oiint_bus,
0part_abcpr TYPE /bi0/oipart_abcpr,
0part_coord TYPE /bi0/oipart_coord,
0part_wbsel TYPE /bi0/oipart_wbsel,
0piovalue TYPE /bi0/oipiovalue,
0profit_ctr TYPE /bi0/oiprofit_ctr,
0ps_obj TYPE /bi0/oips_obj,
0statussys0 TYPE /bi0/oistatussys0,
zfbwheroj TYPE /bic/oizfbwheroj,
END OF xtyp_chas,
BEGIN OF xtyp_kyfs,
0amount TYPE /bi0/oiamount,
0quantity TYPE /bi0/oiquantity,
zf03oaws TYPE /bic/oizf03oaws,
zf03oqty TYPE /bic/oizf03oqty,
zf03ozsta TYPE /bic/oizf03ozsta,
END OF xtyp_kyfs,
BEGIN OF xtyp_zf03g003,
s_chas TYPE xtyp_chas,
s_kyfs TYPE xtyp_kyfs,
END OF xtyp_zf03g003,
xtyp_zf03g003_t TYPE HASHED TABLE OF xtyp_zf03g003
WITH UNIQUE KEY s_chas.
DATA: lt_ibm_data TYPE xtyp_zf03g003_t,
ls_ibm_data TYPE xtyp_zf03g003.
So one table (s_chas) contains the characteristics of the Cube and the other (s_kyfs) contains the keyfigures. That's exactly the format we need for the export parameter. At the end of the program, we use the following coding to fill the export table (eto_chas):
loop at lt_ibm_data into ls_ibm_data.
collect ls_ibm_data-s_chas into eto_chas.
endloop.
So in this moment I give this table the structure that is needed to move the data into the cube. I can't change the requirement because it is a standard interface.
I would like to change that coding to be dynamically. Because if somebody changes a charasteristic or a keyfigure in the cube, we would have to change the function builder too. I don't think that the SEM-BPS department will let us know every time they've changed something anyway.
So I hope that my explanation wasn't too confusing
Nicola -
How I can create dynamically-formed requests or use native SQL in EJB?
Hi all.
I'm working around modify an example from NetWeaver Developer Studio (CarRental). I want to get ordered data from table and allow users to specify the ordering field, not in the code. EJB QL doesn't support dynamically-formed queries like "select object(b) from QuickBooking b where b.status like ?1 order by b.<b>?2</b>" so i can't passing field name as parameter into query. Creating a sorting method for every field is not good solution because I need a dynamically-formed requests.
I think using native SQL will help but I don't know how I can use SQL in EJB.
Thanks,
Levimport javax.persistence.EntityManager;within class, place
protected EntityManager entityManager;of course make it public, private, whatever you need.
Then, in your method
entityManager.createNativeQuery(....);R. Grimes -
How to retain form data with cfpdf flatten option
I created an intertactive form from an existing pdf using
Acrobat 8.0/Live Cycle designer. Now I am trying to use it in my
application where I use cfpdfform tag to first populate the pdf,
and then create a flattened copy of the form using cfpdf
action="wrtite" flatten="yes" command. But when I flatten the form,
the form data is lost. This does not happen with other government
forms like Form I-9 or W-4 that could be downloaded as interactive
forms from their respective sites.
I came across this article through a Google search
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_p-q_02.html.
If you scroll down about half the page you will see this:
"You can use the cfpdf tag to assemble interactive PDF form
files into a single PDF document and flatten forms created in
Acrobat (by using the flatten attribute with the write action);
however, to process PDF form data, use the cfpdfform and related
tags. You cannot use the cfpdf tag to flatten forms created in
Adobe LiveCycle Designer ES."
This is confusing - why can't the forms created in LiveCycle
be flattened? What other tools we have to create interactive forms
that can be flattened with form data?
Please assist me with your pointers and responses. Would
appreciate an early reply.
Thanks very much.
RajHere's how I did it. LiveCycle form does work in ColdFusion. It even includes an image wich works untill I flatten the form.
-
Hello,
Hello I have an application based on JSF. We have a requirement to create forms dynamically, I mean end user should be able to add new controls to the form, without recompiling the application. Do u know some frameworks that do this ? For instance , I edit and xml file , and the application creates the form based on that. ? I was reviewing ORBEON framework, and I like the idea that with editing and xhtml file , I can make changed to the form and form submits XML information , but it seems to me complex or a long learning curve , besides it is a completely diferrent technology than JSF........do u know any similar idea like ORBEON , but implemented in JSF ? or how to integrate Orbeon and JSF ? . I want to keep the business logic in java code, and presentation in XFORMS
Thanks,
Deibys QuinteroI'm in charge of the opensource project named XSLTForms (http://www.agencexml.com/xsltforms/).
It's a client-side XForms solution based on XSLT to generate XHTML+Javascript. -
Dynamic Form Query with 3 fields
Anyone-
I created a form based on a table (testcase). I want to retrieve the name of originator, status, Assigned based on the criteria a user may select in a list box. I created three list box with originator, status and Assigned. If someone was to select all the list box, I want the query to retrieve all the data within that selection.but the user can select only one. I know I need to use SET_BLOCK_PROPERTY.
So I created a global varible to store the where clause strign to pass into the set_block_property.
Declare
str varchar2(40);
If :blk_name.orginator != null then
str := :blk_name.originator;
:global.originator := 'originator ='| |str
else
:global.originator := '(originator is null or not null);
in the search button. I do this
When button press
set_block_property(':blk_name',default_where,:global.originator);
end if
execute_query;
but looks like it did not work when I pass the string in to the where clause.
Frustrated-
TimTry it this way :
Create 2 blocks.
blk_ctrl control block
blk_testcase base table block
In the control block have 3 list items for
Originator, Status, Assigned. and the search button.
In the data block have the base table testcase and its columns.
For the search button :
WHEN-BUTTON-PRESSED trigger:
Declare
where_cl VARCHAR2(100):= ' ';
where_cl_len NUMBER;
Begin
if :blk_ctrl.Originator is null and
:blk_ctrl.Status is null and
:blk_ctrl.Assigned is null then
Message('enter at least in one of the
items : Originator, Status or Assigned');
Raise form_trigger_failure;
else
if :blk_name.Originator is not null then
where_cl := where_cl| |'Originator = '| |''''| |:blk_name.Originator| |''''| |' and ';
end if;
if :blk_name.Status is not null then
where_cl := where_cl| |'Status = '| |''''| |:blk_name.Status| |''''| |' and ';
end if;
if :blk_name.Assigned is not null then
where_cl := where_cl| |'Assigned = '| |''''| |:blk_name.Assigned| |''''| |' and ';
end if;
where_cl_len := LENGTH(where_cl);
where_cl := substr(where_cl,1,where_cl_len-5);
SET_BLOCK_PROPERTY('blk_testcase', DEFAULT_WHERE, where_cl);
GO_BLOCK('blk_testcase');
EXECUTE_QUERY;
End;
Hope this is useful for you.
Sudha
Maybe you are looking for
-
How can I save a PDF file sent to me in an attachment to my iPhone 5s
How can I save a PDF file or word file sent to me as an attachment directly to my iPhone 5s so if I want to read it I don't have to dig into my ail every time?
-
Passing a link list to a method
hi i have two class files first is fileIO.java and the other is the main! i want to create a linklist in main and pass it to a method in fileIO.java. the method is static.. fileRead(File dataFile, List myList) {}doesn't seem to work.. can somebody gi
-
Mailbox Dependent Custom Menus
Hi, I have written a C3PO that, on initialisation, checks the email ID of the mailbox. If the ID matches a particular account (used to broadcast messages to large numbers of staff) then a new menu is added to the "Mail To:" window that allows the use
-
ICal won't accept a resent invite after previous decline
My CEO sent me a meeting invite this morning, and I initially declined it as I was not going to be available. I was subsequently able to make some space in my schedule for the meeting and asked him to resend it. So now I've got a new email, also with
-
IMOVIE 08 - Won't import video made from KEYNOTE 08
I have exported my slides made on Keynote 08 in every video codec that imovie supposidly supports, DV, MPEG-4, .MOV and it still wont open it. Thank god that when I downloaded imovie HD 06, that IT is able to open every file that I saved as above. I