Get document swatches in [arrays]: In loop to Peter kahrel & Jump_over previous thread.

Hi forum,
this is reg, getting swatches available inside the document pallette into [arrays], instead of typing the document swatches as i did.
(this is my ongoing UI script related to previous thread, answered by jump_over and peter kahrel).
Im storing manually the swatches names in [arrays] and calling it from dropdown list, instead of automatically getting available swatches inside the document...
    var arrays2 = ["Black", "Red", "Blue"]; // here i want to automatically assign the available swatches inside the "document - swatches pallette".
    myGroup1.add("statictext", undefined, "Color");
    var ddown2= myGroup1.add("dropdownlist", undefined, arrays2);
screen shot is:
also if Im answered to get the available system fonts for fontstyle that would be greatest of great, instead of ["Regular", "Bold", "Italic"] etc.,
thanks.
shil...

hi vamitul,
thanks for the reply,
also, if i use: app.fonts.everyItem().name;..
it show like the below screenshot: 
instead i wish to get only the fontStyles, when i click the fontstyles dropdown like;;
Regular,
Condensed Light,
Condensed,
Italic,
Bold,
etc., and not the font family like the above.
very thanks in advance,,
SHIL...

Similar Messages

  • How to get active document  swatch color and its value

    Hi
    i want to get the swatch color of active document
    i use 3 to 4 colors both cmyk and pantone which is in swatches
    now i want to get their values using script
    any one please help me
    Thank you
    Appu

    Download the script "Render Swatch Legend" from the following site: http://www.wundes.com/JS4AI/
    This script generates a legend of rectangles for every swatch in the main swatches palette. You should be able to grab the code you need from this.

  • CS4 When I open new document I get a swatch pallet full of colors.

    CS4 When I open new document I get a swatch pallet full of colors. Is there a way to open a new document with no colors in the swatch pallet?
    Thanks

    Search for New Document Profiles. Open each file that you regularly use and from the Action panel run the default action Delete Unused Panel Items. Save the file. You should now have empty swatch panels.

  • System.IO.FileNotFoundException: The Web application at ..not found - when getting document versions in a doc lib

    i have created a    asmx file using vs 2012 4.5 framework, and published to my d:\  drive  and mapped to a  iis  web site
    but when i trued to consume this from a another web appln, it throws me the below error:
     System.IO.FileNotFoundException: The Web application at http://srvr:4000/sites/mysitecollec could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a
    new request URL mapping to the intended application.
       at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId,
    Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String&
    appSiteDomainId, Uri& primaryUri)
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
       at FetchlatestDocDet6Jan.FetchLatestDoc6Jan.<>c__DisplayClass1.<FetchLatestDocVer>b__0() in d:\PublishWSFetchLatestDoc6Jan.asmx.cs:line 41
       at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
       at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
       at FetchlatestDocDet6Jan.FetchLatestDoc6Jan.FetchLatestDocVer(String fileName, String processID, String subProcessId) in d:\PublishedWS\FetchLatestDoc6Jan.asmx.cs:line 35
    [WebMethod]
            public DataTable FetchLatestDocVer(string fileName,string processID,string subProcessId)
                DataTable dtFiles = new DataTable("File Details");
                dtFiles.Columns.Add("File Name");
                dtFiles.Columns.Add("File Version");
                dtFiles.Columns.Add("File Url");
                SPSecurity.RunWithElevatedPrivileges(delegate()
                    // implementation details omitted       
                //using (SPSite mySite = new SPSite(siteUrl))
                using (SPSite mySite = new SPSite("http://srvr:4000/sites/mysitecoll"))
                    using (SPWeb myWeb = mySite.OpenWeb())
                        SPList oList = myWeb.Lists["TEST DOC LIB "];
                        SPView oView = oList.Views["All Documents"];                  // SPQuery oQuery = new SPQuery(oView);
                        SPQuery oQuery = new SPQuery();
                        string query = "<Query><Where><And><Eq><FieldRef Name=Title/>" + "<Value Type=Text>" + fileName + "</Value></Eq>"
                                        +"<Eq><FieldRef Name=ProcessID /><Value Type=Text>"+processID+"</Value></Eq>"
                                        +"<Eq><FieldRef Name=SubProcessID /><Value Type=Text>"+subProcessId+"</Value></Eq>"
                                        +"</And></Where></Query>";
                        oQuery.Query = query;                    
                        oQuery.ViewAttributes = "Scope=\"Recursive\"";
                        SPListItemCollection collListItemsAvailable =
                         oList.GetItems(oQuery);
                        foreach (SPListItem oListItemAvailable in collListItemsAvailable)
                           // Console.WriteLine(oListItemAvailable["Name"].ToString());
                            SPFileVersionCollection versions = oListItemAvailable.File.Versions;
                            // If the file has versions, loop through all of the versions
                            if (versions != null)
                                if (versions.Count > 0)
                                    foreach (SPFileVersion version in versions)
                                     //   Console.WriteLine("Version Info:: {0}, {1}", version.VersionLabel, version.Url);
                                        DataRow dr = dtFiles.NewRow();
                                        dr[0] = oListItemAvailable["Name"].ToString();
                                    //Added data to the datatable
                                else
                                  //  Console.WriteLine("Version Info:: {0}, {1}", oListItemAvailable.File.UIVersionLabel, oListItemAvailable.File.Url);
                                    DataRow dr = dtFiles.NewRow();
                                    dr[0] = oListItemAvailable["Name"].ToString();
                                    dr[1] = oListItemAvailable.File.UIVersionLabel;
                                    dr[2] = oListItemAvailable.File.Url;
                                    dtFiles.Rows.Add(dr);
                return dtFiles;

    "The Web application at http://server:port/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing
    content, the system administrator may need to add a new request URL mapping to the intended application"
    Here are the most common reasons this error can occur:
    The code is executed on a different machine - The SharePoint object model (except the Client API) requires to be run on the SharePoint server itself. It is not possible to run the application on a server which is not within the same
    SharePoint farm the code is trying to access.
    Insufficient Rights on the site collection - The code is executed in context of an account which does not have read permission on the site collection
    Incorrect Url being used - Verify that the site works correct in a browser and double check that the server is correct registered in the AAM settings
    Incorrect bitness - The SharePoint object model needs to be executed with the same bitness as the operating system. That means you cannot use the SharePoint object model in a 32-bit application if the Operating System and SharePoint
    are installed as 64-bit version. Ensure to compile the project using the correct bitness (64-bit on a 64-bit machine vs. 32-bit on a 32-bit machine)
    Incorrect .NET framework version -  Ensure that the project is configured to use .NET 3.5. .NET 4.0 cannot be used with the current versions of SharePoint
    from Mr.Stefan's post, i have checked with my code : as per the first reason: (1)
    i am running the code from my  SP 2013 machine only. but the only difference is that, i am using a  asp.net web appln and have added a SP references of 15 hive and trying to make a  lists.asmx file.
    also checked the reasons
    2,3 ,4 ,5 all are  fine from my end.
    here just wanna know: abt the below approach : whether its Correct or NOT.
    create a plain GetDocsWebService.asmx file from asp.net 3.5 framework and  write the code for retrieving items from doc.lib using SPSite, spweb, splists, xmldocument and retrieve a datatable . [[[ i have added a web reference of sp 2013 microsoft.sharepoint
    dll from  isapi folder, in this GetDocsWebService.asmx project ]]
    i deployed this web service on my SP server's  new iis site, c:\inetpub\wwwroot\GETDOCSPUBLISH  site
    now, at present , am adding a  normal asp.net 4.5 web appln and add the  web reference of this custom web service and trying to consume.
    at this point am getting mulitpl errors: like
    1) platform not supported : am stuck with this error!!
    2) sometimes, am getting document not valid...<html> <head> document not valid........</html>
    for the above 2 errorrs, i still could not able to find a solution!!
    is it because, lists.asmx is not supported in sp 2013? we need to depend on rest-api/ecma/csom ?? 
    so my question is ,  what should be the correct ad most recommended approach  for reading doc lib/ splist  records/items from a  remote macihne.

  • Storing some filenames in an array in loop

    Hi ,
    I am getting some file names in a loop like this:
    File aDirectory = new File("Data/");
             File[] files = aDirectory.listFiles();
             //String fileret = null;
             for(File file : files){
                  String file1 = "Data/"+file.getName()+"/"+file.getName()+".txt";
                  String f12str = readTextFile(file1);
                  String s1 =f12str.toLowerCase();
             }I need the f12str names outside the loop in an array...How can I do that? It is not defined outside.
    I need to store the names in an array.

    Hi,
    I want to compute something like this:
    String file1 = "Data/xyz/xyz.txt";
    String file2 = "Data/abc/abc.txt";
    String file3 = "Data/efg/efg.txt";
              String f12str = readTextFile(file1);
              String f22str = readTextFile(file2);
              String f32str = readTextFile(file3);By using a new program with a new loop:
    File aDirectory = new File("Data/");
             File[] files = aDirectory.listFiles();
             String file1 =null;
             for(File file : files){
                  file1 = "Data/"+file.getName()+"/"+file.getName()+".txt";
             }But how can I perform the above operations if I cant even initialize an array of files in file1.
    Actually I have to make
    file[] = all files;
    do same operations as in main file.... like readTextFile and stuff

  • How to push the two pdf opened documents in the array?

    Hi all,
    I need to store the two pdf opened documents in the array value(i.e array(0), array(1)) and then get that array value one by one, and print it through AVAlertNote(). Kindly advise me the possiblities and solution.
    Thanks for looking into this.

    What do you mean you want to put the "pdf open documents" in an array?  You mean the PDDoc structures?  Just use a std::vector<> or the like.
    And what did you want to print?
    If you are trying to debug, why not use the source debugger for your platform?

  • How to get the last error for while loop?

    How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.

    What do you mean by "get" and "transfer"?
    If the shift register is not what you want, use a plan tunnel instead.
    Typically, programmers are interested in the first, not last, error.
    Can you show us your code so we have a better idea what you are trying to?
    LabVIEW Champion . Do more with less code and in less time .

  • Get document number in user exit EXIT_SAPLMRMC_001 (MIRO)

    Hi, i'm implementing exit MM08R002, FM EXIT_SAPLMRMC_001(changing tolerance check). In this FM I need to get document number that the user is modifying. But in the import parameters i don't have the document number.
    I have found FM (MRM_PROT_GET), where i can get messages from the transaction MIRO and this FM doesn´t need the document number. I'm looking for a FM like this, but to get document number that the user is modifying.
    Thanks in advance.

    Hi,
       You can get that document no. using FIELD-SYMBOLS. Try these steps.
    1. Press F1, where the user is modifying that document number. Get Program name, screen field structure from that.
    2. declare one variable as field as field-symbols, in your exit.
    FIELD-SYMBOLS: <lv_var> type any.
    Assign '((SAP45MMA)BSIK-BELNR) to <lv_var>.
    Here SAP45MMA is Program Name And BSIK-BELNR is field structure of your program screen.
    in <lv_var> you will get the value, which user has modified.
    Regards
    Vishnu Gupta

  • How to get Document Set property values in a SharePoint library in to a CSV file using Powershell

    Hi,
    How to get Document Set property values in a SharePoint library into a CSV file using Powershell?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    According to your description, my understanding is that you want to you want to get document set property value in a SharePoint library and then export into a CSV file using PowerShell.
    I suggest you can get the document sets properties like the PowerShell Command below:
    [system.reflection.assembly]::loadwithpartialname("microsoft.sharepoint")
    $siteurl="http://sp2013sps/sites/test"
    $listname="Documents"
    $mysite=new-object microsoft.sharepoint.spsite($siteurl)
    $myweb=$mysite.openweb()
    $list=$myweb.lists[$listname]
    foreach($item in $list.items)
    if($item.contenttype.name -eq "Document Set")
    if($item.folder.itemcount -eq 0)
    write-host $item.title
    Then you can use Export-Csv PowerShell Command to export to a CSV file.
    More information:
    Powershell for document sets
    How to export data to CSV in PowerShell?
    Using the Export-Csv Cmdlet
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Sharepoint Workflow : how to get document full path + file name into variable?

    Hi,
    Anybody knows how to get document full path + file name into a variable in Sharepoint 2010 workflow?
    Example http://sp1:80/InvoiceQueue/Shared Documents/123.pdf
    I am using List Workflow which links to a document library.

    Hi SAMSUNG,
    According to your description, my understanding is that you want to get the full path of a document in a list workflow.
    You can set the variable to the Enconded Absolute URL of the document. The screenshot is my testing. In my testing (in the red area), when the title of a document was equal to the tile of the current item, set a variable to the Enconded Absolute URL of the
    document. I used ‘Log to history list’ to check the value of the variable in Workflow History .
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How do I store 4 hours of data and get it out of the "while loop" into a spreadshee​t file for documentin​g purposes? "See additional Text for additonal info"

    What a have is a VI that uses the following SUbvi's, starts with FP OpenVI, then FP Create TagVI, into a "While Loop" which contains a FP ReadVI outputting data into a Index ArrayVI outputting to a Display (DBL). This shows the output of a FP-AI-100 monitoring a 9v battery. I have to monitor this battery for a 4 hour period my problem is storing the 4 hours of data and getting it out of the "while loop" into a "Write to Spreadsheet File VI" all I seem to accomplish is just one data sample which I get into a spreed ship file with no problem. I just can't get 4 hours worth. By the way this is my first VI and I'm self
    trained so have mercy.

    I figured it out thanks.
    John Morris
    Glendinning Marine

  • How do I store 4 hours of data and get them out of the "while loop" into a spreadsheet file for documenting purposes? "See additional Text for additonal info"

    What a have is a VI that uses the following SUbvi's, starts with FP OPENvi, then FP Create Tagvi, into a "While Loop" which contains a FP READvi outputting data into a INDEX ARRAYvi outputting to a Display (DBL). This shows the output of a FP-AI-100 monitoring a 9v battery. I have to monitor this battery for a 4 hour period my problem is storing the 4 hours of data and getting it out of the "while loop" into a "Write to Spreadsheet File vi" all I seem to accomplish is just one data sample which I get into a spreed ship file with no problem. I just can't get 4 hours worth. By the way this is my first VI and I'm sel
    f trained so have mercy.

    I figured it out Thanks.
    John Morris
    Glendinning Marine

  • I'm trying to setup a printer go wireless through my airport extreme, but every time I try to print the printing file gets paused. I'm in loop. PLEASE HELP! (The printer is a Brother 7020  monochrome)

    I'm trying to setup a printer go wireless through my airport extreme, but every time I try to print the printing file gets paused. I'm in loop. PLEASE HELP! (The printer is a Brother 7020  monochrome)

    I had the exact same problem
    It turns out I was using a 20 foot USB cable between the printer and the Airport Extreme and the signal had become to weak to work. Try using nothing more than a 6 foot cable or try a new cable

  • Getting document no. using document id  from dms

    Dear Experts,
          I want to get Document No. using  Document ID of particuler document from DMS. Is there any Function Module which returns Document No. from Document ID. So how to get this.
    << Moderator message - Everyone's problem is important. But the answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
    With Regards !
    Shekh Ibrahim
    Edited by: Rob Burbank on Jan 17, 2011 4:23 PM

    Hi again,
    maybe the report DMS_KPRO_READ2 can be useful for this requirement. Other useful tables could be DMS_PH_CD1, DMS_DOC2LOIO or DMS_PHIO2FILE.
    Best regards,
    Christoph

  • Problems after opening "Get Document" Unix Executable file

    After importing documents from my Dell computer to macbookpro and opening a file called "Get Document" which is a Unix Executable file, I now have dozens of these type of these type of files in "Places":
    file://localhost/Users/sacredsprings/%25B0%2580%25A9%25C0SR
    I had Linux installed on my Dell, and having read a few threads think it may be to do with that.  Can I just safely delete all these files?

    Sometimes ZIP files are made into self-expanding .exe files. When run on a PC, they will unzip without needing any unzipping software. They will not do this on a Mac, but Stuffit Expander may work with them
    <http://www.stuffit.com/mac/expander/>

Maybe you are looking for