WIS 00015 error- Multiple Query Filters contain a prompt with same name

Hi
        I am working BOXIR2 environment. I created two prompts at Universe level- one of Date field and one on agency name field.
syntax for the prompts is
customerInfo.RSRCE_NAME =  @Prompt('Enter value(s) for AgencyName ','A' , , ,)
datetable.STARDATE =datetable.STARDATE.STARTDATE =  @Prompt(' 'Enter value(s) for StartDate:','D' , , ,)
When I include even one of  the prompts in the report I am getting an error WIS 00015 Multiple Query Filters contain a prompt with the same text, but the prompts use a different operand type.
If I try to change text of one of the prompts in Universe selection statement, then I see the prompt two times in the report.
Please let me know how to overcome this issue.

Ok, I've simplified the case.
Here is the real case :
Object filter =
Based on object =
.[LEVEL01]
Object filter =
Based on object =
.[LEVEL01]
In WBI query result I take these objects :
.[LEVEL01]
.[LEVEL01]
.[4IUX93YJGXQEHGLX0T0GPNA9Y]
In query filters, my 2 filters with same text :
1.
I run the query.
Answer to question 'Single Year Period ?' = Period 06 2010
==> MDX error
A database error occured. The database error text is: Echec de l'exécution de la requête MDX SELECT  { .[4IUX93YJGXQEHGLX0T0GPNA9Y] }  ON COLUMNS , NON EMPTY CROSSJOIN( .[LEVEL01].MEMBERS, .[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM SAP VARIABLES INCLUDING .[Z12010006] INCLUDING .[Z12010006] avec l'erreur Invalid MDX command with . (WIS 10901)
And you can see that the value sent to both filters is the same and come from the first filter .[Z12010006] instead of applying the value to each filter .[Z12010006] for the first one and .[Z12010006] for the second one.
Please, notice that if I change the order of this 2 filters in the WBI query, the MDX generated become :
SELECT  { .[4IUX93YJGXQEHGLX0T0GPNA9Y] }  ON COLUMNS , NON EMPTY CROSSJOIN( .[LEVEL01].MEMBERS, .[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM SAP VARIABLES INCLUDING .[Z12010006] INCLUDING .[Z12010006]
Thanks for your help.
G.OM.

Similar Messages

  • While saving multiple attachments from mail, files with same name are added and not replaced

    While saving Multiple Attachments from Mail, existing file with same name are not overwritted but new files are added in the folder.

    Bjørn Larsen a écrit:
    Hi all
    Hope to get some help with Elements Organizer.
    I have 12-15 years of digital photos that I now want to import into my newly aquirede Adobe Elements Organizer / Photoshop. Since my Nikon names the files with continous numbers from 0001 to 9999 I have multiple files with the same name although they are not alike at all. My previous software had no problems with that since I keep the photos in separate file folders based on import date. I generally import photos after each event and so name the folder with the date and some event info (e.g. 2014.12.24 - Christmas at grandparents).
    That is a common situation, I have the same limitation for files not going over 9999 on my Canons...
    Now - when I import my photos into Elements Organizer I get a lot of error messages with "same name exist .....) Hmmmmmmm
    Please sate the exact wording of the error message, I have never seen a message stating 'same name exist...' or equivalent; only messages about files already in the catalog. Files already in the catalog mean that some files have the same 'date taken' and file size in Kb.
    Any suggestions. I'm using a mac and tried to rename files based on date taken. The mac can do that but it takes ages to go into each folder and run the renaming script there.
    I also use a similar folder creation scheme (such a date naming is the default for the downloader). That way I never get a message about duplicates for the same file names.
    However - I can't be the first or only person with this problem so I figure that some workaround must be known out there. Maybe the import action can recognize date taken or - well. Thank you very much in advance if you can help me out here.
    You can alsways set the downloader to rename the imported files with a unique new name, there are many options in the 'advanced' dialog of the downloader. I don't know about Macs, but I don't thing there is a difference.

  • WIS 00015 Error

    Hi all,
    we have converted deski document to webi document.
    It's partially converted.
    The prompts are as follows
    gl date less than or equal to (prompt text)enter date in DD-MON-yyyy
    and
    gl date closed less than or equal to prompt text)enter date in DD-MON-yyyy
    and product ="ffff"
    (only one promt for date is need to enter for gl date & gl date closed)
    I am getting results using above prompts in deski.
    But after converting to webi ,I am facing WIS 00015 error and I am unable to enter prompt.
    Thanks,
    James
    Bo XI 3.1

    There is a forum 'Business Objects Board' or BOB for short, its a great source of information:
    The work around for this issue is to use the File -- Save As function, check Save for All Users' and 'Remove Document Security' options.
    This works for me, I get the error frequently when working on Webi Rich Client.
    http://www.forumtopics.com/busobj/viewtopic.php?p=600185&sid=64ceea0842a584e60c2872c0f7dd97c9

  • Passing multiple URL parameters with same name

    Hi,
    I have a question which is not entirely related to Java. But although its related HTTP calls, so I thought I might get some ideas here.
    Background:
    I am making HTTP URL call from SAP ABAP code. Its pretty much similar to Java (creating URL connection, setting HTTP headers, connecting, receiving response and everything)
    For example,
    http://service_server:8080/a7/extension.services.SearchRequirements.a7x?RequestStatus=CR&RequestStatus=RR
    Now, this service_server runs a query to database where it uses both these values of "RequestStatus" to form 'OR' condition for a field.
    Issue:
    When I run this URL from browser, it shows XML response containing results for both values. In short, this is the ideal response.
    (I am using getParameterValues(string) at service_server to read multiple values for same parameter)
    But when I see response in SAP system, I see that it is returning data for only one value of 'RequestStatus'.
    I checked the logs of service_server, and I see that it has received only one parameter, not two.
    Question:
    It seems like SAP systems web server is truncating both parameters with same name and passing just one of them to outside server(??)
    Is there any configuration at Web Server side or any HTTP headers to be set so as to avoid this?
    Can anybody suggest something on this?

    I managed to resolve this issue by using HTTP 'Post' method to send the data.
    CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
        EXPORTING
          URL                = L_URL
        IMPORTING
          CLIENT             = L_HTTP_CLIENT
        EXCEPTIONS
          ARGUMENT_NOT_FOUND = 1
          PLUGIN_NOT_ACTIVE  = 2
          INTERNAL_ERROR     = 3
          OTHERS             = 4 .
    "STEP-2 :  AUTHENTICATE HTTP CLIENT
    CALL METHOD L_HTTP_CLIENT->AUTHENTICATE
      EXPORTING
        USERNAME             = 'name'
        PASSWORD             = 'password'.
    "STEP-3 :  SET HTTP HEADERS
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
          EXPORTING NAME  = 'Accept'
                    VALUE = 'text/xml'.
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
        EXPORTING NAME  = '~request_method'
                   VALUE = 'POST' .
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_CONTENT_TYPE
        EXPORTING CONTENT_TYPE  = 'application/x-www-form-urlencoded' .
    "SETTING REQUEST DATA FOR 'POST' METHOD
    IF L_PARAMS_STRING IS NOT INITIAL.
       CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
         EXPORTING
             TEXT   = L_PARAMS_STRING
         IMPORTING
               BUFFER = L_PARAMS_XSTRING
         EXCEPTIONS
            FAILED = 1
            OTHERS = 2.
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_DATA
        EXPORTING DATA  = L_PARAMS_XSTRING  .
    ENDIF.
    "STEP-4 :  SEND HTTP REQUEST
      CALL METHOD L_HTTP_CLIENT->SEND
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2.
    "STEP-5 :  GET HTTP RESPONSE
        CALL METHOD L_HTTP_CLIENT->RECEIVE
          EXCEPTIONS
            HTTP_COMMUNICATION_FAILURE = 1
            HTTP_INVALID_STATE         = 2
            HTTP_PROCESSING_FAILED     = 3.
    "STEP-6 :  READ RESPONSE DATA
    CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_CDATA
            RECEIVING DATA = L_RESULT .
    "STEP-7 : CLOSE CONNECTION
    CALL METHOD L_HTTP_CLIENT->CLOSE
      EXCEPTIONS
        HTTP_INVALID_STATE = 1
        OTHERS             = 2   .
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Error while uploading document with same name in Document library

    Hi,
    Whenever I try to upload document with same name in Document library it throws an error. I know its a default behavior but is there any way so that I can upload documents with same name or can we append some unique id with title of the document?
    Please suggest.
    Thanks

    No, unfortunately this is not possible. SharePoint treats the file name as the primary key identifier for a document so if you try to upload a second document with the same name it will assume this is a new version of the file. If you have versioning enabled
    on the document library, it will add this as a new version. If not, it will overwrite the original file with the new one.
    If you need two documents with the same name, you will have to either place them in different folders within a document library or in different document libraries.
    http://stackoverflow.com/questions/11894968/uploading-documents-with-same-name-to-sharepoint-2010
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • Mapping between the query/report and the role with technical names - BI Sec

    Hi,
    How to find the mapping between the query/report and the role with technical names ?
    Like in R/3 we can find the mapping using table AGR_TCODES or thourgh SUIM. However in BI all reports have tcode RRMX.
    So. how to find the role for a given query/report like sales report with technical names?

    I looked into this quite a while ago and cannot remember the exact details, but I think there were 3 tables needed together with a structure to explore with a function module, and you need to use the program ID to think them.
    If you look in SQ01 then I am sure you will find one of the tables, and then search from there onward.
    Alternately, while searching you might find a nice report which does this for you.
    Hope that helps and let us know whether you find it.
    Cheers,
    Julius

  • Mapping between the query/report and the role with technical names

    Hi,
    How to find the mapping between the query/report and the role with technical names ?
    Like in R/3 we can find the mapping using table AGR_TCODES or thourgh SUIM. However in BI all reports have tcode RRMX.
    So. how to find the role for a given query/report like sales report with technical names?
    Edited by: Phoenix on Jul 26, 2008 4:15 PM

    Posted in wrong forum

  • Mounting multiple directories with same name on different severs to a single mount point on another server

    We have a requirement where in we have multiple solaris servers and each solaris server has a directory with the same name.
    The files in these directories will be different.
    These same name directories on multiple severs has to be mounted to a single directory on another sever.
    We are planning to use NFS, but it seems we can not mount multiple directories with same name on different severs to a single mount point using NFS, and we need to create multiple mount points.
    Is there any way we can achieve this so that all the directories can be mounted to a single mount point?

    You can try to mount all these mount points via NFS in one additional server and then export this new tree again via NFS to all your servers.
    No sure if this works. If this works, then you will have in this case just an additional level in the tree.

  • Error :sap error:vf-171Does't contain any items with open quantities

    Dear sap Experts,
    An Error coming while doing billing against to delivery as *"Does't contain any items with open quantities"  sap error:VF-171
    i have checked status overview of order and its not blocked. give me hits regarding this issue.
    My advance thanks to all.
    Narendra

    Dear Narendra,
    Need to check the VL02n for given shipping point , also if the said material shows is not available then you can even check MMBE, this report shows on order stock so you can remove this on order stock.
    On order stock can be removed by using vl02n, put F4 in the outbound delivery field enter it. All open delivery list (not picked or not posted for goods issue will come) 
    Regards
    Sandeep D.

  • Multiple files with same name--- automatic renaming option??

    I am trying to sort my files by adding multiple files to a single folder. However, many have the same filename, and I get the error " there already exists a file with the name "x", please choose another name" etc. I am dealing with thousands of files here that are very tedious to rename individually. Is there an option or program that either disables this block on multiple files with the same name in a common folder, or automatically renames the files as they are placed in the folder?

    i would like all the files to have different names, but not have to do it myself. they are generated my my audio recorder, which automatically names files take1, take2, take3 etc. multiple sessions entail multiple folders, i am trying to consolidate.

  • Multiple instances of one app of the same name

    Hello,
    we have few FMS/AMS servers, versions 4, 4.5 and 5, running some kind of internet TV tubes on them.
    Each tube is supposed to run as unique instance of a Tube app, with unique settings for publishing to CDN (Akamai).
    Sometimes following scenario happens: We reload the stream via administration console or administration API with use of reloadApp command, instance starts closing sequence, even triggers onAppStop event. But as the new instance starts, the old process wakes up again and lives together with the new one - when I check then throught administration API with use of getActiveInstances command, it shows me more instance of the same name as result - for example:
    -<data>
    <_0>tv_app/tube25</_0>
    <_1>tv_app/tube2</_1>
    <_2>tv_app/tube21</_2>
    <_3>tv_app/tube2</_3>
    <_4>tv_app/tube2</_4>
    </data>
    From logs I can see that each of that instances runs under different process ID (x pid column).
    This is quite unpreffered behaviour, as with the same connection settings the multiple instances steals the connection to CDN entry point from each other which causes problems and unpredictable behaviour...
    I have following questions related to this:
    1. - Why the onAppStop is triggered when using reloadApp and unloadApp commands or buttons in admin console, when documentation says that this event should not be triggered on these ocassions (see http://help.adobe.com/en_US/adobemediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7 edfSSASLR.2.3.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7fe2SSASLR.2.3)
    2. - How is it possible that system runs more instances of the same app with the same name? How to avoid such behaviour?
    I already noticed following aspects to have influence on the possibility to run multiple instance with the same name and got rid of them but problem still persists:
    - case sensivity of app name (one client connects to TV_app/tube2 and other connects to tv_app/tube2)
    - using false as return value in onAppStop event handler - when reloaded, new instance is started but the old one persists
    I am very eager to hear some explanation or clarification of such logic as it comes to me as some kind of internal bug as I have found everywhere that the instances names should be always unique....
    Thanks

    I just want to note that my recommendations led my clients to purchase more than 5 licences of FMIS/AMIS througt the time.
    As I see how low is the passion to react to any problem on Adobe side, I would have probably changed my mind.
    This is really pain in the *** as any call to adobe official contact (taken on mind that to find one is a big quest by itself) lead just to reply "pay nasty amount for our consultancy Sir!" and it does not look any better here....
    I am no novice on FMS/AMS platform, working with it more than 6 years throught many projects and I would not ask for some stupid questions which could be solved just by looking to documentation or could be solved by some performance eperience.
    I am really upset for this :/

  • Migrating multiple domains with same name - how? Rename? Migrate through temporary domain?

    Hi,
    we have acquired another company, and they have multiple, separate domains with the same name (every site has a domain with NetBIOS name "COMPANY" and DNS name "company.local"). Now we want to migrate all these domains into ours using
    ADMT.
    Unfortunately, we did not manage to migrate one of these domains completely, so the trust must remain established for some time. But we have to continue with the second domain - which normally would require a trust, but of course we can't establish a trust
    to two domains with the same name at the same time.
    I found two potential solutions for the dilemma, but I'm not sure if both are reasonable:
    1) Rename the domain with RENDOM.EXE to COMPANY2 and company2.local and then migrate with ADMT
    2) Migrate COMPANY to a temporary domain such as COMPANYTEMP and then migrate from COMPANYTEMP to our domain
    Given that there are roughly 100 users, 2 domain controllers and 8 other servers, what would be the better approach? Is option 2 possible at all, so would I be able to use the sidHistory attribute migrated from the original COMPANY domain in our domain at
    all?
    There is also an Exchange 2007 server, which seems to make option 1 impossible unless we find another way to migrate it (like, export all mailboxes to PST before migration) ...

    Ok, that's what I expected. Still, I have servers in the old domain, so if I do these steps:
    first create a new temporary domain i.e COMPANYTEMP and
    create trust between COMPANYTEMP -
    COMPANY(Right)
    then do the migration with sidHistory from COMPANY(right) --> COMPANYTEMP ,
    disconnect the domain COMPANY(right) ,
    users will lose connectivity to any servers in the domain. I understand that it does not work with all domains connected? Of course I can't make OURCOMPANY's domain controllers see the DCs of COMPANY (right) in DNS (though I could achieve it the other way
    round).
    My original plan was:
    first create a new temporary domain i.e COMPANYTEMP and
    create trust between COMPANYTEMP -
    COMPANY(Right)
    then do the migration with sidHistory from COMPANY(right) --> COMPANYTEMP ,
    create trust between OURDOMAIN and COMPANYTEMP
    then do the migration with sidHistory from
    COMPANYTEMP --> OURDOMAIN,
    Migrate users
    Migrate computers
    Migrate servers
    remove trusts and old domain
    But I see that this will not work out, right? So, my only option would be:
    first create a new temporary domain i.e COMPANYTEMP and
    create trust between COMPANYTEMP -
    COMPANY(Right)
    then do the migration with sidHistory from COMPANY(right) --> COMPANYTEMP ,
    Migrate computers and servers to COMPANYTEMP
    Install new Exchange server in COMPANYTEMP
    migrate mailboxes to COMPANYTEMP
    disconnect / abandon COMPANY(right)
    create trust between OURDOMAIN and COMPANYTEMP
    then do the migration with sidHistory from COMPANYTEMP
    --> OURDOMAIN,
    Migrate users
    Migrate computers
    Migrate servers
    Migrate mailboxes
    remove trusts and old domain
    And to minimize user impact, all this would have to be done in one go (over night), which is hardly possible .........................

  • Global Address List for multiple people with same name?

    When writing a new email, I want to add a name from the global address list of my microsoft exchange Contacts group. I select the blue plus button and type in the name. If there is more than one person in my company with the same name, both people will show up. However, Mail is not letting me see the details of either of the two people so I don't know which one is the right one.
    However, if I start from Contacts, Groups, Exchange and type in that person's name, when I select a name, a second screen will show up with the details (email address, title, etc) of the person. That way, I know which one is the correct person who I want to email. Why can't I do this directly from Mail? If I need to send an email to multiple people from the GAL, I don't want to have to search for them via Contacts.
    Thanks!

    I don't know the exact and complete specification of your intended schema...
    anyway, from what I can see in your post, I assume that
    <deed>
        <deed_type>
            <name>Quit Claim</name>
            <value>Sheriff</name>
        </deed_type>
        <deed_type>
            <name>sheriff's deed</name>
            <value>Sheriff</value>
        </deed_type>
        <deed_type>
            <name>Warranty</name>
            <value>W</name>
        </deed_type>
    </deed>would be the "proper" way to go...
    which makes your "deed_type" a complexType, including a sequence of two kinds of xs:string elements : "name" and "value"

  • Query to get the records with same last name

    I need to write a single sql query to get all records with duplicate last_name's. For example, if tab1 has 4 records:
    10     Amit     Kumar
    20     Kishore          Kumar
    30     Sachin     Gupta
    40     Peter     Gabriel
    then the query should return
    10     Amit     Kumar
    20     Kishore     Kumar
    id, name,L_name being the 3 columns in table
    Apprecite you help.
    Thank you
    Mary

    SQL> create table mytable (id,name,l_name)
      2  as
      3  select 10, 'Amit', 'Kumar' from dual union all
      4  select 20, 'Kishore', 'Kumar' from dual union all
      5  select 30, 'Sachin', 'Gupta' from dual union all
      6  select 40, 'Peter', 'Gabriel' from dual
      7  /
    Table created.
    SQL> select id
      2       , name
      3       , l_name
      4    from ( select t.*
      5                , count(*) over (partition by l_name) cnt
      6             from mytable t
      7         )
      8   where cnt > 1
      9  /
                                        ID NAME    L_NAME
                                        10 Amit    Kumar
                                        20 Kishore Kumar
    2 rows selected.Regards,
    Rob.

  • How do I automate merging multiple layers with same name?

    It was suggested I ask this question in this forum - any advise gratefully received!
    I have to combine over a 800 files into one photoshop file. Each file has with sixty layers. The 60 layers in each file are named identically: Layer 1, Layer 2, Layer 3 up to Layer 59, Layer 60. My intention is to create a final composite file with 60 merged layers (for an animation). That is, with all the Layer 1's merged, all the Layer 2's merged, all the Layer 3's merged and so on. What I need is a script which will merge all layers with the same layer name, ie all the Layer 1s, all the Layer 2s etc (ideally without having to merge each set of layers separately).
    I am using Photoshop CS6 and at present I am merging by using the find/name function, then highlighting all the layers selected and then using 'merge layers'.
    Any ideas?
    Best
    JR

    This might be close, it will prompt for a folder containing all the 800 files, it will use tif or psd files.
    Once you have selected the folder sit back and watch...
    #target photoshop
    app.bringToFront();
    main();
    function main(){
    selectedFolder = Folder.selectDialog( "Please select input folder");
    if(selectedFolder == null) return;
    var fileList = selectedFolder.getFiles(/\.(tif|psd)$/i);
    open(fileList[0]);
    checkBackGround();
    setLayersVisOn();
    for(var z = 1;z<fileList.length;z++){
        open(fileList[z]);
        checkBackGround();
        setLayersVisOn();
        dupLayers(app.documents[0].name);
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    if(z % 9 == 0) mergeSameNamedLayers();
    mergeSameNamedLayers();
    function checkBackGround(){
    activeDocument.activeLayer = activeDocument.layers[activeDocument.layers.length-1];
    if(activeDocument.activeLayer.isBackgroundLayer){
        activeDocument.activeLayer.name=activeDocument.activeLayer.name;
    function twoOrMoreSelected(){
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var desc = executeActionGet(ref);
    if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) )  return true;
    return false;
    function mergeSameNamedLayers(){
    //Get a list of the layer names
    var layerNameList = getNamesPlusIDs();
    //create an array for unique layer names
    var uniqueName = new Array();
    for(var s in layerNameList){
        if(layerNameList[s][2] == "false") uniqueName.push( layerNameList[s][1].toString());
    //now we should have unique layer names
    uniqueName = UniqueSortedList( uniqueName ).sort();
    //select all layers with the same name, merge them and set blendmode
    var BlendMode = new String();
    for ( var w in uniqueName){
        deselectLayers();
        for(var z in layerNameList){
            if(uniqueName[w].toString() == layerNameList[z][1].toString()){
                //select these layers and get blendmode.
                BlendMode = layerNameList[z][3].toString();
                selectLayerById(Number(layerNameList[z][0]), true);
    if(twoOrMoreSelected()) activeDocument.activeLayer.merge();
            setBlendMode(BlendMode);
    function setBlendMode(blendMode) {
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
    var desc2 = new ActionDescriptor();
    desc2.putEnumerated( charIDToTypeID('Md  '), charIDToTypeID('BlnM'), stringIDToTypeID(blendMode) );
    desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lyr '), desc2 );
    executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
    function deselectLayers() {
        var desc01 = new ActionDescriptor();
            var ref01 = new ActionReference();
            ref01.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc01.putReference( charIDToTypeID('null'), ref01 );
        executeAction( stringIDToTypeID('selectNoLayers'), desc01, DialogModes.NO );
    function UniqueSortedList(ArrayName){
    var unduped = new Object;
    for (var i = 0; i < ArrayName.length; i++) {  
    unduped[ArrayName[i]] = ArrayName[i];
    var uniques = new Array;for (var k in unduped) {
       uniques.push(unduped[k]);}
    return uniques;
    function selectLayerById(ID, add) {
        add = (add == undefined)  ? add = false : add;
    var ref = new ActionReference();
    ref.putIdentifier(charIDToTypeID('Lyr '), ID);
    var desc = new ActionDescriptor();
    desc.putReference(charIDToTypeID('null'), ref);
    if (add) {
      desc.putEnumerated(stringIDToTypeID('selectionModifier'), stringIDToTypeID('selectionModifierType'), stringIDToTypeID('addToSelection'));
    desc.putBoolean(charIDToTypeID('MkVs'), false);
    executeAction(charIDToTypeID('slct'), desc, DialogModes.NO);
    function dupLayers(DocName) {
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
    var ref2 = new ActionReference();
    ref2.putName( charIDToTypeID('Dcmn'), DocName);
    desc.putReference( charIDToTypeID('T   '), ref2 );
    desc.putInteger( charIDToTypeID('Vrsn'), 5 );
    executeAction( charIDToTypeID('Dplc'), desc, DialogModes.NO );
    function selectAllLayers() {
        var desc29 = new ActionDescriptor();
            var ref23 = new ActionReference();
            ref23.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc29.putReference( charIDToTypeID('null'), ref23 );
        executeAction( stringIDToTypeID('selectAllLayers'), desc29, DialogModes.NO );
    function setLayersVisOn(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ))
            if(layerName.match(/^<\/Layer group/) ) continue;
            if(!desc.getBoolean(stringIDToTypeID('visible'))){
                var list = new ActionList();
                list.putReference( ref );
                desc.putList( charIDToTypeID('null'), list );
                executeAction( charIDToTypeID('Shw '), desc, DialogModes.NO );
    function getNamesPlusIDs(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
       var Names=[];
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
           if(i == 0) continue;
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            if(layerName.match(/^<\/Layer group/) ) continue;
            var layerType = typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID( 'layerSection' )));
             desc.hasKey( stringIDToTypeID( 'smartObject' ) )  ?  SO = true :  SO=false;
             var blendmode = typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID( 'mode' )));
    Names.push([[Id],[layerName],[SO],[blendmode]]);
    return Names;

Maybe you are looking for

  • LSMW Error in loading ROUTINGS

    Hi Experts, I am getting a error at step 13 while creating Batch input session using LSMW as "No Profile with entry tool task list N 1 session ROUTING". I tried to use the default value for BIPKO-PRFIDNETZ = (default value tht i was given).still it s

  • Using Pages to create epub file??

    Why when I export from pages to an epub file does it change the layout (i.e. moves part of page 2 to page 3 and then continues on like that?) I'm trying to publish a book of poetry on ibooks but it keeps messing with the format?

  • SAP HR Payroll Needed

    SAP HR Payroll needed starting ASAP based in KSA for 18 months, candidate need to have skills in GCC PY, Time Management, Travel Management, and compensation Management. Please if interested kindly send your resume ASAP to: [email protected] Please n

  • Help in Delete operation

    I have a problem when deleting rows from a table. When I created the database the following delete statement worked fine, but now it takes a lot to complete. To delete 600 rows it takes more than 10 minutes. Maybe the transaction log is full, but i d

  • Iphone 3g tethering

    i just recently added tethering to my AT&T plan.  iPhone 3G tethering is in the list of capabilities on apple.com. But I do not see the "tethering" option as most people sites tell me to turn on (i use the iOS 3 which i hear is tethering capable). No