Use column in 2d array as page number for 3d array

I have a 2D array coming from a database containing (I simplify a bit for this example)
column 0: plot number
column 1: x values
column 2: corresponding y values
to be able to process everything and later put it in a graph, i would like to convert it into a 3d array where the page number is the plot number (so column 0) from my original array. I tried two different approaches you can see in the attachment, both give unwanted results:
1. the resulting array contains two pages with only x2 and y2 for each plot
2. the resulting array contains two pages with only x1 and y1 for each plot
What am i doing wrong here?
As a second difficulty the order in the example 2d array is logical (x1 of plot 1, x1 of plot 2, x2 of plot1.....) .
The order in the actual array might just as well be as the example in the second attachment
Thanks!
Attachments:
bad order.PNG ‏2 KB
Move column to page.PNG ‏18 KB

Attached (LV 8.0) is something I quickly whipped up using the above 2 assumptions as being true. I did not fully test this, so be sure to put it through its paces.
Your solutions centered on using Insert Into Array. The reason this won't work is because your first x/y pair could be from plot 1 (the second page). But, you cannot insert a second page into an empty array.  I opted for pre-creating the 3D array and then using Replace Array Subset. 
OK, I posted this before I got the notification that you answered my questions. Given that, then how is one supposed to know the order of the X/Y pairs? Obviously, your example used strings for demonstration. Presumably the real values will be numbers. In this case, how is one supposed to know where to place the new X/Y pair?
Corollary: Arrays must be rectangular. This means that if plot 0 has 3 XY pairs, but plot 1 has 5, then the 3D array MUST have 5 rows for each page. This means you will have empty rows on page 0. Given this, you are better off creating an array of clusters. Each cluster would contain your XY pairs as a 2D array, and each one can have different number of rows, as shown in this figure:
Message Edited by smercurio_fc on 03-11-2009 10:43 AM
Attachments:
2D Array to 3D Array.vi ‏17 KB
Example_VI_FP.png ‏5 KB

Similar Messages

  • Print Multiple copies of report, and resetting Page number for each copy.

    Dear frnds!
    i am using developer 6i reports i have a problem.
    i want to Print Multiple copies of report, and resetting Page number for each copy" that is 4 copies of an invoice is required
    1 - for user copy
    2- gate copy
    3- accounts office
    4- office copy
    any body please tell me the solution "i am using oracle 9i and developer 6i"
    Thanx
    Ibrar

    Hi,
    I was wondering if you were able to get your multiple copies working? Below is what I have so far, just trying to get it to work before changing the actual template.
    <?for-each-group@section:R5542520/Pick_Slips_Detail_Lines_S3;PickSlipNumber_ID260?>
    <?variable@incontext:G1;R5542520/Pick_Slips_Detail_Lines_S3;PickSlipNumber_ID260?>
    <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,3,1)?>
    HEADER
    PSN: <?$G1/Pick_Slip_Number_Display_ID54?>
    PSN Detail: <?$G1/PickSlipNumber_ID260?>
    Page 1 of 3
    <?start:body?>
    BODY
    <?$G1/LineNumber_ID6?>
    <?end body?>
    FOOTER
    <?end for-each?>
    <?end for-each-group?>
    XML:
    <R5542520>
    <Pick_Slips_Detail_Lines_S24>
    <Header_Custom_Section_S24>
    <Pick_Slip_Number_Display_ID54>123456</Pick_Slip_Number_Display_ID54>
    <PickSlipNumber_ID260>123456</PickSlipNumber_ID260>

  • Getting Page number for Notes

    Hi
    I am using the below methods to retreive page number of notes.
    Method 1
    var myNotes = myDocument.stories.item(k).notes.everyItem().getElements();
    Method 2
    myDocument.stories.item(k).paragraphs.item(i).notes.length;
    Wat is the best way to scan through the notes in a document. I am trying to get the page number for each note(Page on which the note is placed)
    For Method 1:
    var myFrame = myDocument.stories.item(k).textContainers[0];
    var myPage=myFrame.parent.name;
    For Method 2:
    myDocument.stories.item(k).paragraphs.item(i).parentTextFrames[0].parent.name;
    In both the cases some of the page numbers aren't displayed. Can somebody tell me is there any other way or am i doing something wrong.
    Thanks

    Footnotes have a property storyOffset, which is the location of the footnote's cue in the text. This is an insertion point, so the following line gives myFootnote's page number:
    >myFootnote.storyOffset.parentTextFrames[0].parent.name
    Peter

  • Why can't I type in a page number for a link anymore?

    I had version 6 and I could select an area to be a link, then pick the go to page option, then type in a page number by hand.
    Now, with version 8, I pick "go to a page view", then physically go to the page, then click "set link". What happened to typing in a page number by hand?

    That work-around came close. For some reason it brought me to page 13 instead of 12. But I'm looking for something as easy as it was in version 6 where you don't have to program in javascript. I suspect most people don't know how to program in javascript or anything anyway. All Adobe really had to do was NOT remove an option.
    Does anyone know a work-around that might be close to the simplicity(or easier) of version 6 for putting in a page number for a link (as you're creating the link from scratch) rather than having to go find the page? Or did I actually downgrade by buying version 8?

  • Hello,  I purchased Photoshop Elements 12 online.  I am using a Mac but got a Serial Number for wind

    Hello,
    I purchased Photoshop Elements 12 online.
    I am using a Mac but got a Serial Number for windows.
    Would you please supply me with a Mac Serial Number please.
    Your support is very much appreciated.
    Kind regards
    Katrina

    The serial number for Photoshop Elements should be valid for both PC and Mac.  PSE is one of the few applications that allows the same license for different platforms.
    You need to contact Adobe Support either by chat or via phone when you have serial number and activation issues.
    Here are some links to help make contact:
    http://www.adobe.com/support/chat/ivrchat.html
    http://www.adobe.com/support/download-install/supportinfo/

  • Table of Content with page number for entire pdf

    Hi
    We need to merge dynamic pdf with n number of static pdf.
    The output of the generated pdf has one of the page called Table Of Content with page number.
    For this we have created following process
    We created a form using Adobe livecycle form designer to populates input data(xml).
    We created process to generate dynamic pdf .
    We have static pdf's in some folder location(Eg:C:\temp)
    We created xsl to generate DDX to merge Dynamic pdf with static pdf's by using an assembler operation in the Process
    There are number of static specification pdf's  inserted in between of dynamic pdf using logic in xsl.
    We used bookmark option in xsl for creating table of content .
    While invoking the process we are able to generate the correct merged pdf with some unformatted page of table of content
    We can explain better in the following way where we are actually facing a challenge:
    We need a table of content in the below mentioned format:
                                                                                                                 PAGE
    MAIN DESCRIPTION                                                                                    n
    ID1             NAME1            DESCRIPTION   1                                              m
    ID2POK       NAME2            DESCRIPTION   2                                              m
    FDJKHJG                                                                                                   
    ID3             NAME3            DESCRIPTION   3                                              m
    MAIN DESCRIPTION2                                                                                 n
    ID3            NAME3            DESCRIPTION   5                                               m
    ID4            NAME4            DESCRIPTION   4                                               m
    ID5            NAME5            DESCRIPTION   5                                               m
    Since the pdf merging and numbering is done  using ddx at runtime, page number tag is not there in xml and  therefore the toc page cannot be populated at the time of form design.
    The issue we are facing is that, by using ddx script we are not able to align id,name,description in  table of content in proper manner. We want to wrap particular id ,name and description in their respective columns.
    Currently, we are getting the below mentioned result which is not in a proper format.
                                                                                                               PAGE
    MAIN DESCRIPTION                                                                                n
    ID1HDSJHJDHFDJFHD            NAME1FDJFHDJH           DESCRIP
    TION 1                                                                                                    m
    ID2POKLFDJKHJG           NAME2FDJKFJDKFJKD            DESCRI
    PTION   2                                                                                                m
    ID3            NAME3            DESCRIPTION   3                                             m
    Note: Page numbering has been done only after merging all the pdf(Dynamic and static) using ddx  instead of the adobe livecycle form designer.
    Is there any solution to resolve the formatting issue or any other option to create table of content dynamically ?

    Hi SaCvP,
    According to your description, you want to display the table of contents with page number in SSRS 2014.
    In Reporting Services, the global variable PageNumber or Totalpages can be only used in the page header and page footer. In your scenario, you can create a table of content using document map, but we can’t specify the expression with PageNumber or Totalpages.
    So your requirement can’t be achieved currently.
    Reference:
    Create a Document Map (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Reset Page Number for each Group

    I am currently creating a RTF template using XMLP 5.0
    My demanding boss gets back in town in five days, and he expects
    this report to be ready for production. :)
    But I haven't been able to figure out one last spec.
    The page number needs to be reset for each group.
    So for example, the total report is about 83 pages.
    In my RDF file (from Oracle Apps), I am grouping by a DEPT field.
    In my RTF template, I am page breaking on each DEPT.
    The page numbering should also be reset to 1 on each DEPT break.
    The reason for this, is that the report will be printed, then separated by DEPT.
    This way, each DEPT in the plant can receive their own individual report.
    Is there anyway to do this using XMLP 5.0?
    We would be willing to upgrade our XMLP,
    if this functionality is available in a later version.
    Thanks in advance.
    Mark K

    Hi Mark
    Yep, you can do this, you can even do it in 5.0 :o)
    For some reason it did not make the user doc in 5.0 ... an Easter egg if you like.
    So I'd recommend getting the 5.5 or later docs and using that for reference. Just search for "About Oracle XML Publisher Release 5.5" on metalink once you have that doc search it for "Oracle XML Publisher User's Guide" its a link to the PDF document.
    Then check pg 86/290 - Advanced Report Layouts > Batch Reports for details. This approach will work for 5.5. If you would like a sample then if you have installed the template builder there is an Advanced > Repeating Headers folder inwhich you will find an example.
    Regards, Tim

  • Header font goes out of column width in fit to page option for print

    Hi,
    I've tried to print wide report as landscape with fit to page option. it printed out good but when i saw column header, header has missed some words.for e.g my column name is "Legacy Order" and it's showing only "Legacy Or" even i wrapped that column. it's works fine with 90% scalling option.i'm still confusing because there are over 1000 reports existed and i think i will have to touch all reports to print correctly.Older version took cares all of those things.
    Any idea would be great for me.
    Thanks,
    Jay

    Boy ... I thought I was watching a scene from Dragnet as I've just read this thread for the first time .... 8-)
    Sgt Friday: did you see the culprit ma'am?
    Woman: yes I did
    Sgt Friday: was he tall?
    Woman: yes and he reminded me of my son-in-law who bakes cookies ... and ...
    Sgt Friday: (interrupts): just the facts ma'am ..
    Woman: oh ... of course
    Sgt Friday: did he use Discoverer?
    Woman: yes he did
    8-)
    I'd love to see a 'Chips' one next:
    Ponch: oh look ... a Discoverer report going wild
    Jon: I'll just jump onto this computer and pull the plug ...
    Ponch: oh no ... there's a lady with her kids running the report, careening out of control we didn't see ...
    Jon: No problem, I'll just slow it down carefully and bring this server to a controlled halt
    Woman: thank God you two came along and saved my report
    camera pans away with everybody smiling and frozen in time ...
    8-)

  • How to create Pager Number for Customer contact in VAP1 or XD02

    HI ,
       I am trying to mass upload Customer contact data , there is pager number to be uploaded . but when i do it through BDC . Its doesnt record the ALV pop up as there no screen fields as it is not a program screen .
      So BDC selects only the first item in the list , which is FAX number . So i cant upload Pager number through BDC .
      Does there any method available to do the same ? i tried direct upload also but seems tedious .
    Waiting for reply ,

    You would do it the way I created it:
    Select the Text tool in Photoshop and set the font and parameters as I have listed.  Then enter whatever text you like.  It will be rendered over the top of the lower layers you may have in the document.  Save as an image of the appropriate type and you're there.
    Note that "lower layers you may have in the document" could conceivably be none at all (i.e., you render the text over a transparent document).  You could imagine saving that as a .png with transparency and get light text in an image that could then be put over the top of anything else.  The alpha mixing will see to it that the edges smoothly blend with the background.  I haven't actually tried this (I usually do try my own suggestions) because of lack of time right now.
    -Noel
    Edit:  Markerline and I seem to be on the same crystal-controlled wavelength. 

  • A computerized calling service has been calling my cel all day about acquiring a car loan. They use a different A/C and phone number for each call. Where do I report this harassment?

    How do I block harassment from one nuisance computerized advertising company?

        Dealing with harrassment can be frustrating, DickA! I can help you stop these calls. Just go to My Verizon, and use the "block calls & messages" feature to block this number for free for 90 days! http://bit.ly/xB4iTc
    Thanks,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • How do I create jump to (page) links using DPS in creating a digital page turner for a catalog?

    I know how to use "navto" to jump to pages within the catalog created for our app.
    We want to use the same article files to create a digital page turner using DPS but cannot figure out how to do it. Google searches lead to answers that say it isn't possible, but if i view a page turner I created in 3D Issue via Adobe's Content Viewer, the pages jump (via the links I made in 3D Issue).
    I just can't believe that a huge company like Adobe has no way to do this in DPS.

    On pages you do not want to show-up delselect "include page in navigation menu" in the page inspector:

  • HBA / Part Number for 3100 array connect to Sun 420 R

    Hi
    I need to connect the 420R server to 3100 array. What type of HBA is needed and part number if anybody has.
    Thanks
    Srini

    Hello Srini,
    just review the Full Components Lists of the E420R and StorEdge 3120 for supported SCSI controllers.
    http://sunsolve.sun.com/handbook_pub/Systems/E420R/E420R.html
    http://sunsolve.sun.com/handbook_pub/Systems/3120_R/3120_R.html
    Michael

  • Page count and total page number for multiple forms in spool

    Hi,
    I'm printing 5 or 6 forms in the same spool, they basically represent one big form.  Hence the page numbers should continue from one form to the other, also I will need a total page count that includes all the pages from all the forms. How should I go about doing this?

    I'm not certain, but if you change the the page counter mode to INC for every PAGE except the start page of the first form it may just keep counting. Normally the first page of a form is set to START, making it page 1.

  • How to get page number from the PDF using Javascript

    Hi,
    We are having list of Single page PDF. The pdf are named in the order,
    ISBN_Author_01.PDF  (with real page number as i)
    ISBN_Author_02.PDF  (with real page number as ii)
    ISBN_Author_03.PDF  (with real page number as iii)
    ISBN_Author_04.PDF  (with real page number as 1)
    ISBN_Author_05.PDF  (with real page number as 2)
    ISBN_Author_06.PDF  (with real page number as 3)
    ISBN_Author_nn.PDF  (with real page number as 500)
    Here each pdf has a page number and in sequential order.
    The task is to check whether all the pdfs are in sequential order (i.e i, ii, iii, 1, 2, 3). If any page is missing, the script should throw an error report.
    To do this task, I am writing a Javascript to get the real page number from the PDF.
    Can anybody help me how to get the page number from the PDF using Javascript.
    Thanks,
    Gopal

    The "real" page number within a PDF is the count of the physical page starting at 0, zero.
    pageNum numPages
    The number printed on each page is the page label.
    setPageLabels  getPageLabel
    You will have to open each PDF and your script would need to know the page label for that file. I would expect you would need to build a 2 dimensional  array of the file names and the page label for the page within that array.

  • Need to delete the old page number from a combined file and replace it with the new number. is there a way for me to do that using JavaScipt

    is there a way of using JS to delete the old page number (1,3,32,78) on a combined PDF and inset it with a new page numbers (1,2,3,4) Thank you

    Depends. If the page numbers can be located by their location on the page then a script can be written to redact that area, and then add new page numbers in their place (or somewhere else).

Maybe you are looking for

  • How do i take a snapshot with my iSight?

    i would like to take a digital photo using my iSight, but i have not come up with how to do it. what programs can i use and how do i go about executing this? thanks!

  • Need to get mass info from my XML library file

    Hi. A while ago I was trying to set up my computer so that a user other than me could play my iTunes songs but not be able to delete them. In the course of that I somehow moved a file I shouldn't have and iTunes lost all my info. I finally managed to

  • Get the URL

    Hi all. I am quite new to BSP. Actually my BSP is being called from web dynpro. I need to get some parameters from the URL. How can I read back the URL and analyze the parameters? Thanks in adv.

  • Please tell me how can I put Bookmarks for all pages opened in Firefox.There was an option ("bookmark all pages") which vanished.

    Please tell me how can I put Bookmarks for all pages opened in Firefox.There was an option ("bookmark all pages") which vanished.

  • Which camera

    i am start a photo biz  i like to shoot a lot of nature and scenic stuff   would like to know whats a good starter camera. have considered the kodak easy share z980. also would like to know about a starter slr