How to assign a Label object?

This my code to get all the objects in the spread.

void SnipRunActionComponent::SetObjectID (IHierarchy * parent)

{

Int32 childCount = parent-> GetChildCount();

for (int32 /IndexEnfant = 0; childIndex < childCount; /IndexEnfant ++)

{

InterfacePtr < IHierarchy > child (parent-> QueryChild (childIndex));

How the value label child

SetObjectID (child);

}

}

I want to SET label for all objects:

TextFrame if: Label = "-TXT" + index

If polygon: label = "PLG -" + index

If Image: Label = '-IMG' + index...

How to check the type of object and sets the label of the objects?

Thank you all.

Hi daitranthanhoa,

to set a label, you can use the IScriptUtils::SetScriptingTag function.

To check the type of object, you can use IPageItemTypeUtils functions.

Markus

Tags: InDesign

Similar Questions

  • How to assign the new object to the class?

    So I don't know how to do this:

    var classexample:objectexample = new objectexample();

    But I try to make a game where you can select a character and that the object of the selected character assigned to the class, but I don't know how to do so that he can change. AFAIK I can assign only once and then that's it, I don't know how to change. Is there a way how?

    Example, I know that this does not work, but I would like to do something like this:

    {if(Character=="example1")}

    var classexample:objectexample1 = new objectexample1();

    }

    {if(Character=="example2")}

    var classexample:objectexample2 = new objectexample2();

    }

    Any ideas?

    I got it to work!

    All I had to do has been implemented the initial var of the object, so:

    var p1;

    Then, if the variable is changed in the selection of characters, all I had to do was:

    {if(p1_character=="character1")}

    P1 = new character1();

    }

    BAM!

  • How to assign variables itemrender in a global public variable of my application.


    Hi friends,

    How to assign values to render internal elements in a global public variable. You can see example below.

    List an itemrender, the itemrender breast I use the data grid. The dataGrid control have itemrender.now I tried the values to assign public variable in my application data grid itemrender, but is it from the error... How can I slove u this problem Any One can help me.

    Example:

    public var myData:arrayCollection;

    < mx:List variableRowHeight = "true" dataChange = "validateNow ()" width = "900" id = "Lst_userlist" verticalScrollPolicy = "off" horizontalScrollPolicy = "off" "
    buttonMode = "true" >

    < mx:itemRenderer >

    < fx:Component >

    < mx:VBox paddingTop = "-5" horizontalScrollPolicy = "off" verticalScrollPolicy = "off" >

    < fx:Script >
    <! [CDATA]

    override public function set data(value:Object):void
    {
    ------

    -----
    }

    []] >

    < / fx:Script >

    < mx:VBox id = "vbox_grid" horizontalScrollPolicy = "off" verticalScrollPolicy = "off" width = paddingLeft '890' = "10" paddingTop = "5".

    backgroundColor = "#317152" color = "#FFFFFF" >

    < mx:DataGrid visible = "false" includeInLayout = "false" height = "100%" id = "membershipGrid" alternatingItemColors = "[#DCDCDC, F8F8FF #]".

    "5" paddingLeft = horizontalScrollPolicy = "off" color = 'black '.
    horizontalGridLines = "false" verticalScrollPolicy = 'auto' verticalGridLines = "false" rowHeight = "25".
    borderSkin = "{null}" showHeaders = 'true' borderVisible = "false" dataProvider = "{data.dataCollection}" width = "900" > "

    < mx:columns >

    < mx:DataGridColumn width = "180" headerText = "Name" minWidth = "150" sortable = "true" wordWrap = "true" >
    < mx:itemRenderer >
    < fx:Component >

    < mx:HBox horizontalScrollPolicy = "off" >

    < fx:Script >
    <! [CDATA]

    override public function set data(value:Object):void
    {
    -----

    -----

    }

    function Click_Name (): void
    {

    outerDocument.myData = data;  Here the error came

    }

    []] >

    < / fx:Script >
    < mx:Image id = "fileimg" buttonMode = "true" toolTip = "This is organization at the home page of the user" / >
    < s:Label id = "lbl_Gridcloumn_name" width = "200" buttonMode = "true" textDecoration = "underline" click = "Click_Name ()" / > "

    < / mx:HBox >
    < / fx:Component >

    < / mx:itemRenderer >
    < / mx:DataGridColumn >

    < / cloumn >

    < / datagrid >

    Error:

    MyData property possibly access not defined through a reference with static type com.istmanagement.views:ProgramAcessRights_ComponentInnerClass3.

    Thank you

    Mamoudou R.

    Have you tried outerDocument.outerDocument.myData?

  • How to assign read only to vm so accessible by console web vcenter

    Hello

    I want to know, how to assign the read-only for vm so accessible by browser web vcenter Web console to say?

    I know that we can assign permissions on each individual object. Is it true do us, if the virtual machine is accessible by vCenter Web Console (i.e. the Web Browser access)

    Thanks in advance

    all the permissions via vCenter using the vSphere Client or Web Client will be the same.  If you have applied using the vSphere Client, is there nothing more to do.

  • How to assign values to the nested table and passes as a parameter for the procedure?

    How to assign values to the nested table and passes as a parameter for the procedure?

    Here are the object and its type

    create or replace type test_object1 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type1 is table of the test_object1;


    create or replace type test_object2 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type2 is table of the test_object2;


    GRANT ALL ON test_object1 to PUBLIC;


    GRANT ALL ON test_type1 to PUBLIC;


    GRANT ALL ON test_object2 to PUBLIC;


    GRANT ALL ON test_type2 to PUBLIC;

    Here is the table object type:

    create the table test_object_tpe
    (
    sl_num NUMBER,
    Description VARCHAR2 (100),
    main_val1 test_type1,
    main_val2 test_type2
    )


    NESTED TABLE main_val1 STORE AS tot1
    NESTED TABLE main_val2 STORE AS earlier2;


    -----------------------------------------------------------------------------------------------------------

    Here is the procedure that inserts values into the nested table:

    PROCEDURE INSERT_TEST_DATA (sl_num in NUMBER,
    Description in VARCHAR2,
    p_main_val1 IN test_type1,
    p_main_val2 IN test_type2
    )
    IS
    BEGIN

    FOR rec in p_main_val1.first... p_main_val1. Last
    LOOP

    INSERT INTO xxdl.test_object_tpe
    (
    sl_num,
    Description,
    main_val1,
    main_val2
    )
    VALUES
    (
    sl_num
    description
    test_type1 (test_object1)
    p_main_val1 .val1 (CRE),
    p_main_val1 .val2 (CRE),
    p_main_val1 .val3 (rec)
    )
    )
    test_type2 (test_object2 (p_main_val2 .val1 (CRE),
    p_main_val2 .val2 (CRE),
    p_main_val2 .val3 (rec)
    )
    )

    );

    END LOOP;

    commit;

    END INSERT_TEST_DATA;

    -------------------------------------------------------------------------------------------

    Here are the block anonymoys what values attributed to the object type and pass values in the procedure:

    Set serveroutput on;

    declare

    p_sl_num NUMBER: = 1001;
    p_description VARCHAR2 (50): = 'Test Val1;

    inval1 test_type1: = test_type1();
    inval2 test_type2: = test_type2();

    Start


    inval1 (1) .val1: = "testx1";
    inval1 (1) .val2: = "testx2";
    inval1 (1) .val3: = "testx3";

    inval2 (1) .val1: = "testy1";
    inval2 (1) .val2: = "testy2";
    inval2 (1) .val3: = "testy3";

    CSI_PKG. INSERT_TEST_DATA (sl_num = > p_sl_num,)
    Description = > p_description,
    p_main_val1 = > inval1,
    p_main_val2 = > inval2
    );

    end;
    /
    Someone can correct me.

    Thank you
    Lavan

    Thanks for posting the DOF and the sample code but whenever you post provide your Oracle version 4-digit (result of SELECT * FROM V$ VERSION).
    >
    How to assign values to the nested table and passes as a parameter for the procedure?
    >
    Well you do almost everything bad that could be hurt.

    Here is the code that works to insert data into your table (the procedure is not even necessary).

    declare
    p_sl_num NUMBER := 1001;
    p_description VARCHAR2(50) := 'Testing Val1';
    inval1 test_type1 := test_type1();
    inval2 test_type2 := test_type2();
    begin
    inval1.extend();
    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    inval2.extend();
    inval2(1) := test_object2('testy1', 'testy2', 'testy3');
    
    INSERT INTO test_object_tpe
    (
    sl_num,
    description,
    main_val1,
    main_val2
    )
    VALUES
    (p_sl_num, p_description, inval1, inval2);
    commit;
    end;
    /
    

    See example 5-15 making reference to an element of nested Table Chapter 5 using PL/SQL collections and records in the PL/SQL doc
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/Collections.htm#CJABEBEA

    1. you don't even have the procedure because it is a simple INSERTION in the table you can do directly (see my above code)

    inval1(1).val1 := 'testx1';
    

    Since you have not yet created all the elements, there is no element 1 "inval1". You need EXTEND the collection to add an element

    inval1.extend();
    

    And then, there is an empty element, but "inval1" is a container for objects of type 'test_object1' not for scalars as "val1", "val2", and "val3".
    If you can not do

    inval1(1).val1 := 'testx1';
    

    You must create an instance of 'test_object1 '.

    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    

    And so on for the other collection

    You don't need the procedure (as my code example shows), but once you fill in the variables correctly it will work.

  • How to load a library object by clicking on a button?

    How to load and unload an object (such as an image) to our library by simply clicking a button, and then unload it by clicking another button using as2.

    Thanks for the help

    the button of the assign an instance name (for example, btn) and assign to the object of the library one ID link - click with the right button on the symbol in the library > click Properties > check export for actionscript > give a connection id (for example, mc_id), and then click ok.  then use:

    var tl:MovieClip =;

    {btn.onRelease = function ()}

    tl.attachMovie ("mc_id", "mc", tl.getNextHighestDepth ());

    }

    to remove, mc.removeMovieClip ();

  • How scam assignment affects iPad and iPhone

    How scam assignment affects iPad and iPhone

    UH... What? Could you elaborate?

  • Satellite L300-2 - How to assign a new email address when registering

    I am writing this message on behalf of the end user of our Toshiba.

    She bought the TOSHIBA Satellite L300-2This and because she didn't have an internet connection at home, I order him to register his new Toshiba by our care.
    I took his laptop and I made a mistake by e-mail. I wrote the wrong email address. How to assign a new email address?

    Best regards

    SAMO Praprotnik

    Hello Samo

    If you have registration problems, please contact Toshiba [email protected]

    You should contact Toshiba in your country. Details are at http://eu.computers.toshiba-europe.com/innovation/contact_toshiba.jsp

    Explain what is the problem and I hope someone will help you.

    Post edited by: ADMIN

  • How to assign a keyboard macro to a keyboard shortcut

    Does anyone know how to assign a keyboard macro to a keyboard shortcut?  I'm spoiled CodeWright by, if there is no selected item only when a 'Ctrl c' is issued, CodeWright automatically copy the line that the cursor is located. I'm trying to replicate this feature and the only way I can see it's a macro of the "copy line" keyboard right click on command.  Any thoughts?

    NABI:

    Looks like you're talking about modifying the source code.  I don't know a way to create your own keyboard macro.  You can change the shortcut key assignments (CVI 9.1: Options-> change the shortcut keys), but it seems that you need more than that.

    To make your example (a line no copying), I often have to press Ctrl-O, to cut the current line, immediately followed by a Ctrl-V to restore the original line.  This line is still in the buffer zone of the Clipboard, so I can go where I want the copy of the original line and press Ctrl + V.

    In the event that you do not change the code but create shortcuts for your users in your application, you can catch the EVENT_KEYPRESS in your panel or command callback callback and check for key code combinations.  See the multikey.prj example program comes with CVI and the CVI for EVENT_KEYPRESS help.

  • How can I copy some object without it being related to the original?

    When I copy a pushbutton to Lookout 5.1 it is linked to the original.  If I change the name of the newly pasted key (or any other property) it changes it and the original object.

    How to create a pasted object that has the same properties as the original without the 2 related?  Or how to break the link?

    If you select a displayed object, then do a copy & paste (ctrl + c ctrl + v, copy & paste in the menu drop-down change or hold down the SHIFT key & drag) you make a copy of the original object.  If you want a new object created, select the display object and press ctrl (not updated) & drag.  Or use Object Explorer when ctrl + c ctrl + v or right click contextual menu to create new objects, but not display.

  • How to assign the TAB sequence?

    Hey...

    Can someone tell me how to assign tab...? I mean if I have a few buttons and controls on the front panel are trying to view the login Panel; whenever I press TAB on the keyboard, I want that the selection of buttons & controls should be in order... Can someone tell me how...?

    See the order of Edit\Tabbing, and with the right button on the control of Navigation Advanced\Key

    See you soon!

  • How to assign different drive letter in the new hard drive?

    My hard drive for OS window is broken, which is the C: drive, so I buy a new HARD drive, but my original D: drive become a C: drive and new HARD drive is assigned with drive E:, I can't restore my Ghost in new HARD drive image, because the image is restored in the C: drive only.

    Anyone have any suggestions on how to assign different drive letter under cmd?

    Thanks in advance for your suggestions

    Hi oem7110,

    Follow the steps in the article.

    How to change drive letter assignments in Windows XP

    How automatically assign a drive letter by using the Diskpart.exe command on a Windows Server 2003-based computer or on a Windows XP-based computer

  • How to calculate the 2 objects QTime?

    Hello

    I have 2 QTime object.

    QTime q1 = new QTime (3,0; 0)

    QTime q1 = new QTime (2,30,0);

    How can I calculate 2 object? I mean q1 - q2.

    I thank in advance

    mSecsTo gives you the difference in milliseconds during which between two objects of QTime

  • How to assign a constant name 'letter' to the USB port?

    My Compaq Presario with Windows 7 has two USB ports on the front and on the back.  I use both to the front to connect a drive hard ext to the back, usb flash drives and a camera. Everytime Iplug in the disk hard ext, the PC assigns a letter to port such as J.  The next time I plug the camera into the same port, the PC gives it a different letter and I need to go back up and reconfigre Norton where to back up.  How to assign a constant name 'letter' to the USB port?

    I think that the previous answer may have been cut off, but they were right. You assign it a letter on the USB port, you assign a letter to the device. With your drive plugged, if you right-click on the computer icon and select manage you will arrive at the computer management screen. Click the disk management icon and you should see your drive listed. Right click on that and you should see a choice to change the drive letter and path. From there, click change and select a drive letter for your device.

  • How to set a label/text for an ImageButton control?

    Hi guys,.

    ImageButton allows you to set the background for three different States images: defaultImage, pressedImage and disabledImage. But how to define the label for her? I want an ImageButton Label with three different background images.

    Help, please

    Thank you

    Hello

    Create a custom using DockLayout button. Is there a code example in this thread:

    http://supportforums.BlackBerry.com/T5/Cascades-development/how-to-set-click-event-into-custom-Butto...

    Place it in a separate qml file, for example CustomButton.qml.

    Then, it can be used like this:

    CustomButton {... properties...}

Maybe you are looking for