How can I register channels imported using DataFileLoad function in DIAdem 2012?

Hallo,
I would like to import data from Excel into the DIAdem 2012.
I newly use DataFileLoad and ufi file to define import plugin.
But when I want to copy a the imported channels to another group, I get err: The Channel argument of the AddChannel method must be IChannel.
How can I register/convert/refersh channels, so I can work with them?
I'm showing code sample I took from standard example collection, from: "Loading Excel Files with a DataPlugin", script file A_172132_ExcelDataPlugin.vbs
Note: to get to worky my example you have to set proprely used paths
If Not ItemInfoGet("sPathDocuments") Then
Call GlobalDim("sPathDocuments")
Call GlobalDim("sPathData")
End If
sPathDocuments = CurrentScriptPath
sPathData = CurrentScriptPath & "..\Data\"
call PrepareAndLoadDataset
sub PrepareAndLoadDataset()
Call Data.Root.Clear()
If Not FileFilterExist("A_172132_Example") Then
Call Navigator.RegisterDataPlugin(sPathDocuments&"A_172132_Example.uri",True)
End If
set MyGroup = DataFileLoad(sPathData & "A_172132.xlsx", "A_172132_Example","")
set MyTemp = Data.Root.ChannelGroups.Add("temp")
Call MyTemp.Channels.AddChannel(MyGroup.Item(1).ChannelGroups(1).Channels(1))
end sub
Thank you for advance.
Radek
Solved!
Go to Solution.

Hello Codr,
Your script works fine on with my DIAdem 2012. I just defined "Dim MyGroup, MyTemp"
The result is a new channel group with one channel. The channel is the first channel of the first group of the loaded dataset.
In case you would like to register the Excel file (and not load it) you need toexpand the copied channel. This looks like this:
sub PrepareAndLoadDataset()
Call Data.Root.Clear()
If Not FileFilterExist("A_172132_Example") Then
Call Navigator.RegisterDataPlugin(sPathDocuments&"A_172132_Example.uri",True)
End If
dim MyGroup, MyTemp, oChn
set MyGroup = DataFileLoad(sPathData & "A_172132.xlsx", "A_172132_Example","Register")
set MyTemp = Data.Root.ChannelGroups.Add("temp")
set oChn = MyTemp.Channels.AddChannel(MyGroup.Item(1).ChannelGroups(1).Channels(1))
call ChnValExpand(oChn)
end sub
Greetings
Walter

Similar Messages

  • How can I execute program after using F4_Filename function?

    Hi all,
    I'm a new user on the forum. I've been working with ABAP and SAP for a few weeks. I wrote a program for importing data from excel file to SAP using BDC. During searching this forum I found information about F4_Filename function which allows users to browse the disc for a file. I'd like to add this function to my program. I have a parameter for a file name but this is an ordinary static string field. When I added the code which I found in the message on this forum the rest of program doesn't execute.
    This is simple program for example:
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    f_name = p_file.
    write:/ f_name.
    This program works correctly. There is a field for parameter. I can change the default name for a file.
    After all, I can run the program (F8) and rest of the code is executed. The field for parameter dissapears from the screen and the file name is displayed. ( command write)
    Now I added a function F4_Filename
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
           exporting
                program_name  = syst-repid
                dynpro_number = syst-dynnr
                field_name    = 'p_file'
           importing
                file_name     = p_file.
    f_name = p_file.
    write:/ f_name.
    I can browse a computer for a file now but after selecting the file I can't run the rest of the code. When I click on the icon or press key F8 the field for parameter doesn't dissapier and the command write is not executed.
    What do I do wrong?
    Could anyone suggest me a solution? How can I executed the code after using this function?
    Thanks in advance.
    Regards,
    Arek.

    Hi arkadiusz,
    1. simple
    2.
    <b>start-of-selection.</b>
    f_name = p_file.
    write:/ f_name.
    regards,
    amit m.

  • How can HANA Server Side JavaScript use "Eval" function?

    Hi HANA Experts,
      I use EVAL function to create an object by classname in xsjs file, but it has an Error "Eval is evil". In Client javascript, we can use the Eval function. How can we use "EVAL" function in HANA server side javaScript?  Thanks a lot.

    That looks like the client side JSLint check to me.  Those can be customized or even turned off. If you truly want to use eval.
    >XSJS inherits most of the features of javascript but do not expect all of its features
    Actually that's not exactly accurate.  XSJS is standard ECMA JavaScript (Mozilla SpiderMonkey VM).  It does run in strict mode, however. This isn't a limitation of XSJS but a conscious decision to force the VM into the strict mode - which is really the recommendation for JavaScript anyway.  We also apply JSLint checks as above. Sometimes they are quite restrictive. However they can be customized or even completely turned off at the project level:
    To the point of Eval, there are some excellent articles online.
    http://javascriptweblog.wordpress.com/2010/04/19/how-evil-is-eval/
    coding style - When is JavaScript&amp;#39;s eval() not evil? - Stack Overflow
    JSLint Error Explanations - eval is evil

  • How can I stop the alarm using fingerprint function

    I set two alarm records in my 5s and i was aware. I use fingerprint to stop it but it didn't work and each alarm rang for 15 min. I couldn't stop it. How can i stop the alarm?

    You can either snooze it, or slide to unlock to stop it.

  • How can I register the iTunes without a credit card? No "None" can be selected but only different kinds of credit cards. Thanks!

    How can I register the iTunes without a credit card? No "None" can be selected but only different kinds of credit cards. Thanks!

    Get an iTunes gift card & redeem that in iTunes using your existing Apple ID.
    Then the option for none, regarding a credit card should appear.

  • I was running Firefox on another computer that lost it's motherboard, was able to salvage the harddrive, but my mail files on the older hard drive have a different name, how can I pull or import those older files into firefox running on another computer?

    I had been running other email clients for years and finally switched to Firefox. All the while importing my other email folders. So I had quite a large history of email. I had been backing up my system using Acronis for years. My desktop's motherboard crashed and was not worth repairing. I pulled my desktop hard drive and turned it in a standalone drive. I re-established my email on a laptop starting from scratch using Firefox. I would like to import (if possible) the emails history that is stored on the standalone drive (formerly my old hard drive). However, the names of the mail folders on the drives are different. For example: current computer the mail folder is named garlic.com. On the standalone drive (old hard drive) there are several folders and they are named, for instance; mail.garlic.com, mail.garlic-1.com , and so forth. it goes up through garlic-4.com.
    How can I pull or import these older folders into my current email folder and see all my old email archives?

    You are not going to be able to run your old system from the backup on this old computer as the hardware is incompatible.
    You need to get a new computer or a refurbished one.

  • I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID

    I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID?
    The apple ID was his personal account and can no longer gain access. Im sure I can get purchase recipts from the accounting department if needed. I tried to put the Ipad in restore mode and used itunes to "recover" the ipad but it still wont let me in because he registered the device with the "lost iphone" feature or whatever that is.

    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818
    The Apple ID and Password that was Originally used to Activate the iDevice is required
    If you do not have that information you will not be able to use the Device.

  • I registered my ipod touch on my other apple ID. i dont need that apple ID so i created a new one. how can i register my ipod touch into my new Apple ID?

    i need help on registering my ipod touch into my new apple ID. i dont want to use the other ID. so how can i register it into my new Apple ID?

    Changing Facetime settings on an iPod will have no affect on cellular settings on an iPhone. Something else is going on there. If she did not change any settings on the phone, then nothing she did could affect your celluar 3G.

  • HT1212 My iPhone was stollen and 3 months later the police return it back to me. But now it is locked to other iCloud account. How can I register it with my account?

    My iPhone was stollen and 3 months later the police return it back to me.
    But now it is locked to other iCloud account.
    How can I register it with my account?
    The device is still registered in My Support Profile->My Products and untit 29.11.2014 I was able to see it in "Find My iPhone" as offline.

    Was the link I provided of no use.

  • How can I remove a flag using a rule in Mail.app?

    I'm using Mail Act-On to flag messages that are important. I also have got a smart mailbox that displays only those messages that are flagged, this is my "To Do" mailbox.
    Once I've read and answered the message I want to remove the flag, preferrably via a rule using Mail Act-On as well. However in the rules dialog in the Mail.app preferences there's only the option to set a flag, not to remove one.
    Can anyone help: how can I remove a flag using a rule?? Maybe via Applescript as the last resort?
    Thanks for any advice Jan

    Hi Jan
    I haven't gotten around to put unread and unflag into Mail-ActOn but MailTags has the functionality. MailTags also allows you to mark a message unread via act-On rule.
    It is interesting to note that apple doesn't include unflag and unread as the rules were originally intended to apply only to new messages (of which none should be read or flagged) with that logic, there would be no need for unread, unflagg.
    @David: The reason to do it via Act-On rule would be to set up a sequence of events, one of which is to unflag, others may be to set keywords, move messages, set colors etc.
    Scott

  • Itunes and proxy settings. Itunes keeps the proxy setting from IE and I can't adapt it due to company policy. How can I force itunes to use firefox?

    itunes can not connect to server and I can't find its proxy settings.
    So I think it uses these from IE and those are blocked by company policy.
    So, how can I force itunes to use the firefox settings

    I fixed this issue (with help from tech support) and it involved several things.
    After adding a song to iTunes, right-click on the song in iTunes and select "Update iTunes Match."
    OR go to the iTunes menu-->Store-->Update iTunes Match.
    Maybe that's the reason, it just hadn't updated to the cloud.
    OR maybe it's not a high-enough bitrate file.   This happens to me because most of my tunes are home-recorded.
    Sometimes converting to .mp3 or Create AAC version might work. (You do this with a right-click in iTunes, and then you will want to remove the original file from iTunes.)
    There is an iTunes Preferences setting, under General Preferences called Import Settings.  Try setting it to AAC Encoder and iTunes Plus.   That (I think) causes imports to be slightly better quality.
    Good luck!  The tech support person at Apple is requesting that a knowlege-base article be written about this.

  • I took a 15 minute video clip on my phone and now I can't import it into iphoto.  I've been able to import clips to iphoto in the past.  How do I fix this?  How can I get it imported onto my MacBook and ultimately iMovie?

    I took a 15 minute video clip on my phone and now I can't import it into iphoto.  I've been able to import clips to iphoto in the past.  How do I fix this?  How can I get it imported onto my MacBook and ultimately iMovie?

    Maybe try one of the WiFi transfer Apps?  There are several to choose from. I use Photosynch quite often to send photos and videos between my computer(s), my iPhone, and iPad.

  • How can I delete pictures imported on my ipad from my camera with usb jack ?, How can I delete pictures imported on my ipad from my camera with usb jack ?

    How can I delete pictures imported on my ipad from my camera with usb jack ?, How can I delete pictures imported on my ipad from my camera with usb jack ?
    I have hundreds of pictures and I want to delete completely the imported files.
    Thanks

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • I've loaded my CS5 onto my ,ac book air but need adobe also...how can i download adobe acrobat using my serial number?

    i've loaded my CS5 onto my ,ac book air but need adobe also...how can i download adobe acrobat using my serial number?

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • How can i register app store without credit card

    how can i register app store without credit card

    You need to follow the instructions on this page when creating a new account : http://support.apple.com/kb/HT2534
    If you don't use those instructions when creating an account then you will need to enter credit card details (which you should be able to remove after entering it) before the account can be used to download any item from the store.

Maybe you are looking for

  • Rows Per Page doesn't affect the number of records displayed

    I just updated from 3.2 to 4.0 this morning. When I change the Rows Per Page value in the action menu the report doesn't change and the number of records displayed stays at 10. The report has ~6000 records. I edited the report attributes and add the

  • Elements problem after divx codec install

    hi all, I am having an interresting problem and I am hoping someone can give me some advice. I have been running Premiere Elements 8 for a while and a it has been working fine. a few days ago I tried to install the divx codec. Now I open Premiere Ele

  • [JS][CS3] Try - catch(e) question

    Hi I am trying to use a try command, with a catch(e): try myDocFrames = app.selection; catch(e) myDocFrames = myDoc.allPageItems; The Catch(e) doesn't seem to work for me.  I am guessing there is something wrong with my syntax. Any help would be much

  • Adding a Button to a Form

    I am brand-new to Oracle Forms, but have experience in VB and PL/SQL. Anyway, I have created a sample form based of a simple view. It will run client-server and I can also run it (recompiled) via Forms Server on my Solaris-based 9iAS Apps Server. Whe

  • RSI_COPY_MASS_PARAMETER scripts for all mass activity types

    We have CPS version 7 and I am trying to submit some mass activities The first task is to copy mass parameters there are three scripts one for BILLING, BIPR and for INVOICES Where can I obtain the scripts for copy mass activity parameters for other t