Enhancing BtQact Dynamic Search
Hi All,
I want to know the class name for BTQAct which is triggered while getting the query result.
Also it will be needful if the database table name I can get from where all the Business Object and corresponding Implementation class names are maintained.
Thanks in Adv.
Hello there.
Let me explain how to trace the same.
1. Lets take an example of dynamic search object in the model used in your component. BTQAct.
Select the name of Model used in your component say ABC( Can be found in Runtime repository browser of Component in Models)
2. Go To SPRO-> SAP Reference IMG-> CRM-> Cross Applicatiaon components-> Generic Interaction Layer->Basic Settings
3. Select the option of Component Set definition and search for ABC here found in Step1.
4. In this check the name of Components assigned responsible for Activities.
5. Check in the same customizing the Component name thus picked in Step4 and then you will find three entries corresponding one component.
Object Table : Defines all objects in a component with their type ( eg search, root,child etc)
Model Table: Defines relationship table --All relationships available amongst the objects of the component with the possible cardinality.
IL class: This class will have all basic methods which gets called whenever any operation is performed on WEB UI of even on GENIL_BOL_BROWSER.
I think this class name is the class you are looking for.
Please reply if this helps.
Best Regards,
Vinamra.
Similar Messages
-
Is it possible to enhance the dynamic search with Option field with custom
Hi All,
is it possible to enhance dynamic search with OPTION parameter like Equals to , Between etc, instead of these are we able to add our own? If yes, then which are steps need to perform.
Thanking you.
Regards,
VjMHydJust to test is this possible i wrote a sample program
data: lr_dquery type REF TO cl_crm_bol_dquery_service.
data: lv_status TYPE CRMT_PROCESS_DESCRIPTION.
data: mv_bol_core type REF TO cl_crm_bol_core,
lr_result_obj type ref to if_bol_bo_col,
lv_opp_id type string,
lr_entity type ref to cl_crm_bol_entity.
MV_BOL_CORE = CL_CRM_BOL_CORE=>GET_INSTANCE( ).
MV_BOL_CORE->START_UP( 'BT' ).
*data: lv_opp_id type string.
lr_dquery = cl_crm_bol_dquery_service=>GET_INSTANCE( 'BTQOpp' ).
if lr_dquery is bound.
* prepare the selection paramters
lr_dquery->add_selection_param(
exporting
iv_attr_name = 'OBJECT_ID' " Component name
iv_sign = 'I' " Inclusion/exclusion criterion SIGN for range tables
iv_option = 'PI' " Selection operator OPTION for range tables
iv_low = lv_opp_id
* Get the dynamic result object and read the opportunity status from there
lr_result_obj ?= lr_dquery->get_query_result( ).
lr_entity ?= lr_result_obj->get_first( ).
if lr_entity is bound.
lr_entity->get_property_as_value( exporting iv_attr_name = 'STATUS'
importing ev_result = lv_status ).
endif.
endif.
BREAK-POINT.
No syntax error but junk values returned as I had not written the logic for retrieval based on this operator. This means that if you add the selection_param to the dynamic query and then handle that same thing in the GENIL class for the component then you would be able to retrieve the values based on this.
On the UI , you would be retrieving all the operators for the parameters. There for that particular field you have to add the new operator for your case. And this would be send to the Dquery class and added as a selection param. When the query is executed, if the genil class has been updated to handle this parameter, you should be able to retrieve the results.
Regards
Kavindra
Edited by: joshi_kavindra on Jan 19, 2012 2:45 PM
Edited by: joshi_kavindra on Jan 19, 2012 2:53 PM -
Dynamic Search Object for Payment Terms
Hi,
May i know the Dynamic Search Object for Payment Terms. I have to create a Advanced Search Page with Payment terms. I could not find the dynamic search object for Payment terms. Any help is appreciated
Thank you.
-SiddharthHi,
The search help for the payment terms is not coming from the DDIC search help..
It is coded in the process on value-request event...
The function module FI_F4_ZTERM is called for this..you have to change this function module in case if you want the values from a different table..
OR do implicit enhancement in the subroutine FORM HELP_ZTERM in the include MF02DFH0 to call your search help instead of the function module FI_F4_ZTERM ..And do the same for the sales order also..
Thanks
Naren -
How Can I get multi column values from dynamic search help?
Hi Gurus;
I'm using dynamic search help in my program.
I want to get multi column values from search help. But I dont know solution for this issue.
I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
How Can I get multi column values from dynamic search help?
Thanks.Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
There are like 3 steps.
You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined (just to keep it straight, i will be putting here) data: It_return type standard table of ddshretval.
Next step is to call the function module. Make sure you have values in IT_VALTAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'FLD2'
value_org = 'S'
tables
value_tab = It_VALTAB
return_tab = It_return
dynpfld_mapping = It_dynpfld
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
perform get_selected_fields tables It_return.
endif.
The code within the perform GET_SELECTED_FIELDS - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
I need a internal table as well as a work area here. like,
data: lt_fields type table of dynpread,
la_fields type dynpread.
field-symbols: <fs_return> type ddshretval.
so fill out LT_FIELDS from the IT_RETURN table
loop at lt_return assigning <fs_return>.
la_fields-fieldname = <fs_return>-retfield.
la_fields-fieldvalue = <fs_return>-fieldval.
append la_fields to lt_fields.
clear: la_fields.
endloop.
Call the FM to update the dynpro
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-repid
dynumb = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
tables
dynpfields = lt_fields
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
others = 8.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
good luck -
Spry Tabbed panels + Progressive Enhancement and Dynamic Loading of Content With Spry
Is there any way to combine tabbed panels together with "Progressive Enhancement and Dynamic Loading of Content With Spry"?
Visit: http://labs.adobe.com/technologies/spry/articles/best_practices/progressive_enhancement.ht ml#updatecontent
And click on the "Using Spry.Utils.updateContent()"
The 3rd example shows how to use a fade transition whenever the content changes.
I already have tabbed panels. My menu contains buttons (on tabs) and my Content div contains the panels.
Tabs code;
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab">
<table class="Button" >
<tr>
<td style="padding-right:0px" title ="Home">
<a href="javascript:TabbedPanels1.showPanel(1);" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
</td>
</tr>
</table>
</li>
etc
etc
etc
and the panel code:
<div class="TabbedPanelsContent" id="Home">
CONTENT
</div>
I hoped i can use the example code from the link into my tabbed panels.
I thought this code:
onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;"
could be added to the tab code like this:
<a href="javascript:TabbedPanels1.showPanel(1);" onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
But the content doesnt fade...
I know i need to change the header etc.
The following is from the link:
<!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" xmlns:spry="http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Aquo Events</title>
<script src="../../../includes/SpryEffects.js" type="text/javascript"></script>
<script src="../../../includes/SpryData.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function FadeAndUpdateContent(ele, url)
try {
Spry.Effect.DoFade(ele,{ duration: 500, from: 100, to: 0, finish: function() {
Spry.Utils.updateContent(ele, url, function() {
Spry.Effect.DoFade(ele,{ duration: 500, from: 0, to: 100 });
}catch(e){ alert(e); }
-->
</script>
<style type="text/css">
/* IE HACK to prevent bad rendering when fading. */
#event { background-color: white; }
</style>
</head>
So i changed my header etc, put the SpryEffects.js and SpryData.js into position and nothing changed...
Is there a way to keep my tabbed panel (or change as less as possible) and let
A. The fade work
B. The loading work.
The problem now is that it loads all pages instead of only the home. Therefore i wanted this Progressive Enhancement.
And the fading part is just because its nice...It doesnt show in the post but off course i changed this link;
"data/AquoThonFrag.html"
into;
"javascript:TabbedPanels1.showPanel(1);"
I must say i dont know if this even works... -
How to enhance the standard search with custom field?
Hi all,
I would like to know the general optimal procedure to enhance the standard searches like Opportunity search or Lead search.
I've gone through some of the threads here. Some suggest, to add the new field using AET and copy the IMPL class of the search and then code the custom logic. Some say, append the new field to the structure of the search object and then implement the BADI.
I'm actually a bit confused to understand the correct procedure.
Can someone please help me with a generic procedure to enhance the standard search with a custom field?
Thanks in advance.Hi Maren,
Once I have got the same development. I have followed the below steps, please check with this. Let me know for further inputs.
Add new field using Append structure of type ‘XXX’ in search
Create BADI implementation for Enhancement spot ‘ES_CRM_RF_Q1O_SEARCH’ and include filter ‘BTQOPP’
Put your logic in BADI implementation – SEARCH method
Add it in WebUI configuration
Remove the operator if required
Regards,
Swadini Sujanaranjan -
How to enhance the Opportunities search help in UI
Hi all
I have a requirement wherein I need to enhance the Standard Search help of Opportunities in UI.
The requirement is, we have few custom fields and few fields from 'Milestone' tab .These fields needs to show it in the initial screen of 'Opportunities' to search the different opportunities.
Ex:1.We have a custome field called 'Direct Margin%' and this should appear in the drop down of Opportunity search help in UI
and if the user enters a value against this then system should filter all the opportunities and should display the oportunities which are having the value entered by the user for ''Direct Margin%' (similar to standard search).
2. We have a field called Contract Start Date*' and this should appear in the drop down of Opportunity search help in UI
and if the user enters a date against this then system should filter all the opportunities and should display the oportunities
with the date entered.
Hope!! the requirement is clear to all.
Can you please let me know the detailed steps to acheive this requirement.
Regards
AnilHi,
Put the break point and check in GET_DYNAMIC_QUERY_RESULT of CL_CRM_QOPP_RUN_BTIL at line no 133, inside the get_result_values method at line 4 get_result_guids will be called, within this method the above mentioned Enhancement spot will be called.
following is the sample code:
**********Reading the Values from the Fields in the UI************************************
READ TABLE IT_MULTIVALUES INTO LW_MULTI_VAL
WITH KEY FIELDNAME = 'ZXXX'.
LT_BSP_RANGE = LW_MULTI_VAL-SEARCHVALUES.
READ TABLE LT_BSP_RANGE INTO LW_BSP_RANGE INDEX 1.
LV_PART = LW_BSP_RANGE-LOW.
************Calling standard search for all fields except ZXXX partner function********************
CALL FUNCTION 'CRM_BSP_OIC_1O_SEARCH_FROM_RF'
EXPORTING
IT_SEARCH_TAB = IT_SEARCH_TAB
IT_MULTIVALUES = IT_MULTIVALUES
IV_NUMBER = IV_NUMBER
IV_EXTERN_CALL = 'X'
IV_SELECT_FOR_HEADERLEVEL = 'X'
IMPORTING
ET_GUIDLIST = ET_GUIDLIST
ET_RETURN = ET_RETURN
EXCEPTIONS
DATE_NOT_CORRECT = 1
NO_CARD_TYPE = 2
NO_CARD_NO = 3
NO_PROGRAM_ID = 4.
LV_MAXHITS = IV_NUMBER.
******Function called to change partner number in the required format *********
CALL FUNCTION 'BUPA_SEARCH_2'
EXPORTING
IV_PARTNER = LV_PART
TABLES
ET_SEARCH_RESULT = RESULT
ET_RETURN = RETURN.
CLEAR LV_PARTNER.
READ TABLE RESULT INTO WA_RESULT INDEX 1.
IF SY-SUBRC EQ 0.
LV_PARTNER = WA_RESULT-PARTNER.
ENDIF.
IF LV_PARTNER IS NOT INITIAL.
************Calling Search for field ZXXX partner function**********************************
SELECT HEADER FROM CRMD_ORDER_INDEX
INTO TABLE LI_GUID
WHERE PARTNER_NO EQ LV_PARTNER
AND OBJECT_TYPE EQ 'BUS2000111'.
********LOOP will filter the guids according to the partner function **********************
LOOP AT LI_GUID INTO WA_GUID.
SELECT SINGLE GUID_HI FROM CRMV_LINKPARTNER
INTO LV_GUID
WHERE GUID_HI EQ WA_GUID-LV_GUID
AND PARTNER_FCT = C_PFT .
IF SY-SUBRC EQ 0.
LV_OBJECT_KEY = LV_GUID.
APPEND LV_OBJECT_KEY TO ET_GUIDLIST_PFT.
ENDIF.
ENDLOOP.
********Search guids by standard search function called ***************************
LI_GUID_KEY = ET_GUIDLIST.
*******Guids on partner number search******************************************************
LI_GUID_KEY2 = ET_GUIDLIST_PFT.
**Comparison of the results from the standard field search and the results got from Z field search**
LOOP AT LI_GUID_KEY INTO WA_GUID_KEY.
READ TABLE LI_GUID_KEY2 INTO WA_GUID_KEY2
WITH KEY LV_KEY2 = WA_GUID_KEY-LV_KEY.
IF SY-SUBRC EQ 0.
LV_COUNT = LV_COUNT + 1.
IF LV_COUNT LE LV_MAXHITS.
APPEND WA_GUID_KEY2 TO LI_RESULT_ETGUID.
ENDIF.
ENDIF.
ENDLOOP.
IF LV_COUNT GT LV_MAXHITS.
WA_RETURN-TYPE = C_MESSGTYPE.
WA_RETURN-ID = C_MESSGCLASS .
WA_RETURN-NUMBER = C_NUM.
WA_RETURN-MESSAGE_V1 = LV_MAXHITS.
APPEND WA_RETURN TO LT_RETURN.
ET_RETURN = LT_RETURN.
ENDIF.
CLEAR ET_GUIDLIST.
ET_GUIDLIST = LI_RESULT_ETGUID.
*****************Partner Number Entered in ZXXX not Found*******************************************
ELSE.
CLEAR ET_GUIDLIST.
ENDIF.
ENDMETHOD.
Regards,
S Reddy -
How to enhance standard collective Search Help VMVM
Hey Expert,
Any pointer to enhance the standard search help VMVM with custom search option will be highly appriciated.
Thanks in advance,
SayakHey Expert,
Any pointer to enhance the standard search help VMVM with custom search option will be highly appriciated.
Thanks in advance,
Sayak -
Dynamic Search-help in Selection Screen Parameter
Hi,
Please can you provide some solution for the below requirements.
I have 2 fields ( Organization channel and Team ) in my selection screen. Under one organization channel there can be many teams.
And I am trying a dynamic search help on both the fields using event AT selection-screen on Value request and
FM 'F4IF_INT_TABLE_VALUE_REQUEST'.
But I am facing the below issue .
First I am giving some values in field 'Organization channel' . Then I am clicking on F4 button on my 2nd field 'Team' .
and in debugging mode under the event 'At selection-screen on value request', Select option SO_Team is blank.
The value provided in the Organiozation channel is not being captured in SO_TEAM-Low
Please have a look on the below codes.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_team-low .
if not so_orgchannel-low is initial. "Here so_orgchannel-low value is coming as Zeros.
select * from HRP1001 into table GT_HRP1001
where objid = so_orgchannel-low.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ORGID'
value_org = 'S'
dynpprog = 'ZTEST'
dynpnr = '1000'
TABLES
value_tab = gt_hrp1001
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.Hi,
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_team-low .
"Add This Begin
CLEAR t_dynpfields.
REFRESH t_dynpfields.
t_dynpfields-fieldname = 'SO_ORGCHANNEL-LOW'.
APPEND t_dynpfields.
w_repid = sy-repid.
* reading Screen variables and Values
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = w_repid
dynumb = sy-dynnr
TABLES
dynpfields = t_dynpfields
EXCEPTIONS
OTHERS.
READ TABLE t_dynpfields INDEX 1.
so_orgchannel-low = t_dynpfields-fieldvalue.
"Add this End
if not so_orgchannel-low is initial. "Your code is here
select * from HRP1001 into table GT_HRP1001
where objid = so_orgchannel-low.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ORGID'
value_org = 'S'
dynpprog = 'ZTEST'
dynpnr = '1000'
TABLES
value_tab = gt_hrp1001
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
Regards,
Prabhudas -
How to make dynamic search items in a report?
Hi all,
I have two questions.
1. How to make dynamic search (i.e without GO button) field above report to provide dynamic search by words in one field of report query?
2. How to make similar multiply dynamic search fields on report to provide individual search by selected fields of report with refine capability (i.e any search conditions in different fields must work together as complex WHERE clause)
Thanks in advancehey yuri--
if i'm understanding your questions correctly, the easiest way to achieve the functionality you're after is to have your query criteria fields submit the page when values are entered/selected. the page should then branch back to itself using the submitted criteria in the query. because you're asking about dynamically adding in your where clause predicates, you should consider using a report region of type "SQL Query (Pl/sql Function Body Returning SQL Query)". that way you can use pl/sql to piece together your query based on the provided criteria.
so the part of your question i'm not sure of is when your page should submit itself ("without a GO button" as you said). for your first question, it seems to be a simple matter of javascript. you want users to be able to enter search criteria into a field and have that criteria be using in the report. to facilitate that we have a few self-submitting item types such as "SelectList with Submit" and "Text Field (always submits page when Enter pressed)". for your second question, it seems that you should have a Go button for the user to indicate he's done entering in his query criteria. anyhow, that's up to you, i suppose. hopefully this response will give you the concepts you need to implement this as you'd like.
regards,
raj
ps-after re-reading your post, i now realize there's a chance that you wanted users to not have to submit the page at all when filtering their result sets. if that's the case, you'd have to use javascript for that cumbersome feat. google would be a good place to go for that code. -
Dynamic Search - Upper/lower case of Search Criteria
Hi,
If I enter a search criterion in lower case in the text box field of my dynamic search, the string gets automatically converted to upper case when I press 'Search'. Is there any way to retain the case of the search parameter value?Hi,
the data types for the input fields of the search mask are of type STRING. There is no conversion done there.
If the case changes it has to be done in the applicatgion logic of the view controller, most probably the EH_ONSEARCH().
Another hot option is the data element that is used for the parameter. Does it allow lower case values?
cheers Carsten -
What incorrect syntax found in this query for dynamic search
I make this stored procedure for dynamic search by date from date to employee no employee name
but it give me error why
Create proc CollectsearchData15
@StartDate datetime,
@EndDate datetime,
@EmployeeID NVARCHAR(50),
@EmployeeName nvarchar(50)
as
Begin
DECLARE @SQLQuery as nvarchar(max)
SET @SQLQuery = N'SELECT * from ViewEmployeeTest Where (1=1)'
If @StartDate Is Not Null
SET @SQLQuery = @SQLQuery + N' And (joindate >= @StartDate)'
If @EndDate Is Not Null
SET @SQLQuery = @SQLQuery + N' And (joindate <= @EndDate)'
If @EmployeeID Is Not Null And @EmployeeID != ''
SET @SQLQuery = @SQLQuery + N' And (EmployeeID = @EmployeeID)'
If @EmployeeName Is Not Null And @EmployeeName != ''
SET @SQLQuery = @SQLQuery + N' And (DriverName Like ''%'' + @EmployeeName + ''%'')'
Print @SQLQuery;
Exec sp_executesql @SQLQuery,
N'@StartDate datetime, @EndDate datetime, @EmployeeID nvarchar(50), @EmployeeName nvarchar(50)',
@StartDate, @EndDate, @EmployeeID, @EmployeeName;
but it give me this error why
Msg 102, Level 15, State 1, Procedure CollectsearchData15, Line 28
Incorrect syntax near ';'.I think you are missing an END. Perhaps with no dynamic sql :
SELECT * from ViewEmployeeTest
WHERE
(joindate >= @StartDate OR @StartDate IS NULL)
AND
(joindate <= @EndDate OR @EndDate IS NULL)
AND
(EmployeeID = @EmployeeID OR @EmployeeID IS NULL)
AND
(DriverName Like '%' + @EmployeeName + '%' OR @EmployeeName IS NULL)
Thanks and regards, Rishabh K
Please keep in mind that this might cause proc to generate bad plans
http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Hello All,
In Index Administration we have created certain indexes for certain Knowledge Management folders which index the documents in those folders and make it available in Search.
We have also scheduled these indexes to run after every 2 hrs so that once the document is added in the KM folder it is available in search atleast after 2 hrs.
We are interested in making this search dynamic. i.e as soon as we add documents in these folders they should be available for search.
Is this possible?? If yes let me know the way to do it.
Thanks in Advance.
Yatin PrabhuHi Yatin,
when the respective is event based, this should happen by default. So changed documents are indexed automatically within a predefined time periode.
Maybe you like to enhance this process by increasing the TREX flush time (fefaul 30 min).
System Administration - > Monitoring -> Knowledge Management -> TREX Monitor -> Edit Queue Paremters
Select your index and set the Scheduler Time to a requested update time (Eg All-0:05).
But keep in mind that this might become performance intensive.
Regards Matthias Röbig-Landau -
How to enhance Interaction History Search in CRM 2007?
Hi experts,
Is there any BADI available to enhance the existing Interaction History Search in IC Agent Profile?
Thanks and Regards,
RohitDear Rohit,
Using the below steps you can quickly find out the BADIs related to any transaction.
1) Put a breakpoint in the FM SXV_GET_CLIF_BY_NAME
2) Run your transaction(e.g. Interaction History Search). It will stop at the breakpoint you have in the above FM.
3) Chekc the value of the Fm parameter name. This will contain the BADI names.
Alternatively you can get the BADI names the following way
1)Go to the method GET_INSTANCE of the class CL_EXITHANDLER and put a break point there.
2) Run your transaction(e.g. Interaction History Search). It will stop at the breakpoint you have in the above method.
3) Chekc the value of the filed exit_name. This will contain the BADI names.
Hope this helps.
Regards
Anupam
Edited by: Anupam Koley on Aug 11, 2008 11:55 AM
Edited by: Anupam Koley on Aug 11, 2008 11:57 AM -
Dynamic Search/Results on same page - HELP!
Here is my situation; any help will be GREATLY
appreciated!!!!!
- I have dynamic content using PHP/MySQL
- I am attempting to create a record insertion page
- within this page, I need the ability to querry the
database and display the results on the same page and then use the
results as a part of the record insertion/creation.
So - I have many students, who are assigned a unique student
number and I am creating a reservation system. The person entering
the reservation will enter in the student id (as opposed to their
name) and hit a 'find' button and the result, if found, will be
displayed in a dynamic text field. Then, they fill out the rest of
the info and submit the reservation which gets stored into the
database.
I have played around for a few hours now because I have no
idea how to do this and have just been using trial and error. Can
anyone PLEASE point me in the right direction?
Thanks a bunch!!!
MavI agree, this approach does not seem secure.
Seems like I could keep trying different ID's until I found
one and then
enter reservations under someone else's name and cause havoc
on the system.
"David Powers" <[email protected]> wrote in message
news:eqhvig$h0t$[email protected]..
> mavrickjcs wrote:
>> So - I have many students, who are assigned a unique
student number and
>> I am creating a reservation system. The person
entering the reservation
>> will enter in the student id (as opposed to their
name) and hit a 'find'
>> button and the result, if found, will be displayed
in a dynamic text
>> field. Then, they fill out the rest of the info and
submit the
>> reservation which gets stored into the database.
>
> I'm not convinced that your approach is the best way,
but it's quite
> simple to do what you want.
>
> Create two forms on the page: one for searching for the
details, the
> second for creating the reservation. Use a conditional
statement to hide
> the second form until the first form has been submitted.
You'll need to do
> this by hand, but it's very easy.
>
> if (isset($row_recordsetName)) {
> // this is where the second form goes
> }
>
> Replace "recordsetName" with the actual name of the
recordset.
>
> --
> David Powers, Adobe Community Expert
> Author, "Foundation PHP for Dreamweaver 8" (friends of
ED)
> Author, "PHP Solutions" (friends of ED)
>
http://foundationphp.com/
Maybe you are looking for
-
[solved]system won't upgrade (files exist in the filesystem)
Everytime I try to upgrade I get this message boost: /usr/lib/python2.6/site-packages/Pyste/exporterutils.py exists in filesystem boost: /usr/lib/python2.6/site-packages/Pyste/exporterutils.pyc exists in filesystem boost: /usr/lib/python2.6/site-pack
-
When choosing iCloud backup I choose the most recent backup but then after a few seconds it says "Cannot Restore Backup", what do I do?
-
hi experts, How we can use of ivews tell me please.i m giving u best points.
-
Hi, I have one query Master child relation SELECT D.code DM.CASE FROM D , DM WHERE D.PF = '1' AND D.CODE = DM.PARENT_CODE ORDER BY 1 I want a output for master code 1 times and multiple recoed from child multiles times 1 10000 20000 2 30000 40000 3 5
-
Plz change code from inner join to for all entries
REPORT : ZSD00009 * DESCRIPTION : REPORT FOR TRACTOR ON STOCK AGING * CODED BY : DINESH AGARWAL * SPECS BY : AJAY KOTHI