"void" value in Data Sets external file?

Hi I'm trying to achieve what I thought it was a simple thing (and turned out not to be so):
I'm importing a set of variables and values from an external file via menu Import/Dataset/Apply...
Occasionally, I'd like not to return any value from an specific field, an let it as is (with it's current value/content in the photoshop layer).
I tried setting the empty separator,void and null with no success.
Example:
(file.txt):
mytext1,mytext2,logo,backgroundimage (fields)
dude,sometext,void,myimage.jpg (values)
also tried:
mytext1,mytext2,logo,backgroundimage
dude,sometext,,myimage.jpg
and finally:
mytext1,mytext2,logo,backgroundimage
dude,sometext,null,myimage.jpg
With null, void or ,, I'm trying that photoshop ignores this field and takes it's current layer value.
Is this possible?
thanks in advance

I think that with scripting you could get close to useing null/blank values.
The script would have to read the original dataset text file one line at a time and create a new dataset text file to import then apply. If it found a null or undefined value it would replace that value with the current value before writing the new file. I think that it would only work with text and visibility. I not sure how it could handle image replacement.
Here are some functions you will need.
fileImportDataSets = function( file ) {
    var desc = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putClass( stringIDToTypeID( "dataSetClass" ) );
    desc.putReference( charIDToTypeID( "null" ), ref );
    desc.putPath( charIDToTypeID( "Usng" ), new File( file ) );
    desc.putEnumerated( charIDToTypeID( "Encd" ), stringIDToTypeID( "dataSetEncoding" ), stringIDToTypeID( "dataSetEncodingAuto" ) );
    desc.putBoolean( stringIDToTypeID( "eraseAll" ), true );
    desc.putBoolean( stringIDToTypeID( "useFirstColumn" ), true );
executeAction( stringIDToTypeID( "importDataSets" ), desc, DialogModes.NO );
function applyDataSet(setName);{
    var desc = new ActionDescriptor();
        var setRef = new ActionReference();
        setRef.putName( stringIDToTypeID( "dataSetClass" ), setName );
    desc.putReference( charIDToTypeID( "null" ), setRef );
executeAction( charIDToTypeID( "Aply" ), desc, DialogModes.NO );

Similar Messages

  • Why would only the first line of my data set txt file work?

    Hi -
    I had a lot of success using variables and external data sets until today.
    I have an external text file that I have imported as a data set (Image/Variables/Data Sets/Import...).  All of the variables have been defined and confirmed (at least PSD hasn't told me it can't find something which is the typical error msg.)
    This external text file, with the extension ".txt" has 12 lines on it, each line is 7 comma separated values, and each line is ending in a carriage return.
    YESTERDAY when I used File/Export/Export Data Set as Files... the procedure went beautifully for the 8 times I used it.  TODAY I only get the first of the 12 lines completed and then the export stops.  There are no error messages or other signs that Photoshop has choked on something so I guess something is wrong with my text file... BUT WHAT??
    Any insight on any step in this would be helpful.  You all know that if I'm using this feature it's because I have TONS of repetition ahead of me if it doesn't work.
    TIA your expertise,
    JL

    Fixed it!
    When Exporting as Data sets as files... the step I missed was to select "All Data Sets" from the Data Set drop down.
    Thanks all.
    JL

  • Exporting Data Sets as Files in CS5

    Why would CS5 crash every time I try to export Data Sets as files? I have been just doing it in CS2 because of the problem. However, CS2 is acting up for some reason at the moment.
    If CS2 where working, as it has in the past, then the exact same sets would export easily from there but not CS5. Is there any way to fix this problem?

    Hello,
    Yes I am running the latest version, on a mac. The Data Set is moderately sized, about 30 sets with 5 perameters (sorry if that is not exactly what they are usually called). It crashes while the data set is processing. After it saves a couple of files the system crashes. Sometimes it makes it a bit further, but never all the way through a whole set. CS2 is having all sorts of problems for me all of the sudden. I am going to look for my disk to unintstall then reinstall. It can't open files from File/Open and crashes within minutes of opening, even if I'm not doing anything with it yet. The only reason I have it is to run the Data Sets so I just hope I can find my install disk.
    Thanks for any help!

  • Dynamic Internal Table for reading data from external file

    Hello All,
    The task was to create a internal table with dynamic columns,
    Actually this is my first task in the WebAS 6.20, my program is based on input file provided by user with certain effort. this file can have different effort for a one yr to five year frame..
    I needed to read the raw data from file, based on months create a internal table to hold the data, after this i need to validate the data...
    I have browsed thru dynamic internal table topic, but couldn't find any dynamic appending structure, the dynamic structure would contains 12 month fileds.
    can any one help me in getting my task completed..
    Thanks
    Kumar

    Hi,
    I see that you posted the same question a couple of days ago at Dynamic Internal Table for reading data from external file Didn't Charles's response address your problem?
    Regards

  • Downloading the data to external file

    HI ABAPers,
       I have a dynamic internal table which i created using CREATE DATA statement and i have put in data into it. I have to download that internal table data into a external file. As the internal table is dynamically created it will be dereferenced using a field symbol. In all the download function modules like gui_download ws_downlaod and method like CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD we can pass only the standarad table for downloading the data and not the table which is dereferenced by field-symbols. Kindly help.
    Regards,
    Kasi S

    Hi Kasi,
    As the great Max just said, the best way for you to download the dynamic internal table is via an intermediate table made up of characters.
    Declare a table as under:
    DATA: BEGIN OF itab  OCCURS 0,
               FIELD TYPE char256,
              END OF itab.
    Then transfer the contents of your field symbol to this internal table row by row.
    Then you can download the table using CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD .
    Regards,
    Chetan.
    PS: Reward points if this helps.
    Regards,
    Chetan
    PS:Reward points if this helps.

  • Archive data in external file

    Can somebody tell me how to archive customer-specific data in an external file per customer(prefer .pdf)
    Regards Rob

    Hi Rob,
    have a look here :
    Re: Convert a spooljob to a writeprotected PDF
    regards Andreas

  • Sending and getting data from external file.

    I'm running it in actionscript 1  and 2 since 3 wouldn't work when getting data from external media. I'm  trying to find out how to post data to a PHP file and getting from that  file I'm trying to make the flash for something that works like a game  but differently. Since I just found out how to make the HTML stuff show  up but a lot of times, some of my text will not appear so I don't know  what's going on.
    Does anyone know how to send and get data both at the same time from a sample file?
    The sample file is example.php
    It has to sent information like ID and NAME
    and it has to get information like Description and userID

    Ned Murphy wrote:
    The tutorial I pointed you to does provide the visuals you requested, both the AS code and sample PHP code, so I can't see where your learning by visuals aspect holds up.... your approach sounds more like you want someone to hand you a tailored solution that you won't need to learn from.  Visuals require reading and doing.  If that fails to get absorbed or you couldn't understand/revise it, what could anyone else prepare for you that would work better?
    I did the tutorial and everything but every time I press the button or even load it, it keeps on saying undefined. I like the have a sample FLA file so I can figure things out. I did everything from the site but it won't work out for me.
    I did step 5 too because it was almost all that I was looking for but it won't even work. keeps on saying undefined. I would show you but webcam max won't work and I can't show you an example.
    EDIT:
    You know it's frustrating when I don't know how the heck I'm supposed to do this stuff. I read the whole dang thing and I still can't get this dang thing working.
    I did everything. EVERYTHING. I just don't get this crap.

  • Master data from external file load

    I'm loading master data from a flat file.  I would like to load both the attribute and text from the same flat file.  For the attribute my flat file looks like:
    USERID,USER NAME
    For the text file I need to load the language, so it looks like:
    EN,USERID,USER NAME
    I tried to load the text file from the attribute file and hard code the 'EN' in the transfer rules.  But it seemed to ignore it and move the User ID into the language field.
    I must be missing something.  Any ideas?
    Thanks,
    Chris

    Hi!
    i think there is some mismatching between your transfer structure and the flat file structure.(i mean sequence of fields)
    you can do the following.
    1)create a flexible InfoSource which contain Fields
    0LANGU,userid,0TXTLG
    2) create the TransferStructure with the same field and same sequence.
    3)change your InfoObject and assign an InfoArea under master data tab.
    4)now you can see 2 InfoProviders in the Pinafore assigned. 1 for attributes and 1 for text
    5)create update rules for these 2  InfoProviders  using the InfoSource created above. in attribute Update Rules map 0TXTLG to Username field.
    hope it helps
    with regards
    ashwin

  • PSA data transfer to External file

    HI ,
    Usually we can transfer data from ODS or cube to external file.But in my project I need to Transfer PSA data to external file.Please let me is it possible and steps to perform.
    Eg: before Report execution the datas has to automatically move to External file.

    Hi,
    You can download the PSA table data by following the below mentioned steps :
    1) Dispaly data
    2) Goto List option
    3) Thens select Save as File.
    4) Give the file name and generate.
    Hope it helps.
    Regards,
    Umesh.

  • Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism

    Can you please help me to know the difference between moving a file using FM "SXPG_COMMAND_EXECUTE" and moving file using "open data set - transfer file- close data set" mechanism?

    Through 'SXPG_COMMAND_EXECUTE' u can execute a External command  (ie.. UNIX /Windows/OS/400) In ABAP programming..
    for Conversion Of Aplication server File/Move the file from one directory to Other...
    The Command must be present in SM69.
    Using this function module'SXPG_COMMAND_EXECUTE' , you can check the authorization of a user to execute a particular external command and run the command:
    With the arguments specified in ADDITIONAL_PARAMETERS
    On the target host system defined by OPERATINGSYSTEM and TARGETSYSTEM
    If an SAP profile parameter is inserted in the portion of the command stored in the database, then the value of this parameter is substituted into the command. If an SAP application server is active on the target system (TARGETSYSTEM), then the profile parameter values are read from the profile that is active on that system. No parameter substitution is made in ADDITIONAL_PARAMETERS.
    After substitution, the command is checked for the presence of "dangerous" characters such as the semicolon ( ; ) on UNIX systems.
    If an additional "security function module" is specified in the command definition, this function module is also called in the course of processingebenfalls. This function module can prevent execution of the command.
    If the authorization checks complete successfully, the command is run on the target host system.
    Through Open Data Set u can read and write the file in the same directory...
    Thnaks,
    SD
    Moderator message: copy/paste without credit, points removed, please do not repeat!
    http://www.google.de/search?hl=de&q=%22youcanchecktheauthorizationofauserto+execute%22&meta=&aq=f&aqi=&aql=&oq=&gs_rfai=
    http://www.google.de/search?hl=de&q=%22Aftersubstitution%2Cthecommandischeckedforthepresence%22&meta=&aq=f&aqi=&aql=&oq=&gs_rfai=
    Edited by: Thomas Zloch on Aug 17, 2010 12:47 PM

  • Secret data sets and variables in photoshop elements.

    In photoshop elements 4 thru 8, you can use data sets
    and variables, with the actions recorded for them in
    photoshop and then installed into photoshop elements.
    They work exactly like they do in photoshop and in fact
    there is already a menu item in photoshop elements,
    under in export menu, called export data sets as files.

    Not sure a I read you correctly but if I understand you
    what you have to do is make the first two images as dynamic variables using the variable panel and save it as a data set
    then replace those two images and save those as a data set
    So now you have data set one and two.
    You can save that as an variable library (xml)and that can be loaded into other documents.
    The question is can it be actioned?
    It can be scripted and do you want the same two images to replace the same two image in each document.
    I think you really have to tell us more.

  • Air Installer Copying and or extracting external files

    Is there a way to have an air installer copy an external file to the installation directory?  We are using video data in our app and the resulting air application is just far to big (i.e installer will not run on the end users machine).  So I am thinking that perhaps the air installer can install the app then copy any required media/data from external files to the correct directory.
    Can this be done?

    I have done something similar with a document management app.
    Once the app was installed it would check for a DVD / Thumb drive and silently copy all the documents from another drive to the (ASD) AppStorageDirectory.
    You could also download your media files to the AppStorageDirectory as well.
    When my app gets updated I have a function that deletes obsolete files from the ADS and leave the files I need to persist untouched.
    Here is a snippet that reads available drives and looks for a specific named drive and then creates an Array listing all the files which can
    then be copied using  SOURCE.copyToAsync(DESTINATION)...
    var os:String = Capabilities.os.substr(0, 3).toLowerCase();
             var currentDrives:Array = (os=="mac") ? new File('/Volumes/').getDirectoryListing() : File.getRootDirectories() ;
             var fileList:Array;
             var fileCount:int = 0;
             var fileListArr:Array = new Array();
             for each(var file:File in currentDrives){
                 //trace ("Drive: " + file.name + " Size: " + file.size);
                 if(file.name.toString().indexOf("KnownNameofDVD")>-1){
                     trace ("Drive: " + file.name + " Size: " + file.size);
                      fileList = (os=="mac") ? new  File('/Volumes/'+file.name).getDirectoryListing() :  new  File(file.name.getDirectoryListing()
                     for(var l:int = 0 ; l<fileList.length; l++){
                         //trace(fileList[l].nativePath)                    
                         fileCount++;
                         fileListArr.push(fileList[l].nativePath.toString())

  • Need how to get the data from the external file in eCatt

    Hi ,
      Could any body suggest how to get the values from the external file(Excel,CSV file,Text file) and pass it as varaiable in ecatt Test script.
    Problem: Need to execute FK01-Vendor creation Transaction with multiple set of data .As per my understanding we could achive through Variants in Testdata set in eCatt .
    But is there any way to store the data in excell file and get the data and pass it to FK01 Test scripts
    Appreciate response on this

    Hi
    See the links they may be useful
    check these link,
    eCATT- An Introduction
    /people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction
    Creating Test Scripts
    /people/sumeet.kaul/blog/2005/08/10/ecatt-creating-test-scripts
    eCATT Logs
    /people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
    eCATT Scripts Creation – TCD Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
    Creation of Test Data Container
    /people/sumeet.kaul/blog/2005/08/24/ecatt-creation-of-test-data-container
    eCATT Scripts Creation - SAPGUI Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
    Integrating ECATT & MERCURY QTP Part -1
    /people/community.user/blog/2007/01/02/integrating-ecatt-mercury-qtp-part-1
    Using eCatt to Test Web Dynpro ABAP
    /people/thomas.jung/blog/2006/03/21/using-ecatt-to-test-web-dynpro-abap
    and
    -command reference
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/3c333b40389c46e10000000a114084/content.htm
    /people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
    http://prasadbabu.blogspot.com
    https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=test_tool_integration_for_sap_e-catt.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
    http://www.erpgenie.com/ecatt/index.htm
    hope this helps.
    Reward points for useful Answers
    Regards
    Anji

  • Reading data From XML file and setting into ViewObject to Pouplate ADF UI

    Hi,
    I have following requirement.
    I would like to read data from XML file and populate the data in ViewObject so that the data can be displayed in the ADF UI.
    Also when user modifies the data in the ADF UI, it should be modified back into to ViewObject.
    Here is an example - XML file contains Book Title and Author. I would like to read Book Title and Author from XML file and set it into ViewObject Attribute and then display Book title and Author in ADF UI page. Also when user modifies Book title and Author, I would like to store it back in View Object.
    Please help me with this requirement and let me know if any solution exist in ADF, for populating the ADF UI screen fields with external XML file data.
    Thanks

    Read chapter 42 http://download.oracle.com/docs/cd/E16162_01/web.1112/e16182/bcadvvo.htm of the fusion developer guide
    Section 42.7, "Reading and Writing XML"
    Section 42.8, "Using Programmatic View Objects for Alternative Data Sources"
    Timo

  • Storing data out to external file...?

    I have a question I'd like to put forward to anyone who can
    help me. It's a bit vague, perhaps, but any help would be
    appreciated...
    I need to make a Flash application into which you can INPUT
    data, and then have that data STORED somehow / kept in memory -
    probably in an external file of some format outside of the Flash
    file, so that the next time you launch the Flash file, that same
    EXTERNAL data will be read by the Flash file and will display in
    the interface.
    The key thing here though is that file will NOT be hosted
    online, so it cannot make use of any "online-only" scripting (if
    such a thing exists?).
    I need to host and run the Flash application from my local
    hard drive, and all external files need to be on my local hard
    drive too.
    Is it possible to set up the scenario I've outlined? Where do
    I even begin?
    I fully appreciate that this will be a big project, requiring
    a great deal of learning on my part, but I'm willing to give it a
    go, providing I know where to start...
    What am I looking at here? PHP? CGI? XML? Will those run
    locally? I really don't know...
    Like I said, I really know nothing about any of this, and I'm
    perfectly willing to learn, but I just need to know WHERE to start
    learning, and WHAT to learn...
    Again - any help appreciated.
    Thanks.

    you can use the flash sharedobject to store data from one
    flash session to another.

Maybe you are looking for