How to change the long in to string

Hi
In my program i get the long value as input.
Then i send this long value to one method for testing which accepts the argument as String.So i have to change my long in to string then i pass it to the method.
can anybody tell me how to change my long in to string?
Thank you so much

There's probably a method java.lang.Long.toString.
If not, there's probably something a lot like it in either the Long or String classes.
I'll leave you the pleasure of looking it up in the API docs.

Similar Messages

  • How to change the Color of a string using swings/awt concept.

    Hi friends,
    How can i change the Color of a string.
    For ex:
    If i have a string "Welcome to the Java World",I want one particular Color for the string "Welcome to the" and a different Color to the "Java World" string.
    So please kindly help me out to resolve this issue.
    Thanking u in advance.

    "Text Component Features"
    http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html

  • How to change the case structure to string input?

    Hi,
    I have the inner case structure that it will decide to set "DC Voltage" or "DC Current" mode. The "Output Function" contained the selection of function "DC Voltage" or "DC Current". So far it only work with DC Voltage not DC Current. My question is how do I change the case structure to string selector? When the output function is selected to DC Voltage then the case structure is selected DC voltage case. Please help Thanks.
    Attachments:
    test.vi ‏35 KB

    You don't really need to convert the value to a string? The problem is that the value of the individual ring items are not 0 and 1, as you assumed. The values generated by the controls are:
    DC Voltage: 1006
    DC Current: 1007.
    You can find this out by viewing the properties for the "Output Function" and going to the "Edit Items" tab.
    So, all you need to do is change the 0 to 1006 and the 1 to 1007 for your case items.
    By the way, your sequence frame serves no purpose.

  • How to change the value of subtitution string in a page at runtime

    Hi,
    I need to change the value of a substitution string which is mentioned in application attributes at runtime.
    The value will be fetched from a field in database on load of each screen.
    Can anybody help.......
    Help will be appriciated........thanx in advance
    Sunil

    Substitution strings are meant to be static, like global constants.
    If you need some variable stuff, use application level items and set them using Application level computations/processes

  • Is list of custom headers and footers. I can't find how to change the footer to print the Long Date

    '''There should be a list of custom headers and footers.''' I can't find how to change the footer to print the '''Long Date'''. It took awhile just to find Page &PT. So I would appreciate if someone could post a list. Also if someone can answer how to print the Long Date.
    Thank you

    When you're on a call, use the volume buttons on the left side of the device.  This will then adjust the In-Call Volume.

  • I need to know how to change the identity (email address) used for the iTunes store as I no longer use that email

    I need to know how to change the identity (email address) used for the iTunes store as I no longer use that email.

    Settings > iTunes & App store.
    Tap AppleID, sign out then sign back in.
    The Apple ID is right everywhere else. I've synced the phone. I've reset it in Settings on the phone. I've changed it at Apple.
    When you write, "I've changed it at Apple, this means you updated yoru old AppleID or you ceated a new AppleID?

  • How to change the default database charset to ISO8859-1?

    Hi all,
    I have created a table with a nvarchar field to store string, may i now how to change the default NLS charset to ISO88591 charset?
    Thanks in advance.
    chin.

    Thank you!
    I will try later!
    But,who can tell me more detail !
    thx

  • How to change the date format?

    Hi,
    I need to display the data format as(YYYY-MM-DD). But now it displays(2009-1-9)
    Here is my code snippet which i used to display the data format as(2009-1-9)
    *<INPUT TYPE=TEXT NAME="date_submitted" MAXLENGTH=20 SIZE=10 VALUE="" onBlur= "return dateSubmitted()">  (YYYY-MM-DD)*
    *<SCRIPT LANGUAGE="javascript">*
    dateSubmitted()
    *</SCRIPT>*
    function dateSubmitted()
                        if (document.pgUpdate.date_submitted.value == "")
                             date = new Date();     
                             month = date.getMonth() + 1     
                             document.pgUpdate.date_submitted.value =
                                            date.getYear() + "-" + month + "-" + date.getDate();
                        return true;
    Can anybody help me how to change the date format?
    Thanks in advance!

    prit123 wrote:
    use SimpleDateFormat class. The code is :He posted a Javascript related question, not a Java related question.
    Please use forums devoted to Javascript. You're here at a Java/JSP forum.
    There are JS forums at webdeveloper.com and dynamicdrive.com. Good luck.
    String formatPattern = "yyyy-mm-dd";
    SimpleDateFormat sdf = new SimpleDateFormat(formatPattern);
    sdf.format(yourdate);yyyy-mm-dd denotes year-minutes-days. Please go read the SimpleDateFormat API as well.

  • How to change the storage location in Lightroom 3.6.?

    How to change the storage location in Lightroom 3.6.?
    I use my internal hard drive NTFS of my MacBook Pro  as my storage location of Lightroom 3.6. being installed in Snow Leopard now but the data of my photos get too big now. I have two fast and big external hard drives eSATA now which I want to use for my data/photos. I know how to copy the data from one hard drive to another but I don't know how to change the settings in connection with Lightroom easily. I still want to watch all fotos on my MacBook Pro but don't want to save any fotos on my internal harddrive any more. Isn't it possible to have the programm Lightroom on my internal harddrive but the data on two times on two different extermal hard drives? If I look at Lightroom - settings of catalogue - I see that the internal harddrive location is my storage location now but I my two external harddrives don't appear as folders. Why? How to change that so that the external hard drives appear in Lightroom and I can watch all my fotos immediately (sometimes using external hard drive 1 and sometimes using external hard drive 2)?
    My external hard drives are in HFS+ but I use the software of Paragon so that there shouldn't be any problem to read and write the data (I use also Final Cut Express so my external hard drives are HFS+ and not NTFS).
    I want to impert many data from CDs - should I copy the fotos first to my external hard drive and then import it into Lightroom or is it easier to import the data directly from the CD in Lightroom so that I don't have to name the folders two times?
    I see that I have to sort the fotos from the CDs in new different folders and an used to do that in Finder of my MacBookPro. In Lightroom I don't want have to click each of hundreds of fotos to be able to put it into the right folders ... But how to import only a part of a CDs quickly into the right (newly created) folders?
    Kind regards, Karin

    Would you really leave the names of photos like DSC05271.ARW and DSC05271.jpeg etc.?
    What if I name them f.i. like ...
    2013-09-11_Austria_1_mountain.jpeg
    2013-09-11_Austria_2_mountain.jpeg
    2013-09-11_Austria_3_valley.jpeg
    I would NOT do this. I would not change the file name.
    I would add keywords and other metadata to the photos to identify the content of the photos, and from that point on, I would use keywords and other metdata to search for these photos.
    However, let's look at the big picture. I think there are three different methods of organizing
    Organize via keywords and other metadata, and not via operating system constructs such as file name and folder name
    Organize via operating system constructs such as file name and folder name, and not via keywords and other metadata
    Some combination of 1 and 2
    You can choose any one of the three methods above, the choice is yours. I am a very strong believer that for most people (and it sounds like you are one of those people), method 1 is the best method. However, not everyone agrees.
    There are drawbacks to using file names to identify your photos. One big drawback is that you must type the information into each photo's name, and this is more tedious than if you wanted to assign the keyword "mountain" to the photos, you can assign the keyword to multiple photos at once. Also, if you mis-spell the information in the file name on any photo, you have just made the photo much harder to find; whereas in Lightroom, the keyword can be assigned via a mouse click (so you can't mis-spell it), or by typing the first few letters and Lightroom (auto-fill) will find the correct keyword name. So using keywords is a much simpler way to go.
    .. is this much too complicated to do that in Lightroom or even dangerous to got lost of photos?
    It is very simple to add keywords, as I explained for this case. Create keywords "Austria", "Mountain", "Valley"; then select the desired photos, and then click on the check box next to the keyword name. It is much more complicated in my opinion to rename the photos in this manner.
    There is less danger in doing this via keywords than the danger doing this via file names, because of potential mis-spellings.
    If I spend a lot of time in editing photos (in Lightroom or Photoshop) I don't want that I loose those photos f.i. later if Lightroom won't be the software I use regarding the photos (in 10, 20 years?!)
    Lightroom will OPTIONALLY write your keywords and other metadata to the files (or sidecar files in the case of RAW). Every photographic application I know of (and I'm sure those in the future) can read the keywords and other metadata. So if you ever want to switch to some other software, your keywords and other metadata are available. you can turn this option on via Edit->Catalog Settings->Metadata, check Automatically Write Changes to XMP.
    So I have to create two folders - one with the originals and one with the edited exported photos?
    No, you do not have to create two folders. You don't have to export everything, but if you do, you can put the exports wherever you want, including putting them in the same folder as the originals, with different name.
    Why not edit them in Photoshop and save them in the second folder which I import later in Lightroom? Because it takes longer?
    Wow, you really need to think about: Why are you using Lightroom?
    Could you explain this to me? Why are you using Lightroom?
    If your goal is to edit the photos in Photoshop, and then put them in folders with whatever custom name you want to give them, then what is the benefit of using Lightroom? You can do all of this WITHOUT Lightroom. You keep explaining that your intended goal is to use Photoshop and folders/file names, and this is a goal which AVOIDs all benefits of Lightroom. I can't understand what you think the benefits of using Lightroom are for you.
    It is starting to sound to me like Lightroom is not the right software for you.
    Some people want to see a movie on their TV and are able to watch a DVD (not all!). Flickr seems to be a solution for movies in a big size (many GBs) to share them with friends (?)
    You haven't mentioned this before, and you should check the rules on Flickr regarding how long a video you can upload.

  • I recently changed my apple ID but my previous apple ID is associated with my icloud account. I'm setting up my new iphone 6 and cannot complete the set up until I can sync my icloud account. Does anyone know how to change the icloud id?

    I recently changed my apple ID but my previous apple ID is associated with my icloud account. I'm setting up my new iphone 6 and cannot complete the set up until I can sync my icloud account. Does anyone know how to change the icloud id?

    Do the following:
    Make sure you are signed into iMessage and FaceTime with your current ID.  If they are signed into the old ID, go to Settings>Messages>Send & Receive and Settings>FaceTime, tap the ID, sign out, then sign back in with your current ID.
    Then temporarily recreate the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  (You should not have to verify the old email account so it doesn’t matter if you no longer have access to it.)  Now go to Settings>iCloud, turn off Find My iPhone and enter your current password when prompted (even though it prompts you for the password for your old ID).  Then go to Settings>iCloud, tap Sign Out and choose Delete from My iPhone when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address back to the way it was.  Now you can go to Settings>iCloud and sign back in with your current iCloud ID and password (your data will download back to your phone).

  • How to change the description in CV03(N) transaction ?

    How to chnage the long test description in CV03N transaction  
    Posted: Jan 10, 2010 11:36 PM     Edit          Reply 
    Hi Friends,
    I have a requirement as below:
    1. Excecute the transaction CV04N
    2. Give Document value(s) and Excecute
    3. Double click on any row on the ALV generated which takes you to CV03N transaction
    4. Here in the additional data Tab, I need to concatenate Subject1,Subject3,Subject3 values and this value need to be put Description in the Document data Tab.
    Ex:
    If Subject1 = Test1, Subject2 = Test2 and Subject3 = Test3 then i have to change the description as Test1
    Test2 Test3 When the change followed by save is clicked.
    Please drop your suitable answers ASAP.
    Below is the code i have used using the BADI 'DOCUMENT_MAIN01' and the method 'AFTER_SAVE'.
    Below is the code :
      TYPES:
        BEGIN OF ty_ausp,
          objek TYPE ausp-objek,        "Key of object to be classified
          atinn TYPE ausp-atinn,        "Internal characteristic
          atwrt TYPE ausp-atwrt,        "Characteristic Value
        END OF ty_ausp.
      DATA:
        w_objek      TYPE ausp-objek,
        w_ltext(120) TYPE c,
        w_name       TYPE thead-tdname,        "Name
        wa_drat      TYPE drat,
        wa_ausp      TYPE ty_ausp,
        wa_tline     TYPE tline,
        wa_draw      TYPE draw,
        t_ausp       TYPE STANDARD TABLE OF ty_ausp,
        wa_thead      TYPE thead,              "SAPscript: Text Header
        t_tline      TYPE STANDARD TABLE OF tline.
      CLEAR w_objek.
      w_objek+0(3)  = draw-dokar.
      w_objek+3(25) = draw-doknr.
      w_objek+28(2) = draw-dokvr.
      w_objek+30(3) = draw-doktl.
      SELECT objek                         " Key of object to be classified
             atinn                         " Internal characteristic
             atwrt                         " Characteristic Value
        INTO TABLE t_ausp
        FROM ausp
       WHERE objek = w_objek
         AND atinn IN ('0000000858', '0000001038', '0000001039' ).
      IF sy-subrc = 0.
        SORT t_ausp BY objek atinn.
      ENDIF.                               " IF sy-subrc = 0.
      LOOP AT t_ausp INTO wa_ausp.
        CONCATENATE w_ltext wa_ausp-atwrt INTO w_ltext SEPARATED BY space.
      ENDLOOP.                             " LOOP AT t_ausp INTO wa_ausp.
      CLEAR w_name.
      MOVE draw TO wa_draw.
      w_name+0(3) = wa_draw-mandt.
      w_name+3(3) = wa_draw-dokar.
      w_name+6(25) = wa_draw-doknr.
      w_name+31(2) = wa_draw-dokvr.
      w_name+33(3) = wa_draw-doktl.
      REFRESH t_tline.
      CALL FUNCTION 'DELETE_TEXT'
        EXPORTING
        CLIENT                = SY-MANDT
          id                    = 'LTXT'
          language              = 'E'
          name                  = w_name
          object                = 'DRAT'
        savemode_direct        = ' '
        textmemory_only        = ' '
        local_cat              = ' '
       EXCEPTIONS
         not_found              = 1
         OTHERS                 = 2.
      IF sy-subrc <> 0.                    "IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.                               "IF sy-subrc <> 0.
      wa_tline-tdformat = '='.
      wa_tline-tdline = w_ltext.
      APPEND wa_tline TO t_tline.
      wa_thead-tdobject = 'DRAT'.
      wa_thead-tdname = w_name.
      wa_thead-tdid = 'LTXT'.
      wa_thead-tdspras = 'E'.
    wa_thead-tdtitle = w_ltext.
      DATA:
        w_function TYPE c,
        wa_newheader  TYPE thead.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
         CLIENT                = SY-MANDT
          header                = wa_thead
          insert                = ' '
         SAVEMODE_DIRECT        = 'V'
        OWNER_SPECIFIED       = ' '
        LOCAL_CAT             = ' '
       IMPORTING
         function              = w_function
         newheader             = wa_newheader
        TABLES
          lines                 = t_tline
       EXCEPTIONS
          id                    = 1
          language              = 2
          name                  = 3
          object                = 4
          OTHERS                = 5.
      IF sy-subrc <> 0.                    "IF sy-subrc <> 0.
    Raise message
      ENDIF.
      REFRESH t_tline[].
      CLEAR wa_thead.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
        CLIENT                        = SY-MANDT
          id                    = 'LTXT'
          language              = 'E'
          name                  = w_name
          object                = 'DRAT'
        ARCHIVE_HANDLE                = 0
        LOCAL_CAT                     = ' '
       IMPORTING
         header                        = wa_thead
        TABLES
          lines                         = t_tline
       EXCEPTIONS
         id                            = 1
         language                      = 2
         name                          = 3
         not_found                     = 4
         object                        = 5
         reference_check               = 6
         wrong_access_to_archive       = 7
         OTHERS                        = 8.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Please help why it is not getting effeted OR
    Give a differnt way of Solving this issue.
    Please drop your suitable answers ASAP.
    Regards,
    Rama.P

    Hi Claud,
    Go to SPROSRM ServerCross App Basic SettingsNumber rangesDefine transaction typesSelect BUS2200 and double click on transaction typesHere you will see BID (transaction type)--Just double click on this and in the screen that follows change the description.
    PS: The system will generate a transport request.
    Regards,
    Nikhil

  • How to change the lenth of existing field in sap standard table

    Hi all,
    can anybody help,my requirement is, how to change the length of existing field in sap standard table....
    thanks in advance..

    Which field are you thinking of in particular?  Are you wanting to increase or decrease the length?
    Some fields are used so extensively that a change to their length will mean adjusting many tables, some of them potentially very large, and hence taking a long time to adjust.
    Some standard SAP programs expect certain fields to be of specific lengths and won't work if the length is changed.
    Some screens could cease to work.
    If you decrease length, then you could lose data.
    matt

  • How to change the images dynamically in a table.

    Hai,
                     How to change the images dynamically in a table based on the condition in webdynpro abap.
    Edited by: Ravi.Seela on Oct 13, 2011 2:17 PM

    This has been much discussed earlier. Do search posts.
    For your scenario i would do the following.
    inside your node which is binded to the table, i create a new node image with cardinality 1 ..1 and a attribute called path of type string.
    create a  supply function for the node image .
    Supply method now has a Element (Parent element ) and node.
    Based on your record in element, set the right image source to path attribute and bind the node.
    This will make sure that the framework calls the image supply function for every row in a table.

  • How to change the Hello Portlet in Jetspeed2 Demo

    hi ppl,
    I am having a big problem..
    I can't change the portlet title, hello portlet, in the jetspeed 2 demo.
    The strange things is that i am able to change the title of the pickANumber portlet.
    @ Portlet.xml
    <portlet id="PickANumberPortlet">
    <init-param>
    <name>ViewPage</name>
    <value>/WEB-INF/demo/simple/PickANumber.jsp</value>
    </init-param>
    <init-param>
    <name>HelpPage</name>
    <value>/WEB-INF/demo/simple/PickANumberHelp.jsp</value>
    </init-param>
    <init-param>
    <name>EditPage</name>
    <value>/WEB-INF/demo/simple/PickANumberEdit.jsp</value>
    </init-param>
    <portlet-name>PickANumberPortlet</portlet-name>
    <display-name>Pick a number game</display-name>
    <portlet-class>org.apache.jetspeed.demo.simple.PickANumberPortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <supports>
    <mime-type>text/html</mime-type>
    <portlet-mode>VIEW</portlet-mode>
    <portlet-mode>HELP</portlet-mode>
    <portlet-mode>EDIT</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <supported-locale>fr</supported-locale>
    <supported-locale>ja</supported-locale>
    <resource-bundle>org.apache.jetspeed.demo.simple.resources.PickANumberResources</resource-bundle>
    <portlet-info>
    <title>Change TITLE</title>
    </portlet-info>
    <portlet-preferences>
    <preference>
    <name>TopRange</name>
    <value>100</value>
    </preference>
    </portlet-preferences>
    </portlet>
    See.. i just replace that data in the portel-info/title.. and it changes the title in the pickANumber portlet change..
    But strange! i can't do the same way for the hello portlet
    Can someone tell me how to change the title in the hello portlet...
    Pls help.. i am running out of time!

    The hello portlet uses the title string in property file, thus you may need to modify the file "demo\WEB-INF\classes\org\apache\jetspeed\portlet\helloworld\resources\HelloWorldResources_en.properties" to change its title.

  • How to change the angle of a gradient layer without changing anything else?

    How to change the angle of a gradient layer without changing anything else?
    When I try it myself my whole gradient turns black.

    To add to the above, you can not just set the angle. If you want to use other existing settings you need to get them from the layer. The code in that other thread shows one way to get them.
    But if you do not need the existing values for any other reason you can get the descriptor for the layer, make a duplicate of it with all the settings and just overwrite the ones you want to change.
    This is one way to just change the angle while keeping the other existing settings.
    // helper function for working with descriptors
    function getProperty( psClass, psKey, index ){// integer:Class, integer:key
        var ref = new ActionReference();
        if( psKey != undefined ) ref.putProperty( charIDToTypeID( "Prpr" ), psKey );
        if(index != undefined ){
            ref.putIndex( psClass, index );
        }else{
            ref.putEnumerated( psClass , charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        try{
            var desc = executeActionGet(ref);
        }catch(e){ return; }// return on error
        if(desc.count == 0) return;// return undefined if property doesn't exists
        var dataType = desc.getType(psKey);
        switch(dataType){// not all types supported - returns undefined if not supported
            case DescValueType.INTEGERTYPE:
                return desc.getInteger(psKey);
                break;
            case DescValueType.ALIASTYPE:
                return desc.getPath(psKey);
                break;
            case DescValueType.BOOLEANTYPE:
                return desc.getBoolean(psKey);
                break;
            case DescValueType.BOOLEANTYPE:
                return desc.getBoolean(psKey);
                break;
            case DescValueType.UNITDOUBLE:
                return desc.getUnitDoubleValue(psKey);
                break;
            case DescValueType.STRINGTYPE:
                return desc.getString(psKey);
                break;
            case  DescValueType.OBJECTTYPE:
                return desc.getObjectValue(psKey);
                break;
            case  DescValueType.LISTTYPE:
                return desc.getList(psKey);
                break;
            case  DescValueType.ENUMERATEDTYPE:
                return desc.getEnumerationValue(psKey);
                break;
    function duplicateDescriptor( descriptor ) {
        var newDescriptor = new ActionDescriptor;
        newDescriptor.fromStream( descriptor.toStream() );
        return newDescriptor;
    function localizeDescriptor( desc ) {
        var stream, pointer, zStringLength, zstring, localized_string, newZStringLength, previousStream, followingStream, newDesc;
        stream = desc.toStream();
        while( true ) {
            pointer = stream.search(/TEXT....\x00\$\x00\$\x00\$/);
            if( pointer === -1 ) {
                break;
            zStringLength = getLongFromStream( stream, pointer + 4 );
            zstring = readUnicode( stream.substr( pointer + 8, ( zStringLength - 1 ) * 2) );
            localized_string = ( localize( zstring ) ) + '\u0000';
            newZStringLength = localized_string.length;
            previousStream = stream.slice( 0, pointer);
            followingStream = stream.slice( pointer + 8 + zStringLength * 2);
            stream = previousStream.concat( 'TEXT', longToString( newZStringLength ), bytesToUnicode( localized_string ), followingStream );
        newDesc = new ActionDescriptor();
        newDesc.fromStream( stream );
        return newDesc;
    function getShortFromStream( stream, pointer ) {
        var hi, low;
        hi = stream.charCodeAt( pointer ) << 8 ;
        low = stream.charCodeAt( pointer + 1 );
        return hi + low;
    function getLongFromStream( stream, pointer ) {
        var hi, low;
        hi = getShortFromStream( stream, pointer) << 16;
        low = getShortFromStream( stream, pointer + 2);
        return hi + low;
    function readUnicode( unicode ) {
        var string = "";
        for( i = pointer = 0; pointer < unicode.length; i = pointer += 2) {
            string +=String.fromCharCode( getShortFromStream( unicode, pointer ) );
        return string;
    function longToString( longInteger ) {
        var string;
        string = String.fromCharCode( longInteger >>> 24 );
        string += String.fromCharCode( longInteger << 8 >>> 24 );
        string += String.fromCharCode( longInteger << 16 >>> 24 );
        string += String.fromCharCode( longInteger << 24 >>> 24 );
        return string;
    function bytesToUnicode( bytes ) {
        var unicode = "", char_code, charIndex;
        for( charIndex  = 0; charIndex < bytes.length; charIndex ++ ) {
            char_code = bytes.charCodeAt( charIndex );
            unicode += String.fromCharCode(char_code >> 8 ) +  String.fromCharCode( char_code & 0xff );
        return unicode;
    function setGradientAdjustmentAngle( angle ) {
        var adjustmentDesc = getProperty( charIDToTypeID("Lyr "), charIDToTypeID( 'Adjs' ) ).getObjectValue(0);
        var newAdjustmentDesc = duplicateDescriptor( adjustmentDesc );
        newAdjustmentDesc.putUnitDouble( charIDToTypeID('Angl'), charIDToTypeID('#Ang'), angle );
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( stringIDToTypeID('contentLayer'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc.putReference( charIDToTypeID('null'), ref );
        desc.putObject( charIDToTypeID('T   '), stringIDToTypeID('gradientLayer'), newAdjustmentDesc);
        executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
    var newAngle = 45;
    setGradientAdjustmentAngle( newAngle );

Maybe you are looking for

  • Error message 11556 wehn trying to create a ring tone

    Can anyone help me to sort this problem out? I am new to this and cannot create a ring tone from a song that i have purchased. I am logged in to the i tunes store, but i get an error message that says that i can't connect. Several others seem to have

  • Two 27 cinema displays (not thunderbolt)

    I have two non thunderbolt 27" cinema displays (2010).  I want to attach them to a mac mini, is that possible? Thanks, Daniel

  • Consolidation monitor

    Hi Experts, I have a problem with the consolidation monitor. The standard BCS content was activated and the customization was completed. When i run the consolidation monitor, there is no hierachy displayed but the sequence of task heading columns are

  • Error 8 while loading the data from the souce system

    Hi Gurus Every day we are loading some data from one of our souce systems through process chain But today all the loads failed complaining about error 8 while extacting the data connection to source system is fine we have the problem while loading ma

  • I just downloaded the updates for my iPad 2 and cannot open aps or install new aps.

    I just downloaded the updates for my iPad 2.  Now I cannot open my aps.  I have tried rebooting and installing a new ap.  Still doesn't work.  Also cannot choose the "install" under getting a new ap.  It's totally frozen.  Any ideas?