Swatch name Variable

Hi,
It's my first time posting on this forum. I´m new around scripting but I need to do a simple task. I think It´s impossible without using script.
Example: I have 4 rectangles, each one with personalized colors using color Palette. Model is RGB.
I created an action which automaticaly selects each object and save its color in Swatchs panel.
I´m able to reach the result which automaticaly selects object per object and saves its color.
But, the problem is that I´d like Illustrator to save the color name as Color 1, Color 2 (a name plus a variable), instead of saving name as color composition (R-255 B-10 G-30). Its impossible to record swatch name desired in the action.
Is there any way to create a script which select one object a time, save its color in the swatch palette with the name color 1 and do that for all objects in the artboard. So, a sequence name of color 1, color 2, as Photoshop would do if you create color swatches?
How to create
Thank you for any advice

Something like the following should work (untested)
Set your count var
var colorCount = 0;
After you set the swatch :
var lastSwatchIndex = app.activeDocument.swatches.length-1;
var lastSwatch = app.activeDocument.swatches[lastSwatchIndex];
lastSwatch.name = "Color "+colorCount;
iterate the counter

Similar Messages

  • Table name variable failes in OLE DB connection

    I'm getting odd behavior from an OLE DB Destination. I need to make the destination dynamic so I chose "Table name or view name variable" as the data access mode. When I put in what I know is a valid table name as the default value of the variable
    and click view existing data, I get the following,
    File not found (it's a DB2 db that calls tables files).
    The curious thing is when I choose SQL command and put in a query using the EXACT same table and click view existing data, it works. What am I missing here?

    Hi falcon00,
    I am unable to reproduce the error message, however, you can follow the steps below to create the variable properly:
    Remove the existing related variable(s). 
    Add a new Package scope variable named PRMSDestinationTable, set its data type to String, its value to TableName (without database schema).
    Press F4 to highlight the variable properties pane, set its EvaluateAsExpression property to True, and set its expression to @[User:: PRMSDestinationTable]. Evaluate the expression to make sure the result is correct.
    Regards,
    Mike Yin
    TechNet Community Support

  • Table name ? with query name , variable name and variant .

    Hi All,
    Is there any single table with fields as query name , variable name and variant ?
    or any table which i can build a view to get these fields.
    or any other way ?? to get this fields in single table
    Thanks,
    Ak

    Hi,
    first use the proper heading for a question.
    you want the query all details means technical name, variable and variable type use RSRTQ
    it will give total information of query.
    Bex related tables
    RSZELTDIR ----
    Directory of the reporting component elements
    RSZELTTXT ----
    Texts of reporting component elements
    RSZELTXREF  ---
    Directory of query element references .
    Thanks,
    Phani.

  • Getting swatch names of each document item

    I'm trying to find a way to loop thru all items in an Illustrator document and get their stroke and fill color.  Sometimes items are spots, sometimes documents are set to RGB or CMYK, etc, so swatches can be a mixture of things.  Is there an easy way to get the swatch name for each item?
    For example, I can check if an item is a spot, and get it's color like so:
    var c = app.activeDocument.pageItems[0];
    if (c.strokeColor.typename === 'SpotColor') {
        var s = c.strokeColor.spot.name;
    But if I try to get the name from an item colored 'Black' (which is set to Process Color, CMYK), then I'll need to do something else like:
    var c = app.activeDocument.pageItems[0];
    if (c.strokeColor.typename === 'CMYKColor') {
        var s = c.strokeColor.name;  // This returns undefined - not sure what I'm doing!!!
    Is there an easier way to achieve this, other than getting the typename of each item, and then trying to figure out it's color name?  I was hoping something like this would work:
    var c = app.activeDocument.pageItems[0].strokeColor.name;
    Thanks!
    Jay

    Thank you Larry.  This is very helpful to know!
    I chatted with a friend, who knows much more about colors, printing, etc. and now I see that I can only get item swatch names when the item is set to a spot (or global I believe).  Process on the other hand will just return specific number values for each color (c, m, y, k).  So I think I have a better understanding now.
    Thanks.
    Jay

  • How to rename swatches name?

    Hi,
    I need to rename the swatches name.
    For ex: 05;c=0;m=50;y=0;k=0 rename this color to Color 05.
    While removing the original color name manually, it ask for replace with. How this can be done?
    Regards,
    Subha......

    Its aks for 'replace with' when removing the complete Swatch manually, not just the name.
    To change the name (VB), try:
    myiddoc.Swatches.item("05;c=0;m=50;y=0;k=0").name = "Color05"
    or
    myiddoc.Swatches.item("05;c=0;m=50;y=0;k=0").name = "Color" + left(myiddoc.Swatches.item("05;c=0;m=50;y=0;k=0").name, 2)

  • Confused about a task sequence - multiple applications - base name variables

    Hello, 
    I am trying to get familiar in a new SCCM 2007 environment (badly documented I'm afraid). The TS used for computer deployment contains a long sequence of 'Install Software'-steps labled 'Install PACKAGES' (0 to 9). Within each of these the 'Install multiple
    applications'-box is checked and a Base Name Variable has been given (PACKAGES0 -->9).
    I have been reading about the mechanism behind defining variables in the CustomSettings.ini, but of all the CS.ini files I have found on the SCCM server I have not found traces of these variables.
    I have found no collections with these variables.
    So my question is: How to figure out what may be included in these ? What software is installed, if any? 

     When you deploy the task sequence to a computer, does it get any applications installed from these steps?
    The variables can come from different sources, like:
     1) Collections variables
     2) Computer variables
     3) Dynamically set variables, using either a custom script or MDT (CustomSettings.ini)
    If the computers get any of the "unknown" packages installed, try looking in the smsts.log on the client.
    This should also give you an indication, where the variables come from.
    You can get all computer variables with this small PowerShell script - This can help you identify if the variables are set per computer:
    $smsprovider = "Server01"
    $sitecode = "CEN"
    $objMachineSettings = gwmi -ComputerName “$smsProvider” -Namespace “root\sms\site_$siteCode” -class “sms_machinesettings”
    $objMachineSettings.Get()
    ForEach ($objComputerVar in $objMachineSettings.MachineVariables)
     Write-Host "ResourceID:" $objMachineSettings.ResourceID  "Variable:" $objComputerVar.Name "=" $objComputerVar.Value
    -Heine

  • Receiver File Name Variable Substitution :payload: Fatal Error

    Hi all
             i have a scenario of  idoc to file.., i need to create a dynamic file name taking 1 field variable from the payload.  The idoc -xml structure in XI is :
                       <b><INVOICE03></b>
                          <b> <IDOC BEGIN="1"</b>>
                              <b><EDI_DC40 SEGMENT="1"></b>
                                          <field1> ashu </field1>
                             <b> </EDI_DC40>
                               <ENEDL20></b>
                                           <field2> rawat</field1>
                              <b> <ENEDL20>
                           </IDOC>
                        <INVOICE03></b>
    i need to pick th value of field2 , for the target file name..
    In variable substitution i had given  var = INVOICE03,1,IDOC,1,E1EDL40,1,E1EDL20,1,VBELN,1
    <i>
    STILL I AM GETTING THE ERROR </i> :varsubst.VariableDataSourceException: Caught SAXException while parsing XML payload: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) .
    NOTE : my target variable is getting populated properly.
    i tried a lot of combinations in REFERENCE VARIABLE , even  giving ( payload: xxx)
    but for all  changes it is giving the same error....
    i referred the following blogs also :
    Re: Variable substitution
    Regards
    AR

    HI
    the target payload is :
      <?xml version="1.0" encoding="UTF-8" ?>
    - <DELVRY03>
    - <IDOC BEGIN="1">
    + <EDI_DC40 SEGMENT="1">
      <TABNAM>EDI_DC40</TABNAM>
      <MANDT>900</MANDT>
      <DOCNUM>0000000002093240</DOCNUM>
      <DOCREL>46C</DOCREL>
      <STATUS>30</STATUS>
      <DIRECT>1</DIRECT>
      <OUTMOD>2</OUTMOD>
      <IDOCTYP>DELVRY03</IDOCTYP>
      <MESTYP>DESADV</MESTYP>
      <STDMES>DESADV</STDMES>
      <SNDPOR>SAPQA1</SNDPOR>
      <SNDPRT>LS</SNDPRT>
      <SNDPRN>ZLOG900</SNDPRN>
      <RCVPOR>XIDEV</RCVPOR>
      <RCVPRT>KU</RCVPRT>
      <RCVPFC>WE</RCVPFC>
      <RCVPRN>8300000717</RCVPRN>
      <CREDAT>20070820</CREDAT>
      <CRETIM>143341</CRETIM>
      <SERIAL>20070703104747</SERIAL>
      </EDI_DC40>
    - <E1EDL20 SEGMENT="1">
    <b> <VBELN>0083030974</VBELN> </b>
      <VSTEL>5000</VSTEL>
      <VKORG>STK</VKORG>
      <INCO1>C&F</INCO1>
      <INCO2>Melsele</INCO2>
      <VSBED>03</VSBED>
      <BTGEW>12000.000</BTGEW>
      <NTGEW>0.000</NTGEW>
      <GEWEI>GRM</GEWEI>
      <VOLUM>0.000</VOLUM>
      <ANZPK>00000</ANZPK>
      <PODAT>20070703</PODAT>
      <POTIM>104747</POTIM>
    + <E1EDL22 SEGMENT="1">
      <VSTEL_BEZ>ID Warehouse</VSTEL_BEZ>
      <VKORG_BEZ>Stock Transfer</VKORG_BEZ>
      <INCO1_BEZ>Cost & Freight</INCO1_BEZ>
      <VSBED_BEZ>Road</VSBED_BEZ>
      </E1EDL22>
    + <E1EDL21 SEGMENT="1">
      <LFART>ZRUS</LFART>
      <EXPKZ>X</EXPKZ>
      <LPRIO>03</LPRIO>
      <TRAGR>0001</TRAGR>
    - <E1EDL23 SEGMENT="1">
      <LFART_BEZ>Delivery:Russian Exp</LFART_BEZ>
      <LPRIO_BEZ>High</LPRIO_BEZ>
      <TRAGR_BEZ>On pallets</TRAGR_BEZ>
      </E1EDL23>
      </E1EDL21>
    + <E1EDL18 SEGMENT="1">
      <QUALF>ORI</QUALF>
      </E1EDL18>
    + <E1ADRM1 SEGMENT="1">
      <PARTNER_Q>WE</PARTNER_Q>
      <PARTNER_ID>8300000717</PARTNER_ID>
      <LANGUAGE>EN</LANGUAGE>
      <FORMOFADDR>M/s.</FORMOFADDR>
      <NAME1>NYK Logistics</NAME1>
      <STREET1>Keetberglaan 2</STREET1>
      <POSTL_COD1>B-9120</POSTL_COD1>
      <CITY1>Melsele</CITY1>
      <COUNTRY1>BE</COUNTRY1>
      <REGION>RII</REGION>
      </E1ADRM1>
    + <E1ADRM1 SEGMENT="1">
      <PARTNER_Q>OSP</PARTNER_Q>
      <PARTNER_ID>5000</PARTNER_ID>
      <LANGUAGE>EN</LANGUAGE>
      <NAME1>I/D WAREHOUSE : DELHI</NAME1>
      <NAME2>B-84/1, Okhla Phase II, New Delhi</NAME2>
      <CITY1>New Delhi</CITY1>
      <TELEFAX>CST:LC/87/051655/05/61</TELEFAX>
      <COUNTRY1>IN</COUNTRY1>
      <REGION>DEL</REGION>
      </E1ADRM1>
    + <E1ADRM1 SEGMENT="1">
      <PARTNER_Q>OSO</PARTNER_Q>
      <PARTNER_ID>STK</PARTNER_ID>
      </E1ADRM1>
    + <E1EDT13 SEGMENT="1">
      <QUALF>006</QUALF>
      <NTANF>20070703</NTANF>
      <NTANZ>000000</NTANZ>
      <NTEND>20070703</NTEND>
      <NTENZ>000000</NTENZ>
      <ISDD>00000000</ISDD>
      <ISDZ>000000</ISDZ>
      <IEDD>00000000</IEDD>
      <IEDZ>000000</IEDZ>
      </E1EDT13>
    + <E1EDT13 SEGMENT="1">
      <QUALF>003</QUALF>
      <NTANF>20070703</NTANF>
      <NTANZ>000000</NTANZ>
      <NTEND>20070703</NTEND>
      <NTENZ>000000</NTENZ>
      <ISDD>00000000</ISDD>
      <ISDZ>000000</ISDZ>
      <IEDD>00000000</IEDD>
      <IEDZ>000000</IEDZ>
      </E1EDT13>
    + <E1EDT13 SEGMENT="1">
      <QUALF>001</QUALF>
      <NTANF>20070703</NTANF>
      <NTANZ>000000</NTANZ>
      <NTEND>20070703</NTEND>
      <NTENZ>000000</NTENZ>
      <ISDD>00000000</ISDD>
      <ISDZ>000000</ISDZ>
      <IEDD>00000000</IEDD>
      <IEDZ>000000</IEDZ>
      </E1EDT13>
    + <E1EDT13 SEGMENT="1">
      <QUALF>007</QUALF>
      <NTANF>20070703</NTANF>
      <NTANZ>000000</NTANZ>
      <NTEND>20070703</NTEND>
      <NTENZ>000000</NTENZ>
      <ISDD>00000000</ISDD>
      <ISDZ>000000</ISDZ>
      <IEDD>00000000</IEDD>
      <IEDZ>000000</IEDZ>
      </E1EDT13>
    + <E1EDT13 SEGMENT="1">
      <QUALF>010</QUALF>
      <NTANF>20070703</NTANF>
      <NTANZ>000000</NTANZ>
      <NTEND>20070703</NTEND>
      <NTENZ>000000</NTENZ>
      <ISDD>00000000</ISDD>
      <ISDZ>000000</ISDZ>
      <IEDD>00000000</IEDD>
      <IEDZ>000000</IEDZ>
      </E1EDT13>
    + <E1EDT13 SEGMENT="1">
      <QUALF>015</QUALF>
      <NTANF>20070703</NTANF>
      <NTANZ>000000</NTANZ>
      <NTEND>20070703</NTEND>
      <NTENZ>000000</NTENZ>
      <ISDD>00000000</ISDD>
      <ISDZ>000000</ISDZ>
      <IEDD>00000000</IEDD>
      <IEDZ>000000</IEDZ>
      </E1EDT13>
    + <E1EDL33 SEGMENT="1">
      <ALAND>IN</ALAND>
      <EXPVZ>4</EXPVZ>
      <ZOLLA>0001</ZOLLA>
      <IEVER>3</IEVER>
    - <E1EDL34 SEGMENT="1">
      <EXPVZ_BEZ>Air</EXPVZ_BEZ>
      <ZOLLA_BEZ>New Delhi</ZOLLA_BEZ>
      <IEVER_BEZ>Road</IEVER_BEZ>
      </E1EDL34>
      </E1EDL33>
    + <E1EDL24 SEGMENT="1">
      <POSNR>000010</POSNR>
      <MATNR>000000000001005372</MATNR>
      <ARKTX>ALPRAZOMED TAB 0.5MG 5X10B BE</ARKTX>
      <MATKL>S5202</MATKL>
      <WERKS>5000</WERKS>
      <LFIMG>2.000</LFIMG>
      <VRKME>15S</VRKME>
      <LGMNG>10.000</LGMNG>
      <MEINS>S10</MEINS>
      <NTGEW>0.000</NTGEW>
      <BRGEW>12000.000</BRGEW>
      <GEWEI>GRM</GEWEI>
      <VOLUM>0.000</VOLUM>
      <VOLEH>CMQ</VOLEH>
      <LADGR>Z002</LADGR>
      <TRAGR>0001</TRAGR>
      <VTWEG>ST</VTWEG>
      <SPART>20</SPART>
      <GRKOR>000</GRKOR>
      <POSEX>000000</POSEX>
    - <E1EDL25 SEGMENT="1">
      <LADGR_BEZ>Injectibles- for MP</LADGR_BEZ>
      <TRAGR_BEZ>On pallets</TRAGR_BEZ>
      <VTWEG_BEZ>Stock Transfer</VTWEG_BEZ>
      <SPART_BEZ>Formulations</SPART_BEZ>
      </E1EDL25>
    - <E1EDL26 SEGMENT="1">
      <PSTYV>NLN</PSTYV>
      <MATKL>S5202</MATKL>
      <PRODH>010080010010100102</PRODH>
      <UMVKZ>5</UMVKZ>
      <UMVKN>1</UMVKN>
      <UEBTO>0.0</UEBTO>
      <UNTTO>0.0</UNTTO>
      <XCHBW>1</XCHBW>
      <MVGR1>U</MVGR1>
      <MVGR2>U</MVGR2>
      <MVGR3>U</MVGR3>
      <MVGR4>U</MVGR4>
      <MVGR5>U</MVGR5>
    - <E1EDL27 SEGMENT="1">
      <PSTYV_BEZ>StandStockTransItem</PSTYV_BEZ>
      <MATKL_BEZ>Belgium</MATKL_BEZ>
      <PRODH_BEZ>Tablets</PRODH_BEZ>
      <WERKS_BEZ>Export Warehouse</WERKS_BEZ>
      <MVGR1_BEZ>Unasigned</MVGR1_BEZ>
      <MVGR2_BEZ>Unassigned</MVGR2_BEZ>
      <MVGR3_BEZ>Unassigned</MVGR3_BEZ>
      <MVGR4_BEZ>Unasigned</MVGR4_BEZ>
      <MVGR5_BEZ>Unassigned</MVGR5_BEZ>
      </E1EDL27>
      </E1EDL26>
    - <E1EDL35 SEGMENT="1">
      <GRWRT>0.00</GRWRT>
      </E1EDL35>
    - <E1EDL43 SEGMENT="1">
      <QUALF>V</QUALF>
      <BELNR>7200000025</BELNR>
      <POSNR>000010</POSNR>
      </E1EDL43>
      </E1EDL24>
      </E1EDL20>
      </IDOC>
      </DELVRY03>
    i need <VBELN>0083030974</VBELN>  in file name
    Regards
    AR

  • Error while using the variable name "VARIABLE" in variable substitution

    Hi Experts,
      I am using variable substitution to have my output filename set as a payload field value. It is working fine when I am using the variable name as fname, subs etc but channel goes in error when I am using the variable name as "VARIABLE". This is probably a reserved word but i would like to know where i can find a detailed documentation on this. Say things to note / restrictions while using variable substitution.
    This is the error in the channel:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: java.text.ParseException: Variable 'variable' not found in variable substitution table: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: java.text.ParseException: Variable 'variable' not found in variable substitution table
    Thanks,
    Diya

    Hi Zevik,
    Thanks for the reply. The output file is created correctly by merely changing the variable name to something else and hence the doubt.
    Below is the configuration:
    Variable Substituition
    VARIABLE    payload:interface_dummy,1,Recordset,1,Header,1,field1,1
    Filename schema : TEST_%VARIABLE%.txt
    Output xml structure:
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:interface_dummy xmlns:ns="http://training.eu.unilever.com">
    - <ns:Recordset xmlns:ns="http://training.eu.unilever.com">
    - <Header>
      <identifier>HDR</identifier>
      <field1>001</field1>
      <field2>001</field2>
      <field3>R</field3>
      </Header>
    - <Detail>
      <identifier>A</identifier>
      <field1>000000002</field1>
      <field2 />
      <field3>Doretha.Walker</field3>
      </Detail>
    I thimk my configuration is correct as it is working correctly with the variable name change, However, maybe i missed something !

  • Passing file name variable to the save as dialog

    Hi:
    I have an event listener that checks if the user has selected the file/"save as" menu and brings up another dialog window asking for some additional information about the client and job. I would like to pass a variable from this custom dialog to the file name field in the standard Save As dialog.
    Anybody have an idea how I can do this?
    I am using inDesign3 on Windows XP. I am using VB for the scripting.
    thanks!!
    Dan

    Hi: thanks for looking at it.
    Actually, I am not calling the save as in my script, the user is clicking on Save As and the event listener I have in the start up folder is picking that up. The event listener calls up a script that asks users to fill in a couple of fields about the specific job and once they do that and click ok, the default inDesign "save as" dialog is brought up. So that is my question -- how to pass the information from my dialog to the standard "save as" dialog (as the file name of the file).
    The event listener is of the beforeInvoke on the Save As... menu.
    Any idea?
    thanks!!
    Dan

  • File name Variable

    Hi,
    I am trying to pass file name as parameter for a procedure which will FTP file to unix location , When i tried the procedure by hard coding the file name it worked fine and FTP was done. Then I tried to create a filename variable thinking i can re use same procedure as i want to ftp multiple files or different file for different interfaces.
    I created one variable choosen Data type as Alphanumaric , and default value as null.
    then i used the variable in procedure and i get the error below. ( I gave file name as file_xyz_123.csv)
    6550 : 65000 : java.sql.SQLException: ORA-06550: line 1, column 171:
    PLS-00103: Encountered the symbol "FILE_XYZ_123" when expecting one of the following:
    ) , * & = - + < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
    java.sql.SQLException: ORA-06550: line 1, column 171:
    PLS-00103: Encountered the symbol "FILE_XYZ_123" when expecting one of the following:
    ) , * & = - + < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Please help
    Thx
    Suri
    Edited by: VSG on Apr 26, 2010 8:12 PM

    You can modify the previous parameter only where you hard coded value, to change the resource name with a variable.
    It will automatically consider variable value which is passed during runtime.
    Murali.

  • Bug in PL/SQL - Does not update Table if table name & variable name same in

    Dear All,
    If tabale name & vairable name is same in a Stored Procedure, UPDATE to table does not take place.
    For example run following 2 procedures. First procedure does the insert properly to table but second procedure does not update the table.
    create or replace procedure BugDemo1
    as
    LAST_NAME VARCHAR2(30);
    FIRST_NAME VARCHAR2(30);
    Begin
    LAST_NAME := 'Prasad';
    FIRST_NAME := 'Raghnandan';
    Insert into com_people (id,Roles, LAST_NAME, FIRST_NAME) values (77777,'Patient', LAST_NAME, FIRST_NAME);
    end;
    create or replace procedure BugDemo2
    as
    LAST_NAME VARCHAR2(30);
    FIRST_NAME VARCHAR2(30);
    Begin
    LAST_NAME := 'Pra';
    FIRST_NAME := 'Raghu';
    Update com_people set
    LAST_NAME = LAST_NAME,
    FIRST_NAME = FIRST_NAME
    where id = 77777 ;
    end;
    ------------------------------------------

    Hi,
    It is not a bug. Oracle is updating the records. Here Oracle is treating the variable name as COLUMN_NAME. Since priority is higher for a COLUMN on variable so each column is getting updated by itself resulting no change in data.
    SQL> CREATE TABLE com_people
      2  (
      3  id NUMBER (5),
      4  Roles VARCHAR2(20),
      5  LAST_NAME  VARCHAR2(20),
      6  FIRST_NAME VARCHAR2(20)
      7  )
      8  ;
    Table created
    SQL> Insert into com_people (id,Roles, LAST_NAME, FIRST_NAME) values (77777,'Patient', 'LAST_NAME', 'FIRST_NAME');
    1 row inserted
    SQL> COMMIT;
    Commit complete
    SQL>
    SQL> create or replace procedure BugDemo2
      2  as
      3  LAST_NAME VARCHAR2(20);
      4  FIRST_NAME VARCHAR2(20);
      5  Begin
      6  LAST_NAME := 'Pra';
      7  FIRST_NAME := 'Raghu';
      8 
      9  Update com_people set
    10  LAST_NAME = LAST_NAME,
    11  FIRST_NAME = FIRST_NAME
    12  where id = 77777 ;
    13 
    14  DBMS_OUTPUT.PUT_LINE('UPDATED ROWS ='||SQL%ROWCOUNT);
    15  end;
    16  /
    Procedure created
    SQL> set serveroutput on
    SQL> execute BugDemo2;
    UPDATED ROWS =1
    PL/SQL procedure successfully completed
    SQL> Regards

  • Datastore Resource Name Variable

    Hello Experts,
    In the past, we have successfully implemented the use of a variable name inside the resource name of a Datastore to dynamically change the name of the table. This technique has been always useful to loop through a set of files assigning the name of the file to a variable and then using this value within the resource name of a Datastore.
    When trying to implement the same technique in ODI 11g, it looks like the value of the variable is not being use by ODI when executing the package. When I look at the execution code the FROM clause is using the name of the variable instead of the value assigned to that variable IE:
    select *
    from #NameOfVariable
    Is this a known issue in 11g? or is there a new way to implement variables for Datastore resource names?.
    The variable that i'm using has been set to Alphanumeric type and I'm assigning a static value inside my ODI package.
    Thanks for your help.
    Pablo C.

    better you can store all the resource names into one db table after that with helping of the refresh variable u can get file name one by one ,better declare a loop for this dynamic variable.
    if you have any doubts please revert back this.
    Regards,
    sh

  • Project name variable

    In Captivate 4, you can set project name by accessing the Edit -> preferences menu. My question is, is there a system variable that tracks the project name?
    Thanks.

    Indeed there is one, same in CP5. It would have been a service to other users if you posted the answer that you found:
    system variable = cpInfoProjectName and it belongs to the category "Movie Metadata"

  • Script to export swatch names as tab-delimited text?

    Howdy!
    I run the screen printing department at a large shipping company, and as we grow, we're trying to integrate & computerize our workflow. 95% of the designs we have on file are built as spot color in Illustrator.
    We're trying to automate some functions here in the screen-making department, such as a computer-generated inventory of screens on-hand. When we image a screen, it'll get a barcode sticker and we can then *beep* it into inventory. When we reclaim a screen we can *beep* it out of inventory. My thinking is that this would be a metric ton faster than wandering around on the shop floor looking for screens when clients placed re-orders.
    In order to do that, I've got to generate a spreadsheet with the name of each color in the design in its own field of a spreadsheet, so that they can be used to populate our inventory system and get assigned SKU's.
    I can do this manually, but it's going to take a long time. What I was sort of half-heartedly wishing for was a way to export the names of all the spot swatches used in a design as text, hopefully tab-delimited so that it can be copy/pasted into a spreadsheet.
    Am I nuts?

    Chris, you could give this a try? It was done for mac OS as a batch. It should…(if it works) write a tab delimited text file to your desktop. As is it works for all the illustrator .ai & pdf files of a given folder. It would append the text file for each directory which you run it on. If it works this could easily be changed to work with just an open doc.
    var defaultFolder = new Folder ('~/Desktop');
    var illFolder = defaultFolder.selectDlg('Please select your Folder of Illustrator files…');
    if (illFolder != null) {
    var fileList = illFolder.getFiles(fileFiltering);
    if (fileList.length > 0) {
    main(fileList);
    } else {
    alert('This Folder contains NO Illustrator files!');
    } else {
    alert('User Canceled!');
    function main(fileObjs) {
    for (var i = 0; i < fileObjs.length; i++) {
    var fileName = fileObjs[i].name;
    var colorList = customColors(fileObjs[i]);
    var thisInfo = fileName + '\t' + colorList;
    writeLog(thisInfo);
    alert('Finished…');
    function customColors(filePath) {
    var colorList = '';
    filePath.open('r');
    while (filePath.tell() < filePath.length) {
    var line = filePath.readln();
    if (line.substring(0, 23) == '%%DocumentCustomColors:') {
    colorList = line.substring(25, line.length-1) + '\t';
    var nextLine ='';
    while (nextLine.substring(0, 18) != '%%CMYKCustomColor:') {
    var nextLine = filePath.readln();
    if (nextLine.substring(0, 18) != '%%CMYKCustomColor:') {
    colorList = colorList + nextLine.substring(5, nextLine.length-1) + '\t';
    filePath.close();
    return colorList;
    function fileFiltering(fileObj) {
    if (fileObj.creator == 'ART5' && fileObj.type == 'PDF ') {
    return true;
    } else {
    return false;
    function writeLog(info) {
    try {
    var log = new File('~/Desktop/Spot_Color_Info.txt');
    log.open('e');
    log.seek(0, 2);
    log.write(info + '\n');
    log.close()
    catch (e) {
    alert(e);

  • Apex Tab Set name variable

    Hi,
    Can someone tell me the apex global variable for TAB SET Name please?
    Is there any document from I can get complete list of all Apex variable names?
    Thanks in advance
    Dip

    Can someone tell me the apex global variable for TAB SET Name please?Not clear what you mean by "variable": can you provide more context?
    Is there any document from I can get complete list of all Apex variable names?If you mean substitution strings, then Flavio has a very ueful list of them and where it's possible to use them:
    http://oraclequirks.blogspot.com/2007/07/apex-substitution-strings-cross.html
    Other than that, the APEX documentation is probably the best place, although you may need to hunt around to find what you want:
    http://www.oracle.com/technology/products/database/application_express/html/doc.html
    For example, here's a list of substitution strings supported in page templates:
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/themes.htm#sthref1659

Maybe you are looking for

  • File upload problem in java servlets

    hello, I want to upload my files.i have used Multipartrequest object.In my form i had included enctype="multipart/form-data". I want to upload one or more files . So, I made a file input box and then a select option box. With the help of java script

  • Positioning of child div within parent div

    Hello Everyone, I have several divs sat within divs that contain information that can only be viewed entirely when clicked on. (please see 'why choose us' section on site below) As you can see when the "read more" link is selected on this category, t

  • Can i have both Linux, Windows, and Leopard operating systems on my mac

    Can i use Bootcamp to have a Leopard OS, a Linux OS, and a Windows OS partitioned on my single Macbook?

  • Dynamic JSlider tick spacing

    I run several times into the situation where I needed to hardcode a JSlider tick spacing into my program. I always found it difficult to define the tick spacing because a good looking tick spacing depends on the current size of the JSlider on screen

  • Wierd Requirement for Client connection

    Have a client which I put together several months ago. It was working at that time. On the bean server I'm starting with the params: -Dcom.sun.management.jmxremote.authentication=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmx