To show the result of 2 grids in a single csv file

Hi,
i want to show 2 grids(seperately) in a csv file.i created a aggregate query that is giving me result of 2 grid seperately  but when i use a igrid template with aggregate query it is giving me result in a single row.i.e instead of giving 2 grids it is giving result with all the columns in a single row .I am using Applet.saveas CSV File();is there any way to have 2 seperate grid in a single Excel file.
thanks in advance.

Karthik
Aggregate Query is mostly used to combine multiple queries which have at least one common column among those.
For ur requirement, u can use direct BLS with the help of Action Block <b>WriteFile</b>.
<b>Scenario :</b> u hv 2 queries - one with 4 columns A, B, C & D; another with 2 columns E & F
U want to display those tables separately in one single Excel Sheet.
<b>Solution :</b> Forget AggregateQuery and Take the following steps
Step 1: Take those two Queries in one sequence
Step 2: Define two Local variables - Text1 & Text2 with String Data Type
Step 3: Use Repeater to loop one query's result and Assign the Looping results to the Local.Text1 using action <b>Assignment</b> as following expression in the Link Editor 
<b>Local.Text1 &
Repeater_0.Output{/Row/A} & tab &
Repeater_0.Output{/Row/B} & tab &
Repeater_0.Output{/Row/C} & tab &
Repeater_0.Output{/Row/D} & crlf
</b>
Step 4: Use another Repeater outside the first Repeater to loop 2nd query's result and Assign the looping results to the Local.Text2 in similarly way as follows in the Link Editor
<b>
Local.Text2 &
Repeater_1.Output{/Row/E} & tab &
Repeater_1.Output{/Row/F} & crlf
</b>
Step 5: Use action <b>WriteFile</b> outside those above Repeaters and take the mode <b>APPEND</b> and FilePath <b>C:
test
TwoTables.xls</b> and Text as follows
<b>
"A" & tab & "B" & tab & "C" & tab & "D" & crlf & Local.Text1 & crlf & crlf &
"E" & tab & "F" & crlf & Local.Text2
</b>
in the Link Editor
Step 6: Hit F5/F6 and see the Excel File with two tables showing separately in the mentioned path above.
Regards
Som

Similar Messages

  • Why this query does not show the result?

    Why the query with the schema prefixed does not show the result and the query without schema display the correct results?
    SQL> select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS';
    select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS'
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    SQL> select data_object_id,object_type from dba_objects where object_name='HR.JOBS';
    no rows selected
    SQL> select data_object_id, OWNER, object_type from dba_objects where object_name='JOBS';
    DATA_OBJECT_ID     OWNER                          OBJECT_TYPE
    69662              HR                                 TABLE
                       OE                                 SYNONYM
    SQL> SELECT USER FROM DUAL;
    USER
    SYS

    Hi,
    the column object_name refers to a object_name which is 'JOBS', the column owner refers to the owner 'HR', the value isn't stored together, so you have to select the two columns. It is the same behaviour as every other table/view. Have a look at the values in the view DBA_OBJECTS.
    Herald ten Dam
    Superconsult.nl

  • How can show the result of a measuring that is done in a sub-program in my main panel?

    How can show the result of a measuring that is done in a sub-program in my main panel?

    In your subvi, wire the result(s) you want to ouput to the main program to an output terminal on the connector pane.
    For a tutorial on subvi's, search the help for "connector panes" anc click on tutorial.
    ~Tim

  • How To Make Search Query Showing the Result As List of Buttons.

    Can some one give me an idea how to start to make a Search Query showing the results as list of buttons.. i have already have my buttons with names. i just dont know how to make a search query.
    this is my on screen keyboard i made..
    im making a system that the result were a list of buttons.. showing like this
    This was supposed to be the output of the query that i need to do..
    Please help me.. i just need a idea or tips how to make this one.

    Here is code I posted recently for another question
    Public Class Form1
    Const BUTTON_SIZE As Integer = 20
    Const SPACE As Integer = 5
    Sub New()
    ' This call is required by the Windows Form Designer.
    InitializeComponent()
    ' Add any initialization after the InitializeComponent() call.
    Dim buttons As New List(Of List(Of MyRadioButton))
    For row = 1 To 6
    Dim newRow As New List(Of MyRadioButton)
    buttons.Add(newRow)
    For col = 1 To 6
    Dim button As New MyRadioButton()
    button.row = row
    button.col = col
    button.Height = BUTTON_SIZE
    button.Width = BUTTON_SIZE
    button.Left = col * (BUTTON_SIZE + SPACE)
    button.Top = row * (BUTTON_SIZE + SPACE)
    button.Name = String.Format("radGr1{0}_{1}", row.ToString(), col.ToString())
    Me.Controls.Add(button)
    newRow.Add(button)
    AddHandler button.CheckedChanged, AddressOf Radio_Change
    Next col
    Next row
    End Sub
    Private Sub Radio_Change(ByVal sender As Object, ByVal e As System.EventArgs)
    Dim button As MyRadioButton = CType(sender, MyRadioButton)
    Dim row As Integer = button.row
    Dim col As Integer = button.col
    End Sub
    End Class
    Public Class MyRadioButton
    Inherits RadioButton
    Public row As Integer
    Public col As Integer
    End Class
    jdweng

  • Execute a VO '4' times and show the result in single table at once.

    Hi,
    I want to execute single a VO query multiple times with different parameters and show the results together in a Table at once
    In Detail
    I have a table to which is associated with a VO.
    The VO contains SQL whose WhereClauseParameters need to be dynamically binded.say headerId and lineId
    Select ... from ....where headerId = :1 AND lineId = :2
    I have to pass these 4 values and show all the results in a single table
    headerId lineid
    H1 ............... L1
    H1 ............... L2
    H2 ............... L1
    H2 ............... L2
    I understand that i need to bind parameters dynamically and exceute the VO.
    As i have 4 different set of parameters, the view object will be executed 4 times.
    I want to show all the results together in a single table.
    How can I do it.
    thanks,
    Gowtam

    Hi Mani,
    Thanks a lot for the patience and detailed solution.I will try it out and tell you the status.
    Meanwhile, I have 2 questions on this solution(just curious)
    I will give you the snapshot of the table
    Table - ModelInfo
    Model......Tube..... Float....Size......Col5.....Col6.......Col7.......
    M1............T1.......... F1. .....1..........C15......C16.....C17.....
    M1............T1...........F1.......2..........C25......C26.....C27.....
    M1............T2......... .F2.......1..........C35......C36.....C37.....
    M1............T2...........F2.......2..........C45......C46.....C47.....
    M2............T1.......... F1. .....1..........
    M2.............T1..........F1.....2.........Cn5.......Cn6........Cn7
    .<continues...>
    .<till>
    .Mn............Tn..........Fn.......n........Cxy.......Cpq.......Crs....
    Question 1:
    if you notice this data,
    The Columns 5 to 7 are dependent on Combination of Model,Tube,Float and Size.
    Hence will this query work properly(without mixing up data from other Pk combination) and will it be efficient?(I Know this is a stupid qst, still double checking..As your solution assumes that each row is unique for Model only..which is not true)
    Select ...From....Where
    Model in(M1,M2,..Mn) AND Tube in(T1,T2..Tn) AND Float in(F1,F2,....Fn) and Size in(1,2...n).
    In short, will C15,C16 and C17 appear only with M1,T1,F1,1..I believe it will.
    Question 2:
    As I told,
    Third party program will return Array of Objects.
    Each object will have a variable called Flow along with
    Model,Tube,Float and Size.
    Flow is not stored in the database(can not be stored due to functional reasons).I want to show this Flow also along with other columns fetched from the DB for all 100+ rows.
    How can I do it?
    I will give u the scenario(with just 2 rows)...please check(Flow is not stored in DB)
    Third Party object : ObjModel
    Model......Tube..... Float....Size......Flow
    M1............T1.......... F1. .....1..........100
    M1............T1...........F2.......2...........200.
    M1............T2.......... F1.......1..........300
    M1............T2...........F2.......2..........400
    My concern is,
    After the VO executes and shows other 6 columns, it should show Flow appropriately.(associated with each object in the array)
    I understand that I need to have a Transient attribute in VO called[b] Flow.But I don't know how to perform the two tasks simultaneously..
    Task1:Your solution on showing table columns
    Task2:Showing Transient data for each object returned from program.
    thanks,
    Gowtam

  • Show the result of execution of a database procedure

    Hi everyone,
    I want to execute an oracle database procedure in oracle forms environment and show the result of execution to user(as "procedure executed successfully".. etc) How can I achieve this ?
    Thanks..

    That would depend on the implementation of your procedure. I would say if there is no exception thrown then the procedure completed successfully. Of course there might be some additional conditions when you consider your procedure run successful.
    So in the end you have to design your procedure so the caller can recognize if the procedure run successful or not. How you want to do this is up to you; you can use user defined exceptions (raise_application_error) if an error in your logic occurs which is not a default oracle exceptions, functions which return booleans or output stati.
    I for one prefer exceptions, as they force the caller to handle them (I add the user-defined exceptions thrown by each procedure in the specification right to the documentation so the one using my procedure sees it right away) and ensure my procedure is atomic.
    But as said this is entirely up to you.
    cheers

  • When we type a search item in firefox on my laptop then it shows the result then on second or third or more new search that is typing a new search it sticks to the first searched item

    when we type a search item in firefox on my laptop then it shows the result then on second or third or more new search that is typing a new search it sticks to the first searched one

    Tried that. Also tried SUPERAntiSpyware, ccleaner, HitmanPro. Removed anything that was reported. Problem persists.
    Chrome is also affected. But couldn't find any alternative way of not having Ask.com loaded as did in Firefox.
    Internet Explorer was initially affected. After the Ask.com search engine is removed that problem appears to have gone away.
    12/9/2014
    Interestingly, yesterday afternoon the Chrome browner new tab no longer hijacked by Ask.com. The symptom was there in the morning and had gone away in the late afternoon. Nothing was done except a few days ago I blocked everything on that page. The problem with Firefox continue to persist I didn't do the same blocking on it. I am going to try the same and then use anti-spyware to clear away all cookies and see what happens.

  • How to use TextField to add two numbers and show the result.

    hi everybody
    i would like to use JTextField to get addtion of two Numbers,
    for example i am trying to type any integer numbers in JTextField like 7
    and press JButton, called( +) to add anthor number like 7 and press JButton called(=) to get addtion fo
    7 + 7 = 14, at same JTextField.
    so there will be two buttons, one for (+),other for (=).
    i have implement ActionListener in (+) button ,to get Text from JTextField (with getText() method),
    now how do i use same getText() method to get the next number that i will add it with previous number in
    (+) button and get the result whenever i press (=).
    1-type integer number like (4) in TextField.
    2-press addition button(+) to get text by using getText() method and clear TextField.
    3-type anthor integer number like(6).
    4-press (=) button to get the number (6) by using getText() method, calculate 4 + 6 and show the result at same TextField (10).
    i hope it is so clear
    thank u in advance for any advice and suggestion.

    Use your first button to
    String x = JTField.getText();
    int y = Integer.parseInt(x);
    this will get your first value on your + button. Make sure you initialise the int beforehand incase nothing is put in (ie error prevention) then clear the JTField prob using setText(""). Repeat the process for the = button using different variables and add them normally and output the result.
    If your putting more than 1 arithmetic button on the GUI then you'll need to distinguish between them!!!

  • Showing the results window after termination

    Hi all,
    When I terminate my batch sequence execution in TS 4.0 using "RunState.Engine.TerminateAll()", it shows grayed-out windows and won't show the results window, even though it saves the results into an XML file on disk.
    Is there a way I can show the results window to the operator after the sequence is terminated?
    Many thanks,
    Chris
    Solved!
    Go to Solution.

    If you look in your model you will find a step called Read Entire Report.  This is just making an activex call to Report.Load.  This is what displays the report at the end of an execution.  If this does not get called no report will get loaded.  Since you are terminating then no report is getting loaded.  In fact if you don't have on the fly reporting on then the html files that make up each thread of a multithreaded batch run won't contain any data which will result in no report. 
    If you use the ProcessCleanup callback you should be able to load the report in there. 
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • I Use the last FCX but  I have a prob when I export (share) to dvd the result is over 4GB for a single DVD is about 6 to 9 Gb for a short film of 1h so what can I do to fix this

    I Use the last FCX but  I have a prob when I export (share) to dvd the result is over 4GB for a single DVD is about 6 to 9 Gb for a short film of 1h so what can I do to fix this thnks

    These "Share" files are accessed and used by the Create Disc app.
    Create Disc is buried in the FCP X package.
    Applications>FCP X>Show Package Contents>Contents>Plugins>Compressor>Compressor Kit.bundle>Show Package Contents>Embedded Apps>Create Disc
    I'm wondering if having the Compressor Application on a Mac makes a difference to having just FCP X on a Mac and the use of the Sharing feature.
    I have Compressor loaded and find that DVD and Bluray burns from Share without any glitches as some are experiencing.
    Al

  • Submit quiz results to one single .csv file

    How can I submit quiz results (over 200 people will be taking
    my captivate quiz) to a single .csv file?
    Right now, the quizes are submitted to my email address and
    attached to the email as a POSTDATA.ATT file. I have to manually go
    into my Outlook and save attachment as "FnameLname.csv”. So
    each quiz taker will have an individual .csv file! So I will have
    over 100 emails and over 100 .csv files!!!!!
    How can I make the quiz results submit to a single
    Quiz_Results.csv file on my web server instead?

    The way I would do this is to submit the scores into a
    database. In between Captivate and the database you'll need
    middleware (.asp, asp.net, ColdFusion, etc.). This middleware
    receives your data from Captivate and processes it - submitting it
    into the database. You can then write another middleware page that
    produces a report (web page table, or exports .csv file) with the
    data stored the database.
    Another possibility is to use Captivate's built-in SCORM
    functionality and submit user scores into an LMS, then run reports
    and export .csv files from your LMS.
    Sorry - I don't think this functionality is built into
    Captivate to join multiple records into one .csv file.

  • How can I fix the crop? When I crop my photos and click okay, the layer no longer shows the resulting photo -- just a dark gray background.

    Can anyone help me to resolve my cropping issue? I have either hit a key I wasn't supposed to hit accidentally, or the software needs to be fixed or reset.  And if I reset or reinstall the software (Photoshop Elements 10 + Organizer), will all my categorized photos in the Organizer be lost with the new installation?
    I have three screen shots to help show my problem.
    The first one is the page before I make any cropping edits:
    This next one shows the beginning of making the crop, before clicking the green check mark to accept the crop. Notice the photos are still intact and visible in the layers:
    And when I accept the crop (by clicking the green checkmark), below is the view of my resulting new layers (the photo is no longer there):
    As you know, what I should see is the resulting, cropped photo in both layers -- not a grayed-out set of boxes.
    How can I fix this to get the crop feature to work again?
    Thanks in advance for your help!
    Gordi

    Click this little triangle and choose Reset Tool from the popout menu:

  • How to show the result of query in oracle forms 10g to Excel Sheet File

    Dear All,
    I have query and i want the result to be show in excel sheet file in oracle forms
    for example if i have a form with search criteria and when pressed the button of ( export to excel ) the result is
    excel file contains the result of the query .

    The only method to achieve this is with the help of Webutil. Please go through documentation for more help.
    Regards,
    Manoj Chakravarthy

  • Business rule not showing the result

    When i am executing a business rule, it runs successfully but it does not show any result. But when i enter any amount in that specific cell where the BR should calculate the amount and then run the BR then it shows me the required result. What can be the reason for that?
    We are on 11.1.2
    and im making BRs through Calc Manager (Wizard Based)
    Edited by: ar_aff on Mar 24, 2011 9:56 PM

    I think that's about Block problem (value of a cell). The BR can't open block automatically. In BR sorce usually used a command Set Createnonmissngblk on before calculating value;

  • My "What's New" procedure doesn't show the result Search result page

    Hi,
    I needed a "What's New" report for a content area. The advanced search screen has the option to query with the create date, but you can save the search with something like #sysdate-7. So I created the following procedure:
    create or replace procedure whatsnew
    (p_caid in number default 0
    ,p_folder_id in number default 1
    ,p_days in number default 7
    ) is
    a_attribute_id portal30.wwsbr_type.array;
    a_attribute_name portal30.wwsbr_type.array;
    a_attribute_caid portal30.wwsbr_type.array;
    a_attribute_data_type portal30.wwsbr_type.array;
    a_attribute_operator portal30.wwsbr_type.array;
    a_attribute_value portal30.wwsbr_type.array;
    begin
    a_attribute_id(1) := '10';
    a_attribute_name(1) := 'createdate';
    a_attribute_caid(1) := '0';
    a_attribute_data_type(1) := 'date';
    a_attribute_operator(1) := portal30.wwsbr_search_api.greater_than;
    a_attribute_value(1) := to_char(sysdate-p_days);
    portal30.wwsbr_search_api.submit_search
    (p_search_terms => null
    ,p_caid => p_caid
    ,p_current_caid => p_caid
    ,p_folder_id => p_folder_id
    ,p_folder_caid => p_caid
    ,p_include_child_folders => portal30.wwsbr_search_api.yes
    ,p_attribute_id => a_attribute_id
    ,p_attribute_name => a_attribute_name
    ,p_attribute_caid => a_attribute_caid
    ,p_attribute_data_type => a_attribute_data_type
    ,p_attribute_operator => a_attribute_operator
    ,p_attribute_value => a_attribute_value
    end;
    Now you can call this from a dynamic page component (have it displayed as portlet), or include it as an URL item in the content area (/pls/portal30/portal30.whatsnew?p_caid=33&p_folder_id=1&p_days=7).
    This work fine and show the search result. Now I've customized the Search Result Page, but it seems that wwsbr_search_api is navigating to a standard (fixed layout) search result screen (square item/folder links in stead of tabs) and not to my customized Search Result Page. If I click the submit button in the result screen then it navigates to my customized Search Result Page.
    So why doesn't wwsbr_search_api navigate to the customized Search Result Page, or am I doing something wrong ?
    Regards,
    Willem-Pieter van der Lugt
    Oracle Consulting NL

    Hi,
    I just saw topic http://technet.oracle.com:89/ubb/Forum82/HTML/000617.html with the answer pointing to bug 1869531.
    regards,
    Willem-Pieter van der Lugt

Maybe you are looking for