10G-form: How to open 2nd form based on the queried result in 1st form?

Form1: text_item1, search_result_text_item11, search_button, go_button
Form2: text_item2
When I press search_button on Form1, I am able to get the result in search_result_text_item11 based on the query defined in the search_button TRIGGER.
So I've value in search_result_text_item11.
Now I want to copy search_result_text_item11 value of Form1 to text_item2 value in Form2 when I click go_button;
How do I do it?
Thanks.
Gaurav

i can think of two ways,
one is pass it as parameter, when you are calling the new form
or
in form1, in the when-button-pressed trigger of your go_button, copy the value of search_result_text_item11 to a global variable...
in form2, in when-new-form instance, assign the value of the global variable to text_item2
just be sure to erase the global variable immediately after you assigned to text_item2. also, you may want to put, default_value before assigning the global variable to the text_item2, this is to ensure that you will not have error when the global variable is not created.

Similar Messages

  • How to create a diagram based on the query?

    Hi All,
    I want to create a diagram which will show a structure based on the data in the tables.
    For example:-
    if in a table, we have on two columns,
    one have unique breed of animal and other columns have sub-breeds under that breed. it is one to many mapping.
    in some other table,we have on two columns,
    one have unique sub-breed of animal and other columns have again sub-breeds under that breed. it is one to many mapping.
    i want to display the diagram as shown at the following url:- http://www.signosemio.com/a_analyse-par-classement.asp (diagram:- The naïve ontological classes)
    At the place of Boxes, i will show images.
    but i am not able to generate this diagram.
    please help.

    I am afraid, the Google Visualization plugin (which is used internally by that apex plugin) does not support multiple parents.
    The documentation page says the following
    Each node can have zero or one parent node, and zero or more child nodes.I tried adding an extra row for a child with an additional parent, but it removed the old parent association for that record in the chart
    You might have to some other plugin which supports that or find an JS/jQuery plugin that renders as per your requirement and then write the code yourself to pass the data to JS function from the page.

  • Forms: how to make it so that when the user clicks something, another form pops up?

    Sorry if that's confusing, but like how for example, you have:
    ADDRESS: _________________________  +another address
    & then if the user typed in information into the address field and wanted another address, it would look like:
    ADDRESS: __________________________
    ADDRESS: __________________________ +another address
    & so on... is there a way to do this?

    What you want is something like this
    http://dynamicdrive.com/dynamicindex16/chainedselects/index.htm

  • How to open a file created at the server through form/report at client end

    How to open a file created at the server through form/report at client end
    Dear Sir/Madame,
    I am creating a exception report at the server-end using utl file utility. I want to display this report at the client end. A user doesn't have any access to server. Will u please write me the solution and oblige me.
    Thanks
    Rajesh Jain

    One way of doing this is to write a PL/SQL procedure that uses UTL_FILE to read the file and DBMS_OUTPUT to display the contents to the users.
    Cheers, APC

  • How to open a report stored in the CMS with the RDC ?

    Hello,
    With CRXIR2, reports can be stored in the CMS.
    Does anybody knows how to open such a report with the RDC (version 11.5) ?
    I really need to use the RDC because I have to save subreports on HDD
    and it is unavailable with the RAS SDK (neither Java nor .Net).
    Thank you for your help.
    Alain

    Hi Don,
    Thanks for your answer,
    Why saving subreports ?
    - orthogonality reasons... we can import them, why c'ant we do the opposite?
    - consitency reasons... we should be able to do the same as we do with the designer, (why this option is available in the Designer ?)
    Furthermore, the job is already done in Crystal, it should not be so difficult to port it to the RAS.
    - regression reasons... this is something we could do in the past (from Delphi, with the RDC), now the RDC is gone....
    Now I will tell you my personal reason:
    We have huge reports (about 30 subreports), based on huge business views.
    As a result, just loading the report (openClientDocument) takes more than one minute.
    In a production environment the custommers do not want to accept that.
    So:
    - we keep the business views at design time because it's a requirement
    - Once the report designed I try to cut the BusinessViews and replace them by SQL commands
    I suppose you know the RAS to be aware that it can't do that by far.
    I wrote a program to disconnect all the ReportObjects from the BusinessView, it's Ok
    Now I need to remove the BusinessViews from the report and all subreports.
    I can automate CrystalReports for it, but only at the report level...
    This is my particuliar reason for saving subreports.
    Am I the only one to have this request ?
    If you want, of course, I'm ready to help developing those missing things in the RAS.
    I'm serious, tell me if you are interested.
    Thank you again and best regards
    Alain

  • How to create a record based on the name of a file in the file-system?

    Hi,
    With a lot of pictures I want to have a database to gather some information about these pictures.
    First question is how to generate a record based on a file in the file system?
    e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
    now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
    any suggestions?
    any reaction will be appreciated.
    Leo

    Link to Create directory
    http://www.adp-gmbh.ch/ora/sql/create_directory.html
    You can create a list of files in the directory and read the list files from that directory.
    [UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
    [Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
    SS

  • How to open a .JAR file on the Z30

    Hi,
    Would anyine know how to open a .JAR file on the Z30?
    I get a message saying "Unable to open" when I click on the .jar file i want to open in my blackberry & install.
    Cheers
    Mario

    JAR files are for older java phones, they dont work on BB10
    maybe you should look into using SNAP to get some apps yoru looking for
    http://supportforums.blackberry.com/t5/Downloaded-Applications-for/You-Upgraded-to-OS-10-2-1-and-wan...
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • How to invalidate a session based on the session id

    How to invalidate a session based on the session id

    You have to write your own support for this.
    It used to be in the API, but was deprecated as a security hole.
    The best way to do it is implement a session listener (javax.servlet.http.HttpSessionListener) which notifies you when sessions are created/destroyed.
    You can then keep a map of sessions in your own code, indexed by session Id, and access any/all of them to invalidate as you choose.

  • How to change datasource name based on the partition in configplan

    Hi
    Can any one please give me some solutions regarding how to change datasource name based on the partition in
    configplan.
    can't we do this in configuration plan?

    If you want to change template based on parameter. you have to use below syntax
    v_layout boolean
    V_LAYOUT:= FND_SUBMIT.add_layout(template_appl_name => 'SQLAP' -- application short name
    ,template_code => 'HUBAPAPN' -- template name
    ,template_language => 'en'
    ,template_territory => '00'
    ,output_format => 'PDF');
    Above can be used in plsql stored procedure before submitting Concurrent Program (Bi Publisher report) or may be you can try to add this code in Oracle reports after report or before report trigger
    Thanks
    Kamalakar

  • How to handle vendor discounts based on the qty / value procured.

    Hello
           How to handle vendor discounts based on the qty / value procured.
    a.       Scenario: you have entered into a contract with vendor that you will buy goods worth Rs 10000/- and if you buy goods worth more than 100000 the vendor says he will give a discount of Rs 5000/- @ the end of the year.  
    i)                    How to handle this sceneriou2019s with SAu2019s
    ii)                   What does STD SAP offer.
    Regards
    Sapman man

    Hi,
    For the discucount condition type, you have to maintain scales.
    Take Condition type -  Discount Value ( RB00)
    Discount Value ( RB00) - Means Fixed discount. For this condition type, you have to maintain Scale basis as Value scale 'B' in the condition type customization.
    Transcation : M/06
    Select your condition type RB00 and click on the details icon.
    In the Scales block, you have to maintain and save.Calculation type = Fixed amount
    Scale basis = Value scale 'B'
    For this condition type, you have to maintain scales in the inforecord.
    Transcation : ME12
    Select this condition type, click on the Scales icon. There you have to maintain like
    From : 10,0000            Rate: 5000.
    It means, if the document value is reached 10,0000 then discount is 5000rs. If the value islessthen the 10,0000 then no discount.
    Regards
    KRK

  • HOw to get an Alert based on a Query

    I currently have a maintenance plan in place that does a backup, re-indexing, etc..  If a task fails, it sends me an email alert.  I would like to add a "T-SQL Statement Task" that will execute a query and send me an email alert based
    on the results of the query.
    For example:   Select Cast(case when count(inventory.items) > 1000 then 1 else 0 End as bit) as SendAlert from Inventory
    The maintenance plan's alert function constraint seems to be triggered whether the Query executed successfully or not RATHER THAN from the Query Result.
    Can I accomplish what I want from within a maintenance plan or is there some other way to do this? 
    Thank You.
    Jack

    I would create a stored procedure using  the following t-sql code:
    Create Procedure [dbo].[GetInventoryAlert]
    as
    Begin
    Set nocount on
    declare @body varchar(max)
    set @body = cast( (
    select td = SendAlert + '</td><td>'
    from (
    select SendAlert = Cast(case when count(inventory.items) > 1000 then 1 else null End)
    from Inventory) as d
    for xml path( 'tr' ), type ) as varchar(max) )
    If Len(Rtrim(@body))>0
    Begin
    set @body = '<table cellpadding="2" cellspacing="2" border="1">'
    + replace( replace( @body, '&lt;', '<' ), '&gt;', '>' )
    + '</table>'
    Set @body='****BODY HEADING OPTIONAL****<br/><br/>'+@body
    exec msdb.dbo.sp_send_dbmail @profile_name='MAIL PROFILE',
    @from_address='FROM EMAIL ADDRESS',
    @recipients='COMMA SEPARATED RECIPIENTS',
    @subject='SUBJECT OF THE EMAIL',
    @body=@body,
    @body_format='HTML',
    @attach_query_result_as_file=0,
    @query_result_header = 0
    End
    End
    Also the above can be embedded as t-SQL in  a maintenance plan tasks control.
    I would add an Execute T-SQL Statement Task. Then branch the task where applicable.

  • View image based on the query

    view image based on the query
    hi i what to download my image based on the following query,am in jdeveloper 11g am using this method for download,i show the whole link of procedure where the query is located and how was it used in forms,but nw i what to take the query and put it in my java code not the webutil just the query,i put the whole forms package so you can undestand the logic of the query how was it used
        public void ViewImage(FacesContext facesContext, OutputStream outputStream)
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            // get an ADF attributevalue from the ADF page definitions
            AttributeBinding attr = (AttributeBinding) bindings.getControlBinding("DocumentImage");
            if (attr == null)
                return;
            // the value is a BlobDomain data type
            BlobDomain blob = (BlobDomain) attr.getInputValue();
            try
            {   // copy the data from the BlobDomain to the output stream
                IOUtils.copy(blob.getInputStream(), outputStream);
                // cloase the blob to release the recources
                blob.closeInputStream();
                // flush the output stream
                outputStream.flush();
            catch (IOException e)
                // handle errors
                e.printStackTrace();
                FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(), "");
                FacesContext.getCurrentInstance().addMessage(null, msg);
        }when i use the above method in diffient screen without the upload i get this error
    Target Unreachable, identifier 'viewImage' resolved to null
    Error     
    The file was not downloaded or was not downloaded correctly.
    the below procedure is how i what to download the image but in java,but usin query in below procedure
    function right_file (idref integer, i_file varchar2) return boolean is
    begin
         -- check directory
         -- file size
           if webutil_file.file_exists(dir ||'\' ||i_file) then
           return true;
           end if;
    return false;
    end;
    procedure download(i_dref integer, i_file varchar2) is
    file varchar2(50);
    dlin_id integer;
    l_success boolean;
    begin
         if not right_file (i_dref ,i_file ) then
                select file_name,dlin.id
                into file, dlin_id
                from sms_document_links dlin
                    ,sms_document_references dref
                where dref.id = i_dref
                and dref.dlin_id = dlin.id
       l_success :=  webutil_file_transfer.DB_To_Client
                         ( dir ||'\'|| file,
                           'SMS_DOCUMENT_LINKS',
                           'DOCUMENT_IMAGE',
                           'id = '||dlin_id);
      end if;          
    end download;
    procedure open_image (i_dref integer,i_file varchar2) is
    begin          
         local_path;
      local_viewer;       
         if I_file is not null then
              file := i_file;
         else
              select file_name into file
              from sms_document_references
              where id = i_dref
         end if;
         download(i_dref, file);
         if not webutil_host.ID_NULL(active_process) then
        close_previous_image_process;
         end if;
         image_dir_file := dir ||'\'|| file;
         process :=  webutil_host.nonblocking (image_viewer || image_dir_file);
         if webutil_host.ID_NULL(active_process) then
              active_process := process;
         end if;
         if webutil_host.equals(process,active_process) then
              null;
         else     
        close_previous_image_process;
        active_process := process;
         end if; 
         viewer_active := true;
    end;--

    oh ho.
    Dear user,
    this is not code factory/design factory/bla bla bla.
    this area for guide peoples where you are? what is way right to reach your target/goal. whatever in you words...
    from your post and also procedures, you are from forms background. am also came from ORacle froms 10g background try to understand. and implement it adf.
    back to topic:
    Target Unreachable, identifier 'viewImage' resolved to null Error .i just am giving the steps to igonre your error
    simple go to your taskflow - go to overview section - go to managed beans. configured you which you created bean say as x.java
    if you create following code can be seen in source
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="xx-V-TF">
        <default-activity id="__1">xxV</default-activity>
        <managed-bean id="__2">
          <managed-bean-name id="__4">SUP1040V</managed-bean-name>
          <managed-bean-class id="__5">com.x.x.view.xBeans.xxV</managed-bean-class>
          <managed-bean-scope id="__3">backingBean</managed-bean-scope>
        </managed-bean>
        <view id="xV">
          <page>/ReportsPageFragments/xxV.jsff</page>
        </view>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>

  • How to include non database item in the query

    Hi
    I have a Master-Detail form. where in the detail block one of the field is text item 'X' attached the list of values(Y). Master block includes non database items which is based in the decoding result of the database items for example:
    Gender(Male, Female)>> non database item
    Gender_id(M,F)>>database item
    the form is created based on the template.fmb form for apps. When I run the form in the query mode, i can query about any database item while including query about others non database item does not affect.
    how to can i modify it so this could be handled??
    I know that one way to avoid this issue is to create a view with all my desired field.
    but there should be away to override the build in query used by oracle apps...
    any one has a link, source, document... etc that help on this??
    any idea how to do it without creating a view??
    thnx alot

    Hi HST,
    You can code the handling in POST-Query of the corresponding block to retrive the corresponding data depending on the Queried data.
    Regards,
    Kiran

  • Sending email using PL/SQL based on a query result

    Hello all,
    I want to create a procedure using PL/SQL, based on a query result.Here is the scenario:
    I have multiple tables in Target and Source databases that I want to compare(not the whole table but queries on these tables) and if they differ, I want to shoot an email. I have some ideas how to implement this but not sure whether it is the best approach.
    select Acct_id, total from SourceTableA
    minus
    select Acct_id, total from TargetTableA
    select Acct_id, sum from SourceTableB
    minus
    select Acct_id, sum from TargetTableB
    If the result of any of above queries > 0 then I want to shoot an email and want to repeat this procedure in the morning every day.
    I know how to implement send_mail procedure using UTL_SMTP package and how to schedule tha job by dbms_job package. But I am not sure how to implement the result of minus query. In case if minus > 0 then I also want to send the name of tables in the email message where source and target tables are not same. Should i use cursor, variable or insert the result in a new table? any help would be highly appreciated. Thanks in advance.
    Khan

    Actually these queries are the part of our daily testing that we run everyday manually(after the scheduled ETL load) to see if there are any discrepencies between our datawarehouse tables and source tables. So instead of running these queries manually everyday we want to schedula a procedure that will shoot an email in case of any discrepency and indicate which tables have problems.

  • Validate the input file against a given schema inside an orchestration and producing 2 different files based on the validation result

    HI All,
    I have a situation.
    I need to validate the input file against a given schema inside an orchestration and producing 2 different files based on the validation result.
    A predefined success schema in case of  validation success and negative schema structure for validation failure.
    any advice ?

    Hi Rachit,I following the blog
    http://dietergobeyn.be/validating-biztalk-messages-orchestration/ and stuck in few things
    I created a helper class with the name Validation and following code
    [Serializable]
        public class Validation
            private bool _isValid = true;
            public bool Validate(XmlDocument document, Type schema)
                XmlSchemaSet set = new XmlSchemaSet();
                if (typeof(SchemaBase).IsAssignableFrom(schema) && !schema.IsNested)
                    set.Add((Activator.CreateInstance(schema) as SchemaBase).Schema);
                ValidationEventHandler eventHandler = new ValidationEventHandler(HandleValidationError);
                document.Schemas = set;
                document.Validate(eventHandler);
                return _isValid;
            private void HandleValidationError(object sender, ValidationEventArgs ve)
                _isValid = false;
    public static bool ValidateMessage(XLANGMessage msg)
    XmlDocument xDoc = new XmlDocument();
    xDoc = (System.Xml.XmlDocument)msg[0].RetrieveAs(xDoc.GetType());
    Type t = typeof(Schemas.External.Invoice_v3_1);
    Validation validation = new Validation();
    return validation.Validate(xDoc, t);
    First thing, Do i need to write the ValidateMessage method inside the helper class or not ??
    If inside, how to add the reference of schema files in the statement (Type t = typeof(Schemas.External.Invoice_v3_1);)
     I tried adding the reference of my schema project but it is showing error.
    And what is to be written in the ValidateMessage expression shape in Orchestration ?
    Really appreciate your help.

Maybe you are looking for