Passing array result set between Viewstack pages

Hi, all.
I want to use an array result in various Viewstack pages. So
the main application run a RemoteObject call, gives the result to a
function that makes the area. I then want to call the array result
from other pages in the Viewstack. Is there a way to reference from
the other pages? I cannot seem to do it. Thanks.
I would add my code, but I cannot find the Attach Code thing
they are talking about.

Eric and Tracy,
Thanks for these suggestions. I will try them. I think the
real issue is knowing HOW to call back to the "parentApplication"
(whatever that is. ;) I just learned something new, thanks).
I do appreciate the more in-depth how-to's, having come from
the procedural world of CF. Like many starting to use Flex, I sort
of fell into this field, having no real background or formal
programming experience and learning by example is really useful. I
mainly did business development before getting into Flex
programming.
Like learning to talk in another country that also uses sign
language and clicks in the vocabrulary, we have to learn a whole
new vocabulary and even way of thinking about what and how we say
things. Again, thanks for the patience and time.
Gary McNeel
Struggling Flex Coders Anonymous Member Since 2007

Similar Messages

  • Minus and passing the result set

    I have a query in a procedure....let us say "test.prc":
    select A.VALUE from TABLE A
    where A.VALUE_ID = get_rec.VALUE_ID minus
    select B.VALUE from TABLE B
    In the above query, I am passing the "get_rec.VALUE_ID" from a cursor above the query.
    Now is there a way to capture the result set of the above minus operation and pass the result set to the calling sql program (called "call_test.sql")?
    Thanks,
    Chiru
    Message was edited by:
    Megastar_Chiru

    I got what I was trying to do...
    I have 1 more question though....I am printing out my output using dbms package from sql*plus...using the following command
    dbms_output.put_line(nvl('Flex Value set Id : '||get_rec.flex_value_set_id,0)||' values that have no corresponding alias : ' || nvl(v_flex_val,0));
    "get_rec.flex_value_set_id" gets passed in from my cursor above the dbms statement.
    and it looks like below:
    Flex Value set Id : 20118 values that have no corresponding alias : 00
    Flex Value set Id : 20118 values that have no corresponding alias : 10
    Flex Value set Id : 20118 values that have no corresponding alias : 11
    Flex Value set Id : 20118 values that have no corresponding alias : 20
    Flex Value set Id : 20118 values that have no corresponding alias : 30
    Flex Value set Id : 20124 values that have no corresponding alias : Standard
    Is there some way to neatly break when the value set id changes? ...ie., make it print output something like below:
    Flex Value set Id : 20118
    values that have no corresponding alias : 00
    values that have no corresponding alias : 10
    values that have no corresponding alias : 11
    values that have no corresponding alias : 20
    values that have no corresponding alias : 30
    Flex Value set Id : 20124
    values that have no corresponding alias : Standard
    Thanks,
    Chiru

  • How to pass a result set as an output parameter

    I have a function that will be used as a web service. It invokes a stored procedure - ideally I'd like to pass the result set from the SP out as a result set to the client consuming the web service. Is this do-able or am I in dreamland?

    What you typically do is iterate thru the RS, turning each row of data into a business object and adding all the business objects to a list or some other collection. Then close the result set. Return that collection of business objects to the client.

  • Can we pass temporary result set to the  procedure?

    Hi,
    The result set is stored in a temporary storage. Can we pass that resultset to the procedure?
    Thanks and regards
    Gowtham Sen.

    I'm still unclear just what this result set is... Is is a table or a cursor or something else?
    If you imply the physical result set of a SQL query, there is no such thing in Oracle. Oracle does not create and store a result set in memory containing the rows of the SQL SELECT. Creating such sets in memory does not scale. A single SELECT on such a database can kill the performance of the entire database by exhasuting all memory with a single large physical result set.
    Oracle "results" live in the database cache (residing in the SGA). Rows (as data blocks) are paged into and out of this case as demand dictates. When PL/SQL code, for example, fetches a row, the SQL engine grabs the row from the db cache (SGA) and copies it to the PGA (the private memory area of the PL/SQL process). The row also may not yet exist in the db cache - in which case it needs a physical read from disk to get the data block containing that row into the db cache (after which it is copied to the PGA).
    A PL/SQL process can do a bulk fetch - e.g. fetch a 100 rows from the SQL query/cursor at a time. In that case, a 100 rows are copied from the SGA db cache to the PGA.
    At no time is there are single large unique and dedicated memory struct in the SGA that contains the complete "result set" of a SQL query.
    Once you have fetched that row, that is it. Deal is done. You cannot reverse the cursor and fetch the row again. After you have fetched the last row in that cursor, you cannot pass that cursor to another process - the cursor is now empty. That other process cannot rewind the cursor and start fetching from the 1st row again. You will need to pass the SQL to that process in order for it to create its own cursor - also keeping in mind that in between the rows can have changed and that this other process could now see different results with its cursor.
    If you want to create such a physical temporary result set that is consistent and re-usable, you can use a temporary table - and insert the results of the SELECT into this temp table for further processing. This temp table is session specific and is auto destroyed when the session terminates.
    A comment though - it sounds like you're approaching the date warehouse processing (scrubbing, transformation and loading of data) as a row-by-row process.
    That is a flawed approach. Row-by-row processing does not scale. One should deal with data sets. Especially when the volumes are large. One should also attempt to perform minimal passes through a data set. Processing a bunch of rows, then passing that rows to another process to do some processing on the same rows.. this means multiple passes through the same data. That is very inefficient performance and resource wise.

  • How do I break up a result set over various pages?

    I would like some example code of how to breakup a result set that I am using in a form.
    There are too many results for the form to currently work properly on one page so I have to do it over several web pages, using a next page link etc...
    I am currently using servlets.
    If anyone has an idea of how to do this differently have at it and let me know what to do. I prefer code examples.

    I would change the select query so that it doesn't return the whole resultset. Check your database manual to see if your database supports something like limit. E.g. this query will only return the 20 first records if you are using mysql.
    select *
    from tablename
    limit 0,20
    Kaj

  • Passing Array of Srings between Visual Basic and Labview dll

    I have searched and searched for the correct way to pass an array of
    strings between Visual Basic 6.0 and a Labview 7 dll. So far, I still
    do not know how to pass the array. When I create the dll in LV, the
    array of strings is presented as a string, not an array. I am familiar
    with passing arrays of type double, but I really need to know how to
    pass an array of strings. Any and all help is appreciated.
    Bob

    Hey Bob,
    From what I understand, that can get kind of messy. You have to allocate the memory in VB in the format that LabVIEW expects (see the externalcode.h file in National Instruments\LabVIEW 7.0\cintools for details). Then pass a pointer to that location to LabVIEW. There are a couple of related examples online. They don't necessarily show how to pass an array of strings to VB, but they should show how to pass a string and an array. I hope this helps.
    Using Microsoft Visual Basic to Call LabVIEW DLLs That Pass String Data Types
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CB9B0111EE034080020E74861&p_...
    Using Microsoft Visual Basic to Call LabVIEW DLLs That Pass Array Data Pointers
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3D9E556A4E034080020E74861&p_...
    Regards,
    Chris J

  • Error Passing an internal table between BSP pages

    Any time there is data in the internal table and I try to pass it from one BSP page to the next I get an Web error.  I've heard that it is possible to pass an internal table from one page to the next.  can anyone point me in the right direction here?

    You can do this with the navigation object only if the table is very small. Overwise it overflows 2+KB limitation of URLs.
    Alternative ideas is to use server side cookies (search forum for many examples).
    If stateful, just hang stuff of your application class.

  • Passing report results parameters to different page

    Hi y'all,
    I was wondering how report results (results acquired by custom written sql query) can be passed to different pages?
    Can anyone help or provide me with a link which can point me to some documentation on this subject.
    Thanks,
    Cleo

    Cleo,
    Do you want the records fetched by the SQl query available in other pages inorder to use that as a source for processes in those pages ?
    One way is to define a collection in the SQL report page and fetch records into that collection on page load. Change the Report region to refer to the collection.
    For example, you have a SQL report based on the query
    SELECT 'a','b', 'c' from dualYou can have a Before header PLSQL process in that page that fetches these records into that collection
    BEGIN
      APEX_COLLECTION.TRUNCATE_COLLECTION ('REPORT_RECORDS');
      APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY (
          p_collection_name = > 'REPORT_RECORDS',
          p_query => q'!SELECT 'a','b', 'c' from dual!'
    END;Change the SQL report to
    select * from apex_collections WHERE collection_name = 'REPORT_RECORDS'In any page where you want to use the reports records , they would be available in the collection.

  • Passing arrays as parameters to new pages?

    I have probably either misunderstood something Murray said to
    me, or
    unconsciously extended it, but in developing my php driven
    photo album I have
    been working on the assumption that I could read a block of
    data into an array,
    and then pass that array (or a pointer to it?) as a parameter
    to a new
    invocation of the same page.
    However, now that I tried it, it looks as if I can only pass
    a single value in
    any one parameter. Is this correct, or is there some way of
    passing either an
    array or a pointer to an array as a parameter?
    Clancy

    "PeteC" <[email protected]> wrote:
    >Create your array as a session variable.
    Thanks. Yet another complexity to learn! For the moment I'll
    put up with
    rereading my data file every time I change pages. If (as it
    currently appears)
    this gives a good enough performance I wo'nt worry until I've
    got the program
    working. However there are still part of my job where session
    variables would be
    helpful, so when I've got the main part of my program working
    I'll try to get my
    head around them.
    With best wishes,
    Clancy

  • Struts database result set storage structure

    Hi all. I am working on a struts application that will return results from a database. The question that I am currently uncertain of is how I should be storing the information from the database. I had thought about using a datastructure to store all of the results and then realized that would be unrealistic given the possible result size. I have instead decided to store only the items that will be displayed on the page. I just wanted to see if this seems like a reasonable idea, given that most people find what they are looking for on the first page or two. Any other thoughts on this would be appreciated.

    No that's why I was thinking of using a resultsetin
    the Session. I am guessing that I'll need to do
    profiling in order to determine the size that Iwill
    use. I was thinking of using between 20-50results
    per page, leaning more heavily to the 20 - doesthat
    sound reasonable ?Yes, but why pass that result set around for that? It
    only might give you problems because you can't close
    the statement that created it without passing that
    around as well. If you close either at all. Also, a
    JSP should never have to deal with DB access. It's
    just supposed to display data, not to retrieve it.I guess I should have been more explicit. I will be passing around 20-50 results stored in their own datastructure. I was using the word resultset but should have instead been using simply result. Thanks for the info.

  • Result Set problem!!!Plz urgent

    Hi,
    I am using jsp page with database connection.In jsp page i have two button called move next and move previous.
    In database 2 records are there.If i open the jsp page first record will be displayed.If i click next record it showing 2nd record.If i click previous record it showing 1st record.Once again if i click next record it is showing that record not found...........What may be the problem????.
    Note:For each time button click i will pass the result set object in session variable.Whether it is a correct one..
    Plzz help me ya...........

    this is for move next:::
    ResultSet result=null;
    Connection connection=null;
    String candyid="";
    result = (ResultSet)session.getAttribute("resget");
    result.next();
    if(!result.next())
    %>
    <Script>
    alert("Record Not Found");
    </Script>
    <%
    result.previous();
    candyid=result.getString(1);
    session.setAttribute("resget",result);
    %>
    <input type=hidden name="hide" value="yes">
    <input type=hidden name="nextid" value=<%= candyid %>>
    <Script>
    document.AddCandetails2.action="modifyCandidate1.jsp";
    document.AddCandetails2.submit();
    </Script>
    <%
    else
    candyid=result.getString(1);
    System.out.println("candi next id"+candyid);
    session.setAttribute("prevresget1",result);
    System.out.println("resultset for set attar in next"+result);
    %>
    <input type=hidden name="hide" value="yes">
    <input type=hidden name="nextid" value=<%= candyid %>>
    <Script>
    document.AddCandetails2.action="modifyCandidate1.jsp";
    document.AddCandetails2.submit();
    </Script>
    <%
    this is for move previous:::
    ResultSet result=null;
    Connection connection=null;
    String candyid="";
    if(session.getAttribute("prevresget1")==null)
    result = (ResultSet)session.getAttribute("resget");
    else
    result = (ResultSet)session.getAttribute("prevresget1");
    if(!result.previous())
    %>
    <Script>
    alert("Record Not Found");
    </Script>
    <%
    result.next();
    candyid=result.getString(1);
    session.setAttribute("resget",result);
    %>
    <input type=hidden name="hide" value="yes">
    <input type=hidden name="nextid" value=<%= candyid %>>
    <Script>
    document.AddCandetails2.action="modifyCandidate1.jsp";
    document.AddCandetails2.submit();
    </Script>
    <%
    else
    candyid=result.getString(1);
    session.setAttribute("prevresget1",result);
    %>
    <input type=hidden name="hide" value="yes">
    <input type=hidden name="nextid" value=<%= candyid %>>
    <Script>
    document.AddCandetails2.action="modifyCandidate1.jsp";
    document.AddCandetails2.submit();
    </Script>
    <%
    this is the code............... can u give me the solution

  • Is it possible to ref cursor(result set) as in parameter to procedure/funct

    Hi,
    I am getting a resultset/ref cursor from the Java side to the procedure/function as in parameter. Is this possible in oracle 10g.
    If yes can body send the links/suggestions describing some examples.
    Thanks,

    I am getting a resultset/ref cursor from the Java
    side to the procedure/function as in parameter. Is
    this possible in oracle 10g. It is possible, but it sounds like you have your application design entirely backwards.
    A ref cursor is designed to be used to pass a result set from a stored procedure to a client or calling application.
    So while you could use a screwdriver to hammer in a nail, you probably would not want to.

  • Passing parameter between JSF pages

    I need to pass a parameter value between 2 different JSF pages.
    The reason I need to do this is to be able to know which JavaBean (A or B) called the other JavaBean (C).
    Can I somehow set a parameter within the JSF page and retrieve it in the second JSF page for my backing bean to read?
    Thanks in advance.

    A co-worker of mine helped me fix my code to make it work!
    Here is the final solution in case someone else needs to do the same thing in the future:
    In the main JSF page that calls the second JSF page, the following code was added at the beginning of the page in the JavaScript section:
    <% session.setAttribute"className", "CcmReassignEmployeeBean");
    And in the Backing Bean of the second JSF page, the following code was used in the action listener used to transfer the data:
    HttpSession session = (HttpSession) context.getExternalContext().getSession(true);
    String className=(String) session.getAttribute("className");
    It works great! Thanks!

  • How to pass one row of a result set to a cffunction?

    I can pass the entire result set of a query to a cffunction,
    but the function only needs one row.
    The code below is a syntax error, where "3" is array index
    notation for the third row of the result set.
    What is the correct way to pass one row of a result set to a
    cffunction?
    Thank you.

    iirc, cf does not allow one to reference and access a row of
    a resultset
    like that.
    you will have to create a structure/array that holds the data
    from
    specific query row and pass that to your function. looping
    over
    queryname.columnlist list will make it easier and not
    specific to any
    particular query. make it into another function that accepts
    a query and
    row number as arguments and returns a struct/array of that
    row data (or
    automatically passes it to another function).
    sample code for creating a structure of specific query row
    data:
    <cfset rowstruct = {}>
    <cfloop list="#queryname.columnlist#" index="col">
    <cfset rowstruct[col] = queryname[col][somerownumber]>
    </cfloop>
    <cfdump var="#rowstruct#">
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Column Passing between dashboard pages using Column Format- Navigation

    I've been put in a tough spot due to an error in BI Publisher which I can't seem to fix and won't be discussing in this post, thus I'm trying to find an OBIEE work around that adheres to the client's heuristics requirements. So OBIEE dev's more experienced than I, lend me your wisdom.
    I have a logical layout with two descriptive dimensions, a time dimension and a singular fact table. An explanation of the dashboard pages, their requests, prompts and other objects is below:
    Dim 1
    - Dim1 Key
    - Dim 1 Descr
    Dim 2
    - Dim 2 Key
    - Dim 2 Descr
    Dim Date
    - Typical Date blah blah
    Fact
    - Measure 1 (Count of Dim 2 Key)
    Dashboard Page 1
    - Prompt 1
    - Request 1
    Request 1
    - Columns
         - Dim 1 Descr
         - Measure 1
         - Dim 1 Key (Hidden)
    - Filters
    - Dim 1 Key is Prompted
    - Dim Date is Prompted
    - Formatting
         - Dim 1 Descr navigates to Dashboard Page 2
    Prompt 1
    - Dim Date.Date is Between
    Dashboard Page 2
    - Prompt 2
    - BI Pub Report 1
    BI Pub Report 1
    - Parameter
         - p_key (takes in Dim 1 Key)
    Prompt 2
    - Dim 1 Descr is Equal
    - Dim 1 Key is Equal - populates presentation var: p_key
    So the functionality I'm expecting is that the user starts on Dashboard Page 1 selects a date range from Prompt 1. Selects a row and navigates to Dashboard Page 2 by clicking on a Dim 1 Descr 1 value, which in turn passes the Dim 1 Descr value and the Dim 1 Key value (which is hidden) to Dashboard Page 2.
    On Dashboard Page 2, Prompt 2's Dim 1 Descr and Dim 1 Key become the values passed from Dashboard Page 1 and p_key is populated with the value which Prompt 2 Dim 1 Key becomes. Lastly BI Pub Report 1 gets p_key from OBIEE, and runs displaying what it’s supposed to.
    Currently everything works, except the passing of Dim 1 Key from Dashboard Page 1 to Dashboard Page 2. The question is, firstly, is it possible to pass Dim 1 Key without it being visible on Request 1 or without using Dim 1 Key as the point of navigation to Dashboard Page 2. If so, what of my above mentioned setup is incorrect? My guess is that I need Dim 1 Key in Prompt 1, but the client is adamant that I leave Prompt 1 alone, so any other options would be great.
    I also know that the above is possible with GoUrl or PortalPath but since on the actual request there are multiple Navigation Target options, I'd like to avoid having to resort to GoUrl or PortalPath, but if this is the only method, how can multiple options be given using GoUrl or PortalPath?
    Thanks in advance for any help.

    Hi Karthick,
    Thanks for the updated info. I tried what you suggested and unfortunately still no value passed. It seems hidden via OBIEE format options, hidden via CSS or unhidden the value is only passed if the navigation is set up on that particular field. So if I have two fields in the report and I want to click on Field 1 and pass Field 2, Field 2 will not be passed. I am going to try this on a up to date environment and see if it works, since the client is using a slightly outdated version of OBIEE.
    Thanks for the suggestions so far,
    Matt

Maybe you are looking for

  • I have many questions, I have called Support,  they refuse to forward or give me Tech Support See Be

    Hi, I have many questions, and have had a very frustrating time to get in touch with the correct person. I have called support twice, both times even though it was a technical question about cloud, they refused to forward my calls and told me there i

  • Error on oracle database export ORA-04045 and ora-00600

    Hi I am getting following errors on database export EXP-00008: ORACLE error 4045 encountered ORA-04045: errors during recompilation/revalidation of CHEALTH1.oracle/gss/util/NLSLocale005 ORA-00600: internal error code, arguments: [26599], [1], [225],

  • JCO properties file Linux..Urgent !!!!

    how do i load linux properties..file... if anyone have download the sapjco connector for linux inside the folder> demo > Tutorial2Connect & OrderedProperties it gives you how to connect to properties file... i done in in windows ok... but when i run

  • Unable to install xp-unable to accept EULA cos trackpad/keyboard stops work

    Trying to install xp on 10.6.2 on macbook pro 13.3" 2009 model using bootcamp 3.0. The partitioning and windows setup went fine, but during installation, Windows asks me to accept EULA before installing but my trackpad and key board stopped working a

  • Sample financial reports in bw

    Hi, I am not familiar with FI/CO module in SAP R/3. Recently I got an overview explained by my friend. I need to understand it better and I decided to back track from the "most commonly wanted reports" by the clients. Can someone please give me a lis