Creating Search prompt to display a particular record row
Hi,
I have a crystal report with an Excel sheet as my data source.
I want to create a prompt which would ask for a certain value (say, "name") and when we enter a name (say "John") ; it will display the record row(age, income, savings, etc..) for the Name "John". (if multiple "john"s exist; it will display all the records with name- "John").
Basically, i want to create a "search" function.
Can you please help me understand how to create one like this. I am new to Crystal report. I have tried using Parameters but not able to make it happen.!
Thanks,
Aditi
Hi Aditi,
Please follow these steps:
1) Create a string parameter. You may choose to create a dynamic/static parameter. In the parameter creation screen, you can also choose to select the 'value' field and you can select the Name field from the database here. This will give a list of Names when the report is run. Skip this if you do not want it this way, that is, if you wish to manually type in the value
2) Go to the Record Selection Formula (Report > Selection Formulas > Record) and use this formula:
= {?Parameter_Name}
Place the fields you want on the details section and the run the report.
Hope this helps!
-Abhilash
Similar Messages
-
Create a Update Routine to populate Particular records.
Hi,
The Lower level ODS (ZGSD_O01) has the key fields Document Number and Document Item.
The value for GI_STS will be C for each item when it is PGI'd (Actual Goods Issue Date) and will be in other status (A or B) until it is PGI'd.(that means the order is not complete).
The data on the ODS will be:
Goods Issue Status Last Actual Goods Issue Date of an Order Shipping point Sales document Fiscal year variant Sales document item Tolerance Limit for Under Delivery in % Net price Quantity Confirmed as Requested Desired Delivery Quantity
C 5/23/2006 CDC1 0000000045 Z1 50 0 0.88 0 0
C 5/23/2006 CDC1 0000000045 Z1 60 0 0.88 0 0
C 5/23/2006 CDC1 0000000045 Z1 70 0 0.88 0 0
C 5/23/2006 CDC1 0000000045 Z1 80 0 0.88 0 0
C 5/24/2006 CDC1 0000000045 Z1 90 0 0.88 0 0
C 5/24/2006 CDC1 0000000045 Z1 100 0 0.88 0 0
C 5/24/2006 CDC1 0000000045 Z1 110 0 0.88 0 0
C 5/24/2006 CDC1 0000000045 Z1 120 0 0.88 0 0
C 5/24/2006 CDC1 0000000045 Z1 130 0 0.88 0 0
C 5/24/2006 CDC1 0000000045 Z1 140 0 0.88 0 0
C 5/25/2006 CDC1 0000000045 Z1 150 0 0.88 0 0
C 5/25/2006 CDC1 0000000045 Z1 160 0 0.88 0 0
C 5/25/2006 CDC1 0000000045 Z1 170 0 0.88 0 0
C 5/25/2006 CDC1 0000000045 Z1 180 0 0.88 0 0
C 5/26/2006 CDC1 0000000045 Z1 190 0 0.88 0 0
C 5/30/2006 CDC1 0000000045 Z1 200 0 0.88 0 0
A CDC1 0000000045 Z1 210 0 0.88 0 0
C 5/31/2006 CDC1 0000000045 Z1 220 0 0.88 0 0
C 6/1/2006 LV01 0000000045 Z1 230 0 65.6 0 0
C 6/1/2006 CDC1 0000000045 Z1 240 0 65.6 0 0
I need a logic to look in to the entire order items at lower ODS and then populate this 1 record in top ODS with the inclusion of status fields. If all the values of GI_STS are C, then a record should be populated with last item's AGI data and this. If not, a record should populated with the GI_STS either A or B.
Can any one help me in witing a routine in the update rules of 2nd level ODS.
here is the base code at present in the update rules.
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line -
TABLES:/BIC/AZGSD_00100.
Data: T_ZGSD_001 like /BIC/AZGSD_00100 occurs 0 with header line.
DATA: l_number_of_days TYPE i,
n TYPE i.
DATA: IN TYPE F,
OUT TYPE F,
DENOM TYPE F,
NUMER TYPE F.
$$ end of global - insert your declaration only before this line -
FORM compute_data_field
TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
USING COMM_STRUCTURE LIKE /BIC/CS8ZGSD_001
RECORD_NO LIKE SY-TABIX
RECORD_ALL LIKE SY-TABIX
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
CHANGING RESULT LIKE /BIC/AZGSD_O0300-/BIC/ZO_STS
RETURNCODE LIKE SY-SUBRC "Do not use!
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line -
fill the internal table "MONITOR", to make monitor entries
result value of the routine
<b>IF COMM_STRUCTURE-LST_A_GD NE ' ' AND
COMM_STRUCTURE-GI_STS EQ 'C'.
RESULT = 'C'.
ELSE.
RESULT = ' '.
ENDIF.</b>* if abort is not equal zero, the update process will be canceled
ABORT = 0.
$$ end of routine - insert your code only before this line -
please make changes in this to get records as described above.
Regards,
Message was edited by: Satish Muppala
Message was edited by: Satish Muppalahi nagesh,
here the data in 1st level ODS is like this.
Goods Issue Status, Last Actual Goods Issue Date, Sales document, Fiscal year variant, Sales document item, Tolerance Limit,Quantity Confirmed
C, 5/23/2006, CDC1, 0000000045 ,Z1, 50, 0, 0.88 ,0, 0
C, 5/23/2006, CDC1, 0000000045, Z1, 60 ,0, 0.88, 0, 0
C, 5/23/2006, CDC1, 0000000045, Z1, 70 0 0.88, 0, 0
C, 5/23/2006,CDC1, 0000000045, Z1, 80, 0, 0.88, 0, 0
C, 5/24/2006, CDC1, 0000000045, Z1, 90, 0, 0.88, 0, 0
C, 5/24/2006, CDC1, 0000000045,Z1, 100, 0, 0.88, 0, 0
C, 5/24/2006, CDC1, 0000000045, Z1, 110, 0, 0.88, 0, 0
C, 5/24/2006, CDC1, 0000000045, Z1, 120, 0, 0.88, 0, 0
C, 5/24/2006, CDC1, 0000000045, Z1, 130, 0, 0.88, 0, 0
C, 5/24/2006, CDC1, 0000000045, Z1, 140, 0, 0.88, 0, 0
C, 5/25/2006, CDC1, 0000000045, Z1, 150, 0 ,0.88, 0, 0
C, 5/25/2006, CDC1, 0000000045, Z1, 160, 0, 0.88, 0, 0
A, ,CDC1, 0000000045, Z1, 210, 0, 0.88, 0, 0
C, 5/31/2006, CDC1, 0000000045, Z1, 220, 0, 0.88, 0, 0
C, 6/1/2006, LV01, 0000000045, Z1, 230, 0, 65.6, 0, 0
C, 6/1/2006, CDC1, 0000000045, Z1, 240, 0, 65.6, 0 ,
If suppose for a sales document no all the reocrds is Having GI_STS as 'c' then the last record with latest date should be populated.
i.e. C, 6/1/2006, CDC1, 0000000045, Z1, 240, 0, 65.6, 0 ,
If GI_STS is having status other than C i.e A or B. then it should populate A or B records.
i.e A, ,CDC1, 0000000045, Z1, 210, 0, 0.88, 0, 0
with regards,
sreekanth. -
How to create a event to display records depend on selection ofdropdownlist
BSP
how to create a event to display records depend on selection of dropdownlist box,
Using BHTML,
thank you,
regards,
jagrut bharatkumar shukla1) Copy this script to the code
<script type="text/javascript">
function displayVacationDates() {
for (var i=0; i < document.forms[0].Status.length; i++) {
if (document.forms[0].Status[i].checked && document.forms[0].Status[i].value=='Vacation'){
document.getElementById('startDateRow').style.visibility='visible';
document.getElementById('endDateRow').style.visibility='visible';
if (document.forms[0].Status[i].checked && !(document.forms[0].Status[i].value=='Vacation')){
document.getElementById('startDateRow').style.visibility='hidden';
document.getElementById('endDateRow').style.visibility='hidden';
</script>
2) Set initial style to 'hidden'
<tr id="startDateRow" style="visibility:hidden">
<td align="left"><blockquote>
<p><span class="style16 style8"><strong>Start date:
</strong></span></p>
</blockquote> </td>
<td align="left"><script>DateInput('VacStart', true, 'DD-MON-YYYY')</script></td>
</tr>
<tr id="endDateRow" style="visibility:hidden">
<td align="left"><blockquote>
<p><span class="style16 style8"><strong>End date:
</strong></span></p>
</blockquote> </td>
<td align="left"><script>DateInput('VacEnd', true, 'DD-MON-YYYY')</script></td>
</tr>
3) Call the display script
<input name="Status" type="radio" value="In the Field" onclick="displayVacationDates()">
<input name="Status" type="radio" value="Vacation" onclick="displayVacationDates()">
<input name="Status" type="radio" value="Sick day" onclick="displayVacationDates()">
<input name="Status" type="radio" value="Admin Day" onclick="displayVacationDates()">
<input name="Status" type="radio" value="DSR Ride Along" onclick="displayVacationDates()">
<input name="Status" type="radio" value="ServiceCall" onclick="displayVacationDates()"> -
Search First, then Display "Found" Records in list "After" searching
Does anyone know how to force my ADDT List to just initially display the Search boxes only (see image above), and not bring up any records at all?
- I'm using the List Page and Filter Boxes as a "Global Search" of the database
- I only want the page to load with everything except the actual data
- Then when I type something into a filter box, I want the query to run & display the results below. (Like a google search page)
My list page works as-is, set to display only 10 records, with the Filter boxes set to display by default.. but since the query is running to display the recordset,
there is a delay before the page loads.. I would like to stop the initial query from running/displaying and only run "after" I have typed in a value, and hit the "Filter" button.
Thanks,
jligGunter, Referring to your suggestion before, it looks like it hides the records display,..
Will this still cause the page to load slow (since the query still is running in the background) even though the records are not displayed?
Do you know, does the List code call the query before or after it displays the list?
</cfquery>
<cfif true eq true>
<cfquery name="rstickets1" datasource="Ctickets" username="#Request.KT_db_username#" password="#Request.KT_db_password#">
SELECT tickets.acctNum, tickets.firstName, tickets.lastName, tickets.businessName, tickets.city, tickets.circuitID, tickets.ticketDetails, tickets.ticketDate, tickets.ticketNum FROM tickets WHERE #PreserveSingleQuotes(SESSION.filter_tfi_listtickets1)# ORDER BY #PreserveSingleQuotes(SESSION.sorter_tso_listtickets1)#
</cfquery>
<cfset QueryString_rstickets1=Iif(CGI.QUERY_STRING NEQ "",DE("&"&CGI.QUERY_STRING),DE(""))>
</cfif>
<cfset MaxRows_rstickets1=SESSION.max_rows_nav_listtickets1>
<cfset StartRow_rstickets1=Min((PageNum_rstickets1-1)*MaxRows_rstickets1+1,Max(rstickets1.Record Count,1))>
<cfset EndRow_rstickets1=Min(StartRow_rstickets1+MaxRows_rstickets1-1,rstickets1.RecordCount)>
<cfset TotalPages_rstickets1=Ceiling(rstickets1.RecordCount/MaxRows_rstickets1)>
<cfset tempPos=ListContainsNoCase(QueryString_rstickets1,"PageNum_rstickets1=","&")>
<cfif tempPos NEQ 0>
<cfset QueryString_rstickets1=ListDeleteAt(QueryString_rstickets1,tempPos,"&")>
</cfif>
Thanks again,
jlig -
Creating BOM using BDC :How to display no of records from flat file under
Hi,
How to display no of records from flat file under one (Alternative BOM) vertically.
When i execute, the records are replacing one by one.
Here my coding:
report ZBOM1
no standard page heading line-size 255.
*include bdcrecx1.
DATA: BEGIN OF bdc OCCURS 0,
matnr(18),
werks(4),
stlan(1),
END OF BDC.
DATA: BEGIN OF BDC1 OCCURS 0,
idnrk(18),
MENGE(18),
MEINS(3),
postp(1),
END OF bdc1.
DATA: BEGIN OF BDCDATA OCCURS 0,
matnr(18),
werks(4),
stlan(1),
idnrk(18),
MENGE(18),
MEINS(3),
postp(1),
posnr(4),
END OF BDCDATA.
data: ibdcdata type standard table of bdcdata WITH HEADER LINE.
*start-of-selection.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\Documents and Settings\dilipkumar.b\Desktop\soft.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = ','
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = BDCDATA
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*perform open_group.
loop at bdcdata.
perform bdc_dynpro using 'SAPLCSDI' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RC29N-STLAN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29N-MATNR'
'SOFTDRINKS'.
perform bdc_field using 'RC29N-WERKS'
'WIND'.
perform bdc_field using 'RC29N-STLAN'
'1'.
perform bdc_field using 'RC29N-DATUV'
'16.09.2008'.
perform bdc_dynpro using 'SAPLCSDI' '0110'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29K-BMENG'
'1'.
perform bdc_field using 'RC29K-STLST'
'1'.
perform bdc_field using 'BDC_CURSOR'
'RC29K-EXSTL'.
perform bdc_dynpro using 'SAPLCSDI' '0111'.
perform bdc_field using 'BDC_CURSOR'
'RC29K-LABOR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPLCSDI' '0140'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSTP(01)'.
perform bdc_field using 'BDC_OKCODE'
'=FCBU'.
perform bdc_field using 'RC29P-IDNRK(01)'
BDCDATA-IDNRK.
perform bdc_field using 'RC29P-MENGE(01)'
BDCDATA-MENGE.
perform bdc_field using 'RC29P-MEINS(01)'
BDCDATA-MEINS.
perform bdc_field using 'RC29P-POSTP(01)'
BDCDATA-POSTP.
perform bdc_dynpro using 'SAPLCSDI' '0130'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSNR'.
perform bdc_field using 'RC29P-POSNR'
BDCDATA-POSNR. "'0010'.
perform bdc_field using 'RC29P-IDNRK'
BDCDATA-IDNRK. "'15'.
perform bdc_field using 'RC29P-MENGE'
BDCDATA-MENGE. "'1'.
perform bdc_field using 'RC29P-MEINS'
BDCDATA-MEINS. "'ml'.
perform bdc_dynpro using 'SAPLCSDI' '0131'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POTX1'.
perform bdc_field using 'RC29P-SANKA'
'X'.
*perform bdc_transaction using 'CS01'.
*perform close_group.
CALL TRANSACTION 'CS01' USING IBDCDATA MODE 'A' UPDATE 'S'.
REFRESH IBDCDATA.
endloop.
Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR iBDCDATA.
iBDCDATA-PROGRAM = PROGRAM.
iBDCDATA-DYNPRO = DYNPRO.
iBDCDATA-DYNBEGIN = 'X'.
APPEND ibDCDATA .
ENDFORM.
Insert field *
FORM BDC_FIELD USING FNAM FVAL.
IF FVAL <> NODATA.
CLEAR iBDCDATA.
iBDCDATA-FNAM = FNAM.
iBDCDATA-FVAL = FVAL.
APPEND iBDCDATA .
ENDIF.
ENDFORM.Hi,
the BDCDATA structure must be fnam, fval,dynbegin,dynpro,program.
You have to declare like this and pass this in your CALL TRANSACTION statement.
Please give some other table name for BDCDATA you declared for and also for IBDCDATA. -
I would like to create a multipurpose graph display - how?
Hi all, I would like to create a simple VI, it has multiple sets of information and signal inputs (Signal generators or DAQmx cards), and whilst all the information is important, i don't need to see them all at the same time. instead I would like to create an oscilloscope-like display (one large graphical display), and boolean buttons that allow me to select which signals I want to display on the screen (graph).
So there two options, 1 boolean button to show only that waveform, and other boolean button to toggle on/off the waveform on the screen (means I can either show one dedicated waveform or show all the waveforms at the same time) this will allow me to compare the waveforms or just to focus on one particular waveform.
I was thinking of a case-structure to turn on/off the waveform for display on the graph, but how do i do that?
Help will be really appreciated!Hi MKFX,
two notes:
1) How to change the visibility of plots is a more common question one may think - so do a little search on the forum...
2) LV2011 allows to set visibility of plots right from the plot legend, you don't need additional boolean buttons for that purpose...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Hi Friends,
i've a prompt in my dashbord, based on the prompt the report values will display right,
my requirement is that i want display only top 5 records,
how will you do thatHi
Create a prompt with a column and assign presentation variable in it.
In report for measure give the function as topN in edit formula.The syntax is shown as
TOPN(expr, integer)
If u want top 5 then TOPN(Measure Column,5) give filter to this column with presenntation variable
We can do it with 'rank' function also like this
Rank(Measure column)
Otherwise,Use TopN filter in the report.But it shows 5records statically.For this there is no need of prompt.
Thanks
Don -
Need to Create Search Help Based on Condtions from one table to another tab
Hi All,
I have a table like ZGROUP Which contains the data below
Filed name Filed Name Filed Name
ZGROUP ZTYPE ZTEXT
Entries
ABC P TEXT FOR
C P SDFNSDFKLN
DDDD PSG TEPRTPERERTWERT
DEF P TEST
FFFFF PSG
SEF PS SDFSDFLASLDFNASDLFN
XYZ PS TESTING
Whree P is Product , PS- Point of Sales, PSG-Sales Group
Now i am going to crate another ZPROUDCT TABLE
FIELDNAME FIELDDESCRITPON
PRODUCT PROD_DESC
Entry
abc pRELATED ENTRY
My Questions
1) ZGROUPS table has 3 kinds of data P, PSG, PS type records,
1) In Table ZPROUDCT , I want to create search help only P records for Table Zproduct of the field Product FROM zGROUPS table
2) In Table Zsales , I want to create search help only PS records from ZGROUPS table
3) In Table ZPSG, I want to create search help only PSG records from table ZGROUPS
is it possible to create search help from One Master Table(ZGROUPS) table to other tables based on conditions.
Please help me.
very urgent
Regards,
Rajuif <condition>
AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>
SELECT <field>
FROM <table>
INTO TABLE i_tab
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' "function module to provide f4 help to sold-to-party
EXPORTING
retfield = "XXXX"
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = '<field name>'
value_org = 'S'
TABLES
value_tab = i_tab
endif.
lkike this u can check the condition and selec the data from table and assign it into one internal table and then call the FM it will give the f4 help to particular field
reward if helpful
regards,
Khan. -
How do i search a textfile for a particular value?
How do i search a textfile for a particular value?
I have made the records etc, six fields per record, i would like to find a value which is typed into the search textbox, find the record in the textfile and display the record in the boxes used to enter the data.
SO HOW WOULD I SEARCH A TEXTFILE?
Thanks very much for your help, Antony (UK)...If it were me, I'd use Lucene. Each line could be a separate document, and each field would be a field in Lucene. That would provide you one of the fastest and most flexible ways to do what you want.
Or did you mean you want someone to complete your homework assignment? :-) -
Some doubts about automatically created search feature
Hi everybody,
if I create a report page apex provides me a basic search feature (a single textbox the user can use to search in various fields).
The code automatically created is (in apex 2.1.x) something like:
SELECT ...field lists...
FROM tablename
WHERE
instr(upper("FIRST_NAME"),upper(nvl(:P1_REPORT_SEARCH,"FIRST_NAME"))) > 0 or
instr(upper("LAST_NAME"),upper(nvl(:P1_REPORT_SEARCH,"LAST_NAME"))) > 0 or
instr(upper("CITY"),upper(nvl(:P1_REPORT_SEARCH,"CITY"))) > 0 or
...and so on, one statement for each field we want to search for.
I don't understand
1) why apex uses instr instead of a standard LIKE '%..%'..the choice depends on performance issues?
2) instead of using the nvl "trick" IMHO should be enough:
:P1_REPORT_SEARCH IS NULL OR
instr(upper("FIRST_NAME"),upper(:P1_REPORT_SEARCH,"FIRST_NAME")) > 0 or
instr(upper("LAST_NAME"),upper(:P1_REPORT_SEARCH,"LAST_NAME")) > 0 or
instr(upper("CITY"),upper(:P1_REPORT_SEARCH,"CITY")) > 0 or
which is clearer and maybe faster; am I right?
3) the nvl "trick" doesn't work for empty fields: if a record has null values for all the fields you search for in the query that record won't be displayed in the report even if the user leave the search box blank and click on "go"...this seems to me a bug, has it been resolved in the last release of APEX?
4) Last question: this is not actually related to "basic" search...if I need to verify is a search field (imagine an advanced search form) is left blank I can just use ":FIELD_NAME IS NULL"...this work for textboxes but doesn't work for listboxes, which needs something like ":FIELD_NAME = '%null%'" because %null% seems to be the value returned by those kind of fields when left blank...am I right? Which is the meaning of %null%?
Thank you very much and sorry for the long post.
Ciao.
EugenioHi Eugenio,
Firstly, you are welcome to alter the generated query however you wish. If you don't like what is created by APEX, change it to suit your purposes.
To answer your questions:
1. It's easier for customers to understand INSTR than LIKE. With LIKE, you have to be careful to include the wildcard characters. Performance should be roughly equivalent.
2. The NVL is necessary. If it were not, then if no search criteria was specified, then no rows would ever be returned. Try your suggested SQL out yourself.
3. You're correct - this won't work if you have null values for all fields. That's not a bug in APEX, though. I don't know too many application requirements where you would want to maintain null values for all fields. Do you?
4. You are correct. For List Manager and other items which use a List of Values, if you don't specify a string to use for NULL, then '%null%' will be used. You can override this in the LOV settings for the item, but keep in mind - you have to specify something, otherwise, '%null%' will be used. Patrick Wolf posted a nice, generic solution to this: Re: Null value handling in LOVs
I hope this helps.
Joel -
Enable or disable particular record in list item based on a corresponding c
Hi,
How can i Enable or disable property of particular record in list item (multi record) based on a corresponding check box(multi record) ,
e.g Form Structure:
if press a button then record should populate where multi_post_query
if my_check_box = 1 then
my_list_item disable to update;
else
my_list_item enable to update;
end if;
now wanted result is like below
my_check_box ---- my_list_item
+----------------------enable
+----------------------enable
+----------------------enable
_----------------------Disable
_----------------------Disable
Here "+" means checked,"_" means unchecked and "enable" means updatable "Disable" means not updatable
the pseudo code is like,
if my_check_box = 1 then
my_list_item enable to update;
else
my_list_item disable to update;
end if;
Note: my_check_box is not updatable
please tell me which trigger and where I should create
Thanks
Edited by: 838602 on Feb 21, 2011 11:12 PM
Edited by: 838602 on Feb 22, 2011 1:40 AMHi Abdetu,
I created WHEN-NEW-RECORD-INSTANCE Trigger at data block level
And I need should work like below pseudo code (sorry for previous pseudo code)
if my_check_box = 1 then
my_list_item disable to update;
else
my_list_item enable to update;
end if;
so change code as
IF :MULTI.PROTECTED_FIELD = 1 THEN
SET_ITEM_PROPERTY ('MULTI.ACTION',REQUIRED , PROPERTY_FALSE );
SET_ITEM_PROPERTY('MULTI.ACTION',NAVIGABLE,PROPERTY_FALSE);
SET_ITEM_PROPERTY ('MULTI.ACTION' ,UPDATE_ALLOWED,PROPERTY_FALSE);
SET_ITEM_PROPERTY ('MULTI.ACTION' ,INSERT_ALLOWED,PROPERTY_FALSE);
:multi.action := 0;
ELSE
SET_ITEM_PROPERTY ('MULTI.ACTION',REQUIRED , PROPERTY_TRUE);
SET_ITEM_PROPERTY('MULTI.ACTION',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY ('MULTI.ACTION' ,UPDATE_ALLOWED,PROPERTY_TRUE);
SET_ITEM_PROPERTY ('MULTI.ACTION' ,INSERT_ALLOWED,PROPERTY_TRUE);
END IF;
Sorry, still I am not getting desired o/p. even i check item (ACTION) level Trigger
Note: my_check_box is not updatable
that would assign at time of button press (post query) as i mentioned
Edited by: 838602 on Feb 22, 2011 1:41 AM -
How can i display collection of records in HTML Table using DWR framework
Dear All,
Just i start using the Direct Web Remoting framework.I am worrying to get the list of records to display html table using this concept.I did the same like.
index.js
var cellFuncs = [
function(data) { return data; },
function(data) { return data.toUpperCase(); },
function(data) { return "<input type='button' value='Test' onclick='alert(\"Hi\");'/>"; },
function(data) { return count++; }
function update() {
var name = dwr.util.getValue("demoName");
Demo.sayHello(name, function(data) { dwr.util.setValue("demoReply", data); } );
var count = 1;
dwr.util.addRows( "tabs",[ 'Africa', 'America', 'Asia', 'Australasia', 'Europe' ], cellFuncs);
alert("hai");
index.jsp
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type='text/javascript' src='dwr/engine.js'> </script>
<script type='text/javascript' src='dwr/util.js'> </script>
<script type='text/javascript' src='dwr/interface/Demo.js'> </script>
<script type="text/javascript" src='index.js'> </script>
</head>
<body>
<div id="tabContents">
<div id="demoDiv">
<p>
Name:
<input type="text" id="demoName" value="Joe"/>
<input value="Send" type="button" onclick="update()"/>
Reply: <span id="demoReply" style="background:#eeffdd; padding-left:4px; padding-right:4px;"></span>
<table id="tabl1">
<tbody id="tabs">
<tr>
<td>name</td>
<td>name1</td>
<td>name2</td>
<td>name3sdf</td>
</tr>
<tbody>
</table>
</p>
</div>
</div>
</body>
</html>
dwr.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN" "http://getahead.org/dwr/dwr20.dtd">
<dwr>
<allow>
<!-- simpletext -->
<create creator="new" javascript="Demo">
<param name="class" value="org.getahead.dwrdemo.simpletext.Demo"/>
</create>
</allow>
</dwr>
web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="dwr">
<display-name>DWR (Direct Web Remoting)</display-name>
<description>A Simple Demo DWR</description>
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<display-name>DWR Servlet</display-name>
<description>Direct Web Remoter Servlet</description>
<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>activeReverseAjaxEnabled</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>initApplicationScopeCreatorsAtStartup</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>maxWaitAfterWrite</param-name>
<param-value>500</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
</web-app>
Demo.java
package org.getahead.dwrdemo.simpletext;
import java.io.IOException;
import javax.servlet.ServletException;
import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;
public class Demo
public String sayHello(String name)
return "Hello, " + name;
the sayHello() is printing the display.But the table rows not updating.But its object expected.So can you tell me where i need to change and how to add the pagination for the table like 10 by 10 records to display.
Please help me.
SaravananHi Brian,
OAF supports the master-detail based design. You can very well implement your model. You can use 2 VO for your 2 objects and link them using a ViewLink. Check OAF Dev guide for more details.
--Shiv -
How to find the particular record in 1000's of workflow jobs are running
Hi,
In a data manager -> in workflow tab>IF a record is in CHECK-OUT MODE there are 1000's of jobs are running in that workflow tab. Can anyone tell me how to find that particular record in that workflow jobs.
Can anyone show me the difference in getting a record in 5.5 and 7.1Hello COTI
Unfortunatly, SAP MDM doesn't have good ability for WF search.
All WF clarify by it's status (unlaunched, avialable, Received, complited, error etc.)
For each WF SAP MDM assing unique Job ID and this id will be shown in Job ID field in Data Manager WF Tab.
You can change WF list order by all WF fields like as Job ID, Step, User, Start etc. and try to find your's WF.
You can use Java API - this is one of the best solution for WF management and WF mass upload (for example)
Regards
Kanstantsin Chernichenka -
How to display the NULL records by multiple XMLTABLE()
First, let me provide the testing data of INSERT and CREATE TABLE sql:
create table xml_t2 (xml_raw XMLTYPE);insert sql, a bit long.....just copy and paste then run it will be OK!
the system warns: Your message exceeds the maximum length of 30000 characters.
So, I place it on the mediafire shariing space
http://www.mediafire.com/?npmot6lgl86dgliTesting SQL:
SELECT t1.years, t1.months,t1.days,t1.hours,t1.value,t2.value
FROM xml_t2,
XMLTABLE ('$d/cdata/F1' passing xml_raw as "d" COLUMNS years integer path '//year', months varchar(3) path '//month', days varchar(2) path '//day', hours varchar(2) path '//hour', mins varchar(2) path '//minute', value float path '//value') t1 ,
XMLTABLE ('$d/cdata/F2' passing xml_raw as "d" COLUMNS years integer path '//year', months varchar(3) path '//month', days varchar(2) path '//day', hours varchar(2) path '//hour', mins varchar(2) path '//minute', value float path '//value') t2The condition for now is....In the xml data, I have deleted the month 'Jan' with <F2>tag which is in 2010.
That mean the output of XMLTABLE t2 will not contain the 'Jan' records but it is still remain in XMLTABLE t1.
The problem is that when I use the above SQL to show the t1.value, it will not display the t1.value in 2010 Jan.....it just skipped 'Jan' and becomes 'Feb'...
what i would prefer to display is something like this:
YEARS MONTHS DAYS HOURS t1_value t2_value
2009 Jan 01 01 8 8
2009 Jan 01 02 8 580
2009 Jan 02 01 580 580
2009 Jan 02 02 580 580
2009 Feb 01 01 440 440
2010 Jan 01 01 627 NULL
2010 Jan 01 02 627 NULL
2010 Jan 02 01 367 NULL
2010 Jan 02 02 367 NULL
2010 Feb 01 01 367 849
2010 Feb 01 02 849 849
..............So...the main problem is how to display back the record in JAN in 2010 in t1 XMLTABLE and assign null to the t2 XMLTABLE since it doen't contains this months record.
THANKS for help!!Hi,
What's your database version?
Are you using binary XML storage? (This is the default in 11.2.0.2)
If not you have to explicitely specify it :
create table xml_t2 (xml_raw XMLTYPE)
xmltype column xml_raw store as securefile binary xml;Along with object-relational, it's the best storage strategy to use in conjunction with XMLIndex.
You should also use a structured XML index instead, it's more appropriate than the unstructured index you're currently using :
create index xml_t2_sxi on xml_t2 (xml_raw)
indextype is xdb.xmlindex
parameters (q'#
XMLTABLE xml_t2_xt '/cdata'
COLUMNS
YEARS INTEGER PATH 'F1/name/year',
MONTHS VARCHAR(3) PATH 'F1/name/month',
DAYS VARCHAR(2) PATH 'F1/name/day',
HOURS VARCHAR(2) PATH 'F1/name/hour',
MINS VARCHAR(2) PATH 'F1/name/minute',
VALUE FLOAT PATH 'F1/name/value',
VALUE2 FLOAT PATH 'F2/name/value'
call dbms_stats.gather_table_stats(user, 'XML_T2');Use the query provided by Stew and check the explain plan, you'll see the difference. -
Search for users in a particular LDAP through Web Dynpro code...
Hi Experts,
Let me try explaining my problem. In my project we are using two ADAM LDAPs. One for storing internal users and the other for storing external users. I have configured the portal to connect to both the LDAPs. I am able to search for the users created in both the LDAPs through portal Indentity Management.
I am trying to search for the users in a specific LDAP through Web Dynpro coding... I am not lucky enough to get it done. Let me explain you what I did.
I created a custom attribute for UME through config tool. Gave a physical mapping for the custom attribute in dataSourceConfig_xxx.xml to the LDAP attribute distinguishedName which returns the distinguished Name for the user in ADAM LDAP.
For Example: Custom attribute in UME is ldapuser which is mapped to distinguishedName attribute in ADAM LDAP in dataSourceConfig_xxx.xml.
When I do a search for the users in a particular LDAP, I am trying to put a filter to the newly created ldapuser attribute to distinguish between the two LDAPs.
The search will result if I pass the value as '*'. If I try to specify the user path for the LDAP in this attribute it doesnt result any data.
For example:
userSearchFilter.setSearchAttribute(
"com.sap.com.cust.admn",
"ldapuser",
"OU=16482515,OU=Members",
ISearchAttribute.LIKE_OPERATOR,
false);
The above code will not return the data, whereas
userSearchFilter.setSearchAttribute(
"com.sap.com.cust.admn",
"ldapuser",
ISearchAttribute.LIKE_OPERATOR,
false);
Will result with user list from both the LDAPs.
If anyone tried searching for users in a particular LDAP through code, please help me with this issue.
Thank you in advance.
Regards,
Rekha MalavathuI just figured it out. Under "group-policy GroupPolicy_COMPANY_SSL_VPN attributes", I had to add "vpn-simultaneous-logins 15". Apparently, it was using the value "vpn-simultaneous-logins 0" under the NOACCESS group policy.
Maybe you are looking for
-
Hiya, I'm new to this forum but surely not new to the world of technology and technical support. I've been an active technologist for almost 30 years and I run servers, design sites and server applications, author software and a host of other digita
-
"Find Related Items" in Entourage (like Outlook on PC)?
Hi, I use Outlook on a Win XP machine at work and Entourage on my Mac at home. I cannot find anywhere in Entourage where there is a command that behaves the same as the "find related items" command does in Outlook. I use this extensively on my work c
-
Error running HW 5 Part 2...
When running HW 5 Part 2, the GPS will simply quit reporting. A look at the system monitor utility shows that it is still running, but it is not reporting anything. No errors shown, just not reporting anything. If I stop the MIDlet and restart it (
-
Windows XP - folders and files
I am just doing some background research with Windows XP and the Mac server. What I am looking for is ie: Mac 10.4 client connected to a Windows 2003 server when saving a file might not be able to becuase the file path is too long. Does an error occu
-
Wanted: Sr. Java Architect - Santa Monica, CA
Lowermybills.com is looking for a Sr. Java Architect on a full time or contractual basis to join our team in Santa Monica California. The appropriate candidate must posses the following skills: 4+ years of J2EE Hibernate Spring JSF (Preferred) Strong