Writing commands to get specific data channels in the output report via script or automated script generation..

In my project I have to make certain calculation and then get the data plotted in the given report template. I am using automated script for this. My script is doing all the calculations and then it not selecting and drag-dropping the selected channels on the report template. Its saving the blank report template.
I am struggling to get the data for specific channels plotted by using the script. I need the selected channels to be plotted on this report template and then get it saved.
Any help will be deeply appreciated. Thanks
Solved!
Go to Solution.

Hi LaxG,
Brad is absolute right. It is possible to create your whole layout via script.
If you have loaded  the example report layout you can copy these lines to create a new line in your plot. This is the recommended object oriented way.
call Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Add(e2DShapeLine, "anyName")
Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape.XChannel.Reference               = "[1]/Zeit"
Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape.YChannel.Reference               = "[1]/Geschwindigkeit"
For performance reasons it's recommended to use the it like this.
dim oLine
set oLine = Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape
oLine.XChannel.Reference               = "[1]/Zeit"
oLine.YChannel.Reference               = "[1]/Geschwindigkeit"
Like Brad mentioned it is much easier, that you have a stored template of your report with all setings and customisations already done.
You open this layout file and have stored the names of your calculated channels. When you are doing this with a script they always have the same name and belong to the same group.
Now you can customize the references of the line items.
Kind Regards,
Philipp K.
AE | NI Germany

Similar Messages

  • HT1386 I have an older iPhone (3gs) and need to upgrade to a newer phone (4S).  I need to get my NOTES, CALENDAR, CONTACTS, PICTURES, etc backed up on iTunes so I can get that data loaded onto the new phone.  But not sure how to do that.

    I have an older iPhone (3gs) and need to upgrade to a newer phone (4S).  I need to get my NOTES, CALENDAR, CONTACTS, PICTURES, etc backed up on iTunes so I can get that data loaded onto the new phone.  But not sure how to do that.  When I open iTunes it has a button that say "Back Up iPhone", but I'm not sure what that does.  When I go into the sync options it say I have another user account and asks me if I want to merge of replace. I'm assuming it's trying to tell me I have an older iTunes Library, but don't know that.  Geez, maybe people over 60 shouldn't have iPhones, iTunes just bafles me.

    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • How to get values/data stored in the database into a list-item.

    how to get values/data stored in the database into a list-item.
    i tried to make a list item without any values assigned to it...but i got the below error.
    FRM-30191: No list items defined for required poplist.
    or
    FRM-32082: Invalid value for given item type.
    List EMPNO
    Item: EMPNO
    Block: EMP
    Form: MODULE5
    FRM-30085: Unable to adjust form for output.
    then according to some docs, i tried the the following for the trigger
    when-new-form-instance
    declare
         rg_name varchar2(40) := 'emp_rec';
         status number;
         groupid recordgroup;
         it_id item;
    begin
         it_id := Find_Item('empno');
         groupid := create_group_from_query(rg_name, 'select empno from emp');
         status := populate_group(groupid);
         populate_list(it_id, groupid);
    end;
    but yet didnt work... :(
    so how the heck do i get values fetched from the database table into the list item?

    for list items you need to values in the record group, one is the shown value and one is the returned value.
    Check out the online help for the populate_list built-in.
    You'll need something like select ename,ename from emp as the record group query.

  • I've recently messed up my Mac OS X Lion by deleting Aperture, but I need to get my data out of the computer. And by the way, I've got an important project in Final Cut Pro X. Is there any way I can back it up (including fxs and positions of the clip) ?

    Hello everyone
    I've recently messed up my Mac OS X Lion by deleting Aperture, but I need to get my data out of the computer. I've tried to repair it using DU, but it said I needed to backup all my data and reinstall the OS. How do I backup my data to an external drive?
    And by the way, I've got an important project in Final Cut Pro X. Is there any way I can back it up (including fxs and positions of the clip) ?
    Hope you guys can help me!

    You need to back up 2 folders, Final Cut Events and Final Cut Projects which by default are located on your Movies Folder. You can always check by clicking on a clip inside Fianl Cut X and selecting Show in Finder in the contextual menu for the selected clip.

  • Getting a dump while executing the standard report BUSCHDOC

    Hi,
    I am getting a dump while executing the standard report BUSCHDOC.
    I am specifying the following values:-
    Application Object : BUPA
    Business partner:<some business partner>
    Changed on: <some date>
    Changed by:<some userid>
    Below are the dump details
    Short text
        CREATE DATA: The specified type "BUSSRCH_401BUPAT" is no valid data type.
    Any suggestions to avoid the dump are welcome.
    Thanks,
    Ravindra

    Hi Ravindra,
    Can you execute report BUP_BUSSRCHGF_REPAIR and try again ?
    Also, go to transaction BUS10, click the button Geneate Selection. On next screen, give Application object = BUPA, Max no. of tables per view = 1.
    Regards,
    Rishu.

  • ADDING A DATE FIELD IN THE OUTPUT SCREEN OF Tcode FBL1N

    Hi guys..I want to add a From-->To 'DATE' field in the output screen of Tcode 'FBL1N' in the line items header part....Please tell me how to do this..??

    Hi,
    Unfortunately you can't add these fileds using with Settings>Layouts>Current header rows, you can only add the field Open items as on date.
    Rgds
    Murali. N

  • Getting specific dates from table

    hi all, i have the following data in a table.
    WITH monthends AS
    SELECT 3333 cid, To_Date('1/31/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('2/1/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION all
    SELECT 3333 cid, To_Date('2/2/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('2/28/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('2/4/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('3/31/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION all
    SELECT 1111 cid, To_Date('2/28/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('3/1/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('3/2/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('4/30/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('3/4/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('5/31/2010','mm/dd/yyyy') dt, 11 pid FROM dual
    my output should be as follow
    CID       DT           PID
    3333     1/31/2010     10
    3333     2/28/2010     10
    3333     3/31/2010     10
    1111     2/28/2010     11
    1111     4/30/2010     11
    1111     5/31/2010     11basically i just want to display all the month end dates only from the table. can someone help write a query for this?
    i tried using case and last_day function (case when dt=last_date(dt) but the case statement will display the rest of rows even if no else statement is specified.
    i just want to output the months ends for specific cid,pid combination

    This...
    WITH monthends AS
    SELECT 3333 cid, To_Date('1/31/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('2/1/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION all
    SELECT 3333 cid, To_Date('2/2/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('2/28/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('2/4/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('3/31/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION all
    SELECT 1111 cid, To_Date('2/28/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('3/1/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('3/2/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('4/30/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('3/4/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('5/31/2010','mm/dd/yyyy') dt, 11 pid FROM dual
    select cid, dt, last_day(dt) ldy, pid from monthends
    where dt = last_day(dt)
    3333     1/31/2010     1/31/2010     10
    3333     2/28/2010     2/28/2010     10
    3333     3/31/2010     3/31/2010     10
    1111     2/28/2010     2/28/2010     11
    1111     4/30/2010     4/30/2010     11
    1111     5/31/2010     5/31/2010     11vr,
    Sudhakar B.
    Edited by: SudhakarB on May 13, 2010 1:46 PM
    Added CID

  • How to search on creation Date to get specific date records

    Hi,
    I have created a search page based on VO which contains creation Date field. Creation Date field stores date with time into database.
    af:query is created on this VO. Suppose I have created 10 records today and want to query that by providing today's date(6/21/2011) in CreationDate field. On click of search, it does not return any record.
    Since records in database are timestamp based, it does not return any record.
    How to achieve this functionality where user can search by specific date?

    799794 wrote:
    Hi,
    I have created a search page based on VO which contains creation Date field. Creation Date field stores date with time into database.
    af:query is created on this VO. Suppose I have created 10 records today and want to query that by providing today's date(6/21/2011) in CreationDate field. On click of search, it does not return any record.
    Since records in database are timestamp based, it does not return any record.
    How to achieve this functionality where user can search by specific date?did you created any view criteria? share with us more info

  • Looking for a specific data in all the cubes and ods

    Hi Gurus
    "i am looking for all the cubes/ods that contain a specific Controlling area(lets say 0123) and a specific 0plant (lets say plant 4567), now i can go down to every cube and ods and search for it in its contents but i have like hundereds of cubes it will take days, is there a simple way to look for some particular data in all the cubes/ods, and it tells me which cube/ods contains these plants and controlling area."
    <b>now based on this above post i got a reply that abaping can help.</b>
    "you could write an ABAP where you call for every InfoProvider function RSDRI_INFOPROV_READ_RFC like
    loop at <infoprov-table> assigning <wa>.
    call function 'RSDRI_INFOPROV_READ_RFC'
    exporting
    i_infoprov = <wa>
    tables
    i_t_sfc = i_t_rsdri_t_sfc
    i_t_range = l_t_rsdri_t_range
    e_t_rfcdata = l_t_rsdri_t_rfcdata
    exceptions
    illegal_input = 1
    illegal_input_sfc = 2
    illegal_input_sfk = 3
    illegal_input_range = 4
    illegal_input_tablesel = 5
    no_authorization = 6
    generation_error = 7
    illegal_download = 8
    illegal_tablename = 9
    illegal_resulttype = 10
    x_message = 11
    data_overflow = 12
    others = 13.
    endloop.
    i_t_sfc should contain 0PLANT and i_t_range the restriction on you plant value.
    with a describe table statement on l_t_rsdri_t_rfcdata you can get the hits.
    check test program RSDRI_INFOPROV_READ_DEMO for details
    best regards clemens "
    <b>now my question is how do  i use this code to check each and every cube in bw, it seems like it is meant to be for only one cube at a time. and what does he  mean by  "for every infoprovider function"</b>
    thanks

    THANKS

  • Looking to get a data plan for the sole purpose of playing online video games

    Hi everyone,
    I live in the mountains of Pine Valley, CA and the seclusion is becoming intolerable.  I'm looking to get a data plan with Verizon to play online video games, namely Diablo 3 or failing that due to latency, then Civilization 5.  Can anyone give me pointers on if this would work and what plan I could get?  Currently, I have a plan with Boost Mobile which uses Sprint cell phone towers.  I tested my internet connection with speedtest.net and received a ping as low as 140 and as high as 1000, but I'm hoping the 1000 is just due to reception issues that can be fixed with a better antenna.    The 140 ping is a little high too but I'm hoping this will be better on the Verizon network since I think their cellphone towers are closer.  The closest landmark to me is the Golden Acorn Casino at 1800 Golden Acorn Way  Campo, CA 91906.  If anyone could tell me the distance from Verizon's cell tower to the casino and Sprint's and could estimate a ping value based on that, I would really appreciate it.
    I like Verizon's data plan for 10gb but I'm confused on device connectivity.  Is this the data plan plus whatever router device I hook it up to? I would also need some sort of antenna and a router, wireless or wired.  Can anyone give me pointers on how to find these?  An estimation on Ping and bandwith speed and also on peak hours in my area would be nice too.  Thanks to anyone that can help me with this!  Oh, and while I don't think my area has coverage for 4g, though I'm pretty sure there is 3g, would I possibly get 4g if I had a strong enough antenna?

    Homefusion comes with antenna that is mounted OUTSIDE of your dwelling. That why they send someone out to install it. It also comes with the router. You're thinking of Share Everything data only plans. Where you pay $20 for the mi-fi and then pay extra on the data pending how much you want.  Share Everything with a mi-fi and 10 GB would be $80 a month when you can get Homefusion for $60 for the same 10 GB. An considering the antenna is more power and outside you're a lot more likely to get reception with Homefusion. In either case it should be noted you'll need to pass a credit check and sign a two year contract.

  • Ldif2db command fails to import data and deletes the root node

    ldif2db command fails to import data into LDAP.
    The command used was
    ldif2db -n userRoot -s "dc=example,dc=com" -i test.ldif
    The test.ldif conains the nodes under dc=example,dc-com
    eg: ou=test,dc=example,dc=com
    But on executing the command the root node "dc=example,dc=com" itself got deleted. The console output was like "Skipping entry uid=test001,ou=test,dc=example,dc=com" for all the entries present in ldif.
    What might be the reason for this ? Any clues ?
    The reason y i am trying to do this ldif2db is to preserve the createtimestamp and modifytimestamp while migrating data from one Directory Server to another. Any other ways of doing it ?

    ldif2db is the right command to migrate data and preserve those attributes like createtimestamp and modifytimestamp.
    However, when this command is used, it will first remove everthing before it load whatever you want. So you need to be very careful. I got this terrible problem as well.
    In my experience, if you use this command, don't use "-s". You can just use:
    ldif2db -n suffixName -i test.ldif
    If you only have one suffix (database), then you can use "-n userRoot".
    Also, if you migrate your data from server A to server B, you'd better dump the data using db2ldif -n userRoot -a test.ldif from server A. Then load it into server B using ldif2db -n userRoot -i test.ldif.

  • Do you have to get a data plan on the iPhone 4

    I want to buy an iPhone 4 but i dont want to pay $50.00 a month for a bill. If I buy the iPhone 4 on Virgin Mobile with the super tab do you have to get a data plan or can you get a normal plan for talk and text???

    Very likely, yes.
    Call Virgin and ask.

  • Getting "ATTENTION: Unsaved Changes..." box via SCRIPT commands?

    Hello,
    When I exit DIAdem without saving all of my changes, a dialog box comes up:
    "ATTENTION: Unsaved changes found in the following DIAdem panels:
    "DIAdem - VIEW  (File.TDV)
    "DIAdem - REPORT (File.TDV)
    "Do you want to save the changes in these DIAdem panels when leaving the program?
    Is it possible to call this in a script?  Or is there a better way to detect unsaved changes in any of the DIAdem panels? 
    Or...I will describe what I am doing and perhaps someone has a different idea to accomplish what I want?  What I have done is set up some scripts so that users can open "DIAdem Project" files (TDM data with associated VIEW and REPORT layouts) and when users are opening a different "Project" I would like to give them the option of saving any changes they have made before loading something new.
    Thank you!
    Julia Moeller

    Ok, I thought I would share what I wrote to get a box that looks exactly like what DIAdem brings up.  One more question...is there any way to find out if my SCRIPT workspace has been changed?  Then it would be perfect! 
    Thank you again, Julia
    Dim ChangeMss, DataFileNameShort
    ChangeMss = "ATTENTION : Unsaved changes found in the following " & _
      "DIAdem panels:" & vbCRLF & vbCRLF
    DataFileNameShort = Split(DataFileName, "\")
    If DataChanged Then ChangeMss = ChangeMss & " - DIAdem NAVIGATOR" & vbTAB & vbTAB &"(" & DataFileNameShort(Ubound(DataFileNameShort))  & ")" & vbCRLF
    If View.LayoutModified Then ChangeMss = ChangeMss & " - DIAdem-VIEW" & vbTAB & vbTAB & "(" & View.FileName & ".TDV)" & vbCRLF
    If CheckReportChanged Then ChangeMss = ChangeMss & " - DIAdem-REPORT" & vbTAB & vbTAB & "(" & PicFile & ".TDR)" & vbCRLF
    ChangeMss = ChangeMss & vbCRLF & vbCRLF & "Do you want to save the changes in these DIAdem panels when leaving the program?"
    Call MsgBoxDisp(ChangeMss, "MB_YesNoCancel", "MsgTypeWarning", 0)
    ' CheckReportChanged()                                            *** New Function ***
    ' Checks changes in REPORT
    Function CheckReportChanged
      Call GraphChangedChk()
      CheckReportChanged = PicIsChanged
    End Function ' CheckReportChanged

  • To get last date of all the month in between year 2000 to 2100

    Hi all
    how we can make view that list last date of all the month in between year 2000 and 2100
    Thanks & regards
    vivek

    You would use the LAST_DAY() function:
    WITH months AS
         SELECT      TO_DATE('01/01/2000','MM/DD/YYYY') AS dt1
         ,     TO_DATE('12/31/2100','MM/DD/YYYY') AS dt2
         FROM     DUAL
    SELECT LAST_DAY(ADD_MONTHS(dt1,level-1)) LST_DAY_MONTHS
    FROM     months
    CONNECT BY LEVEL <= MONTHS_BETWEEN(dt2,dt1)+1Sample of results (too many to post):
    LST_DAY_MONTHS
    01/31/2000 00:00:00
    02/29/2000 00:00:00
    03/31/2000 00:00:00
    04/30/2000 00:00:00
    05/31/2000 00:00:00
    06/30/2000 00:00:00
    07/31/2000 00:00:00
    08/31/2000 00:00:00
    09/30/2000 00:00:00
    10/31/2000 00:00:00
    11/30/2000 00:00:00
    12/31/2000 00:00:00
    01/31/2001 00:00:00
    02/28/2001 00:00:00
    03/31/2001 00:00:00
    04/30/2001 00:00:00
    05/31/2001 00:00:00
    06/30/2001 00:00:00
    07/31/2001 00:00:00
    08/31/2001 00:00:00
    09/30/2001 00:00:00
    10/31/2001 00:00:00
    11/30/2001 00:00:00
    12/31/2001 00:00:00
    01/31/2002 00:00:00
    02/28/2002 00:00:00
    03/31/2002 00:00:00

  • Cannot get ODBC Data Source to connect on report server

    Hi,
    I have an ODBC Connection installed on our PROD server that when you test through I-SQL and the ODBC Administrator it works.
    When I add a new data source to the reporting server we interface and press test connection it just hangs for ages then gives a page cannot be displayed.
    I have installed all the same on the DEV server and it works fine.  I have set all of the configs to exactly the same!
    I feel like something to do with reporting services is not correct.  Any one have any ideas?
    Thanks.

    Hi KMoff,
    Per my understanding that you are using the ODBC datasource type and when you have set the connection string and click the "Test Connection" it hangs and got some error, right?
    Please find the details steps below and try to provide more information according to the questions:
    Whether the error message you got is "page cannot be displayed", if not, please try to provide more details inforamtion.
    Did you got the error message when you click on the "Test Connection" from designer or report manager.
    If you got the issue only in the report manager, the issue can be caused by the support of the ODBC driver in the report manager and also the bit.
    Standard .NET Framework data providers do not necessarily support all the functionality supplied by Reporting Services data processing extensions. In addition, some OLE DB data providers and ODBC drivers can be used to author and preview reports, but are not
    designed to support reports published on a report server. See
    Data Sources Supported by Reporting Services (SSRS)
    When you deploy a report to a 64-bit report server (x86), the report server must have natively compiled 64-bit data providers installed. Wrapping a 32-bit data provider in 64-bit interfaces is not supported.
    Could you provide more details information about the connection string you are currently using.(Excel files or something else)
    Similar thread for your reference:
    SSRS - Using Excel as a Data Source
    Details information about the ODBC datasource:
    Create SSRS report using Excel Data Source Step by Step
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

Maybe you are looking for