Query a view w/data entered into a text field populated by 2 table fields

Hello, Looking for advise!!! I have a tabular canvas thats datablock uses a view to populate. In this canvas I have a text field that has been populated with first_name || ' ' || last_name in the database node of the property pallate column name. The text field is not in the table or view. I have created it in the data block and make it a database item. However, I would like to have the user push a search button to go into ENTER_QUERY mode then the user would enter the criteria to search on in this text field. The user would then push button to EXECUTE_QUERY. The result is I retrieve all records. I want any search criteria entered into this field to be used against the last_name field to retrieve any records equal to the search criteria entered, for example A%. Does anyone know if this is possible?

Hi!
You have to use PRE-QUERY trigger to compose the search criteria. Below I put an example of it. You have to have at least one item in the block wich is true database item (e.g. it has to exist in table or view on which your block is based). In the following example EMP_DESC is your non-database search item and EMP_ID is the database one.
Declare
Dummy VARCHAR2 (2000);
begin
if :EMP.EMP_DESC IS NOT NULL and :EMP.EMP_ID IS NULL
then
Dummy := '#IN (SELECT emp_id FROM Employees WHERE Upper (emp_first_name)||'' ''||Upper (emp_sec_name) LIKE Upper (''%'||:EMP.EMP_DESC||'%''))';
Copy (Dummy, 'EMP.EMP_ID');
end if;
end;
Thats it. Note the # sign in the first position of the Dummy assignment. This is required by forms to glue your search criteria and block's where clause. You may analize LAST_QUERY property of your block in order to understand how this work. Remember also to set the QUERY_LENGTH property of the EMP_DESC item to the value that could contain the whole Dummy string (otherwise it will give you an error and cut the mar the query).
Hope this helps.
Sergey.
P.S. And set your EMP_DESC database item property to NO.

Similar Messages

  • Form is cutting off half of data entered in a text box

    I have a form for users to complete and email back to us which works fine for some users. When some users are completing the form half of the data entered into the text boxes is being cut off. I am not sure why it is working for fine for some and not for others. Any help is greatly appreciated. Thanks

    Check the max length on the field being trimmed.

  • Modify the Field Type of standard Table fields in a Query

    Hello. I have a question.
    Is there a way to "modify" the field type for standard table fields that are included in a Query?
    I made a simple query out of a join of tables, but several fields have a lot of decimals, and I would like to present them in the query without any decimals, just as a regular "N" field.
    I tried the possibility of creating extra local fields where all I do is transfer the value to the new "N" field, but I have many fields like this, so if there's a better way; I'd prefer that.
    Maybe somewhere in the InfoSet there's a way to modify the type of the standard table fields?
    Thank you.

    Hi,
    This document may help you out.
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm]
    Cheers,

  • Sql Query takes too long to enter into the first line

    Hi Friends,
      I am using SQLServer 2008. I am running the query for fetching the data from database. when i am running first time after executed the "DBCC FREEPROCCACHE" query for clear cache memory, it takes too long (7 to 9 second) to enter into first
    line of the stored procedure. After its enter into the first statement of the SP, its fetching the data within a second. I think there is no problem with Sqlquery.  Kindly let me know if you know the reason behind this.
    Sample Example:
    Create Sp Sp_Name
    as
     Begin
     print Getdate()
      Sql statements for fetching datas
     Print Getdate()
     End
    In the above example, there is no difference between first date and second date.
    Please help me to trouble shooting this problem.
    Thanks & Regards,
    Rajkumar.R

     i am running first time after executed the "DBCC FREEPROCCACHE" query for clear cache memory, it takes too long (7 to 9 second)
    Additional to Manoj: A
    DBCC FREEPROCCACHE clears the procedure cache, so all store procedure must be newly compilied on the first call.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Manual data enter into SAP Service Receipt

    Hi,
    Can anyone please tell me how to manually enter data into SAP Service Receipt?
    1. What is the transaction for that?
    2.What are the steps to do?
    I'm new to SRM. Any help will be highly appreciated...
    Thanks!
    Uma.

    Hi,
    I am not sure to understand what you mean with "sap service receipt"...
    If it is "Confirm good receipt or service" in SRM, transaction are :
    BBPCF02 to receive your own purchase order
    BBPCF03 to receive all purchase order (central recipient)
    Kind regards,
    Yann

  • Adobe Reader 9.4  won't allow saving-copying-printing of data entered into form fields.

    Hello, all.  I own a fully automated Continuing Education website with a national customer base.  The release of Adobe Reader 9.4 has brought a major problem for us which we haven't been able to overcome, and it's a critical issue which will destroy our business if the problem continues. 
    The problem:  Our professionally licensed website users earn online, instantly downloadable Continuing Education certificates in PDF file format, which are auto-generated by our software program when the user has successfully completed a course and its quiz.
    Each certificate is a template created by Adobe Acrobat Pro 6 which contains the boilerplate course goals, credit hours earned for the course, plus all of our educational approval numbers needed to conduct business in each state.  THE PROBLEM HERE is that these generated certificates ALSO have form fields which are auto-completed by our system when the user successfully completes his or her course - i.e., the user's name, his license number, and the date and hour and minute of completion.  Until some of our customers began to use Adobe Reader 9.4 on their PC this past week, the certificate generation process has performed flawlessly - for over 3 years now, for over a thousand customers - the only exception being the  occasional MAC user who needs to download the correct version of Adobe Reader, and to use the correct browser. 
    Beginning last week, site users who have downloaded 9.4 can no longer SAVE their Continuing Education certificates to their computer with their name, license and date and time of completion showing on the certificate.   And they can't even print the certificate correctly - their name, license, and date of completion appear as blank lines.  They can't download or email the certificate with the critical form field data showing on the document. This is a devastating situation for our business and for the users - who certainly won't return, and are demanding refunds. 
    In fact, I (who installed 9.4 last week) discovered that I can't even download and save an intact copy of a customer's certificate from my own website, OR copy and paste information from a client's generated certificate in order to manually create a certificate for him or her.  The on-screen message tells me that I am not allowed to do this with this document .... despite the fact that I was the creator of the document. Needless to say, when I un-installed 9.4, I had none of these problems.
    Customers wouldn't have problems either if they uninstalled 9.4 - but you can't tell customers who call in to complain, to uninstall their Adobe Reader program and find something else.  They also have to use Adobe Reader to view over half of the courses we offer, and they need to be able to work with them effectively with no problems. 
    In the past, because of occasional Adobe Reader problems of a different sort, we could tell customers to use Foxit or Nitro PDF if they had Adobe issues.  But that was back in the day when there was no competition in running an online CE website.  Now there is plenty of competition, and customers will just go elsewhere before they will try to reconfigure their computer just to stay with our site.
    I will bet that hundreds (thousands?) of other online businesses who work with system-generated form fields in PDF documents have been similarly affected.   
    Is there a solution here?  Surely this was an UNINTENDED result of  Adobe's upgrade to 9.4.   Is there something that we can do at our end to eliminate these issues?  There are NO security protections or limitations imposed on these certificate documents.  And we CANNOT eliminate the form fields that are filled internally when the customer passes t the course.  Date and time of completion and all the rest are required by all of the States which license us.  Many thanks!

    That was it!
    Thanks

  • Query on viewing contacts data on my E50

    Just had my E50 a week or so & am still finding my way around it. I agree with previuos posts re font size & the contacts view in PC suite that hangs....
    I have just sent over my 650 odd Outlook contacts via synchronise & can see that the E50 lists all the contacts by name - & I can also agree with a previous post that it would be nice that you could search for the first name as well as the family name of your contact.
    As a business user though who finds it difficult to remember 650 names, it would be far far better for me to list by company rather tht by name.
    Is there any way of doing this - except of course changinging my Outlook file by placing a name in the company slot & the company in the name slot?
    Now that is an option I would love Nokia to do in a future softwate update!
    FrankJB

    Hi,
    You can check if there are any time stream ids with weighing factors used in the storage profile. Those can be changed to 30/70 and the data would be disaggragted in 30 / 70 then.
    Also check if the KF time based disaggregation  in planning area is based on any other KF, then the values in the reference KF would be acting as a proportion for calculation of disaggregation. You can change the values in reference KF for achieving the same result also.
    Let me know if it helps.
    Regards
    Gaurav

  • Can I create a fillable form where data entered into to one field will automatically populate into o

    I have a document that I need the persons name to show up in 5 different locations across 5 pages. As the user fillis in the first textbox for name, can adobe use that data to fill in the remaining 4 text boxes?

    Yes, just give the fields the same name. If you only want one of the fields to be updated, then you need to use a different name for the other fields and use JavaScript to populate these fields.

  • Is There a Way to Share the Data Entered Into an App?

    I would like to create an iPhone app (using FB 4.6) that is kind of a shell where the user answers questions that will be used to create certain documents.  My goal would be that after the first user that purchased the app answered all the pertinent questions, the data could be used for selling the same app to others who would be interested in the populated documents (such as in a corporate setting).  So I am wondering if there is any way to do this such as have an external xml file that is read, tranferring the data wirelessly from device to device, etc.  Any suggestions would be greatly appreciated.
    Dave

    no

  • Where can I find the files containing the data entered into IWeb?

    I am having difficulty uploading a site I created on IWeb onto a webhost I just signed up with.
    I have all of there details and have troubleshot the issue to no avail.
    They suggested using file zilla?? but I need to locate the data files with the info I created for the site..
    Anyone know what to do??
    Cheers

    File Zilla is a dedicated ftp client that you use to upload your published web site to your server.
    I would suggest that you perhaps consider using Cyberduck instead as this might be easier.  Cyberduck is a dedicated ftp client in the same way that File Zilla is.
    To be able to upload what you need is your published website.  Open iWeb and select the site that you want to publish and then select publish to a local folder and your site will then be published to your desktop.  You then upload this to your server using Cyberduck or File Zilla.

  • How do I give user rights to save data entered into a form?

    I created a form in LiveCycle and open it using XI.  When I open the form, I can fill out the form but I can only print the form.  I have tried changing the security in Livecycle to allow users to save the form with their changes.  I have tried to distribute the form but it doesn't send.  I don't need the information sent back to me though.  This is a form that everyone in my department uses and saves to their local drives.  Any suggestions?

    You don't Reader-enable a form with Reader, you have to do it with Acrobat. Once the form is Reader-enabled with Acrobat, it will be savable with Reader. In Acrobat 9 you'd select:
    Advanced > Extend Features in Adobe Reader
    By the way, there is no Acrobat/Reader IX, though there is a version 9. They didn't start with the roman numerals until version 10 (X).

  • How Can i send the data entered in Input text fields to e-mail?

    Iam Jennifer, Iam having a doubt in Flash, I hope that you
    are going to solve my problem, Iam taking 3 Static text fields as
    Name, Age and Country and besides each and every static text fields
    i have taken 3 input text fields with different instance names,
    when i enter my Name, Age and Country details in the input text
    fields and after entering those details if user clicks the submit
    button the data should be send to some mail address, is it possible
    Im not so good at action script, but i hope that any one can
    help me...
    Iam attaching the action script code also, please find the
    attachment below, the actions are given to button.
    Attach Code
    Btn.onPress = function ()
    mail_lv = new LoadVars();
    mail_lv.dummy1 = "";
    mail_lv.subject = "Details";
    mail_lv.message = "hi";
    mail_lv.username = "name_txt".text;
    mail_lv.age = "age_txt".text;
    mail_lv.country = "country_txt".text;
    mail_lv.onLoad = function ()
    trace("Sent successfully...");
    trace("mail_lv.subject = " + mail_lv.subject);
    trace("mail_lv.message = " + mail_lv.message);
    mail_lv.send("mailto:[email protected]", "_blank");

    The names of your variables, "name_txt", for instance, should
    NOT have quotes around them. Use:
    mail_lv.username = name_txt.text;
    mail_lv.age = age_txt.text;
    mail_lv.country = country_txt.text;

  • Text entered into a text box is visible only when the text box is selected (highlighted) How do I get the text in all the text boxes to show up?

    I use a Mac.  I sent out a pdf form for signatures to 6 recipients.  Two of the 6 forms came back and visually are perfect.  Signature and date fields show the signature on my screen and when printed.  The other 4 forms however only show the signatures/date text when I click on the individual field and the text does not appear when printed or on screen.

    Are the users using a Mac as well? If so, are they actually using Adobe Reader or are they using Mac Preview. If the latter, it will break the pdf form.
    Here's some info and a possible fix: Correcting PDF Form Field Appearances after Saving with Preview on the Mac

  • Dynamic data bindig into a text field

    guys,
    i have a label in the report. i wanna do a calculation in the format trigger of that and display the answer on the label. is this possible???
    if possible how am i to do it... pls help..
    cheers
    anushka

    Hello,
    It is possible to modify the text of a lable dynamically under the following conditions :
    - the label value must reference a lexical variable :
    &dummy
    - use the builtin SRW.SET_FIELD_CHAR (0 , <value> ) in the format trigger to set the lable value dynamically
    regards

  • 9i Forms Challenge! Query records from a data block based on this view

    According to Oracle Support, it is not unusual that complicated views like the one shown below fail to work in Forms. They recommend that I "try using a When-validate trigger" to solve the problem. I would be grateful if someone could show me how. It would also be helpful if someone could explain why Forms would have a problem querying such a view in the first place.
    Thanks very much!
    CREATE TABLE t (
    id NUMBER,
    property VARCHAR2(2),
    val NUMBER
    INSERT INTO t VALUES ( 1, 'A', 10 );
    INSERT INTO t VALUES ( 1, 'B', 11 );
    INSERT INTO t VALUES ( 2, 'A', 12 );
    INSERT INTO t VALUES ( 2, 'B', 13 );
    INSERT INTO t VALUES ( 3, 'A', 14 );
    || This view produces an ORA-01403 no data found error
    || in Oracle Forms 9i.
    CREATE OR REPLACE VIEW t_v
    AS
    SELECT id,
    MAX( DECODE( property, 'A', val, NULL ) ) AS a_val,
    MAX( DECODE( property, 'B', val, NULL ) ) AS b_val
    FROM t
    GROUP BY id;

    Steve,
    Your suggestion to put the view definition into the tablename field of the forms properties sheet was fruitful.
    Instead of the ORA-01403 error (No data found), I get ORA-24347 (Warning of a NULL column in an aggregate function). This error led me to discover bug 2457121, filed 11-Jul-2002, through Metalink. This bug is reported to only be a problem in Forms 9.0.2.7. It is reported to be fixed in Forms version 9.0.2.12.
    Thanks for your interest and help.
    - Doug

Maybe you are looking for

  • Sound Output

    Just recently my macbook stopped playing sounds unless it was hooked up to external speakers via the headphones jack. I also noticed a red LED light shining out from the headphones jack. When in System Preferences under 'Sound' and 'output' it does n

  • Gigaworks 750 speaker wiring sucks

    I would like to upgrade speaker wire to quality 6ga. Is there a way to accomplish this? I want to ceiling mount the satellites and run the wiring thru the attic to a central junction panel. Unfortunately the unusual configuration of RCA to spring cli

  • The tale of BSoD and Depot exchange. New Lenovo customer.

    Greetings community, new first time owner of a Lenovo Product.... This has been a very upsetting experience to the date. I received my W530 5/20/2013 after two delays in the shipping. Upon the initial startup I was met with an immediate BSOD. Not ent

  • Solution to detect and discard duplicate JMS messages

    Hi All,           I have a scenario where in I require this scenario:           Even though JMS messages are sent twice OR multiple times from JMS producer,as for as consumers are concerned,the JMS consumer should be able to detect and discard the me

  • Menu Builder error message

    Hi Guys, I am trying to edit an menu screen but each time I try to save the changes I get this error message "Access Violation at address 00420E1C in module 'Menubuilder.exe' Read of address 00000008" Does anybody have any ideas?, I have tried deleti