How can i create n display label dynamically

Hai, I want to create a label dynamically, meant when i pressed a button once one label generated for the next click of button another label. like this,
so i need to know how to create and display a label.
regards

Hi,
Armin's solution already answers your question.
Create a value attributre CreatLabel..of type boolean and set it to false in init.
Then in the button's action handler ,set it to true.
And write this code in wdDoModifyView.
In wdDoModifyView():
if ( wdContext.currentContextElement().getCreateLabel() ){  /* create new label with automatic ID */  IWDLabel label = (IWDLabel) view.createElement(IWDLabel.class, null);  /* add label to some container */  someContainer.addChild(label);  /* reset creation flag */  wdContext.currentContextElement().setCreateLabel(false);}
You should not create view element outside wdDoModifyView. So we write this in the wdDoModify view..a nd control when it is executed.. by means of setting CreateLabel value attribute..
Regards
Bharathwaj
Message was edited by: Bharathwaj R

Similar Messages

  • How can I create a new label using Pages and Avery Labels products?

    How can I create a new label using Avery LAbels and PAges on an imac?

    Contacts prints to Avery labels.
    Otherwise just open the appropriate Word template from Avery's website, in Pages.
    Peter

  • How can I create a new label?

    Please, I would like to know how can I create a new label in Bridge?

    Contacts prints to Avery labels.
    Otherwise just open the appropriate Word template from Avery's website, in Pages.
    Peter

  • How can i hide and display columns dynamically

    Hi,
    Is such a thing possible in BeX.?????
    Following is the reqiurement.
    Number of columns with the forecast values are to be from Forecast 1&2 till the month before the chosen selection. In order for us to calculate the variance, you should have 2 forecast values. 
    If March is chosen please show Forecast 1& 11, Forecast 2&10
    If April is chosen please show Forecast 1& 11, Forecast 2&10, Forecast 3&9.
    If November is chosen please show Forecast 1& 11, Forecast 2&10, Forecast 3&9, Forecast 4&8, Forecast 5&7…………..Forecast 10&2.
    Please guide how can this be achieved.
    Regards,
    Rathy

    Hi,
    well at least you can use some vba macros to achieve that. Best would be to have a static query embedded in a workbook and a sheet where the results are displayed as copies from the query via a macro.
    regards
    Siggi

  • How can I create an action that dynamically appends the filename, when saving?

    I have created a batch file that watches a folder for .jpgs. When a jpg is found, it runs a Photoshop droplet that resizes and exports six different sizes of the same image, then closes the image. This all works fine, however the step I am stuck on is getting Photoshop to dynamically rename the files. What I mean is when I drop in a file named something like filename.jpg, I want the images to be named according to the width of resize. Exported files should be filename-1400.jpg, filename-1200.jpg, filename-800.jpg, etc. filename2.jpg would become filename2-1400.jpg, filename2-1200.jpg, filename-800.jpg. As it is now, Photoshop names the files the same names I saved them as, while creating the actions.
    I am using Photoshop CS6.

    What OS and verson of AI? Along with what Myle said, in the Actions panel is a column which allows the dialogs to be turned on/off. Make sure this is unchecked at all levels of the Action.

  • How do you create sequential numbered labels ?

    How can I create sequentially numbered labels with pages?

    Would be useful to know if you are asking about labels whose contents is the same except the number or if the main part of the label is also variable.
    In second case what's the source of the datas ?
    Yvan KOENIG (VALLAURIS, France) jeudi 15 septembre 2011 17:02:27
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • How can i create a button with a dynamic picture?

    How can i create a button with a dynamic picture using
    mcLoader.loadClip
    I did create one with it doesnt seem to be working. It loses
    all its
    functions (eg onPress onRelease)
    Thanks

    I solved thep roblem anyway creating a mc.. then creating
    another MC withing
    the first MC and i change the picture on the second MC. And i
    apply the
    propierities to the first MC , and works
    If i have troubles with mu sistem on the future I will use
    yours!
    Thanks!
    "the fleece" <[email protected]>
    escribi� en el mensaje
    news:e67i88$jlf$[email protected]..
    > the image loading will remove any properties or
    functions the mc had.
    >
    > you need to apply them in the onLoadInit function
    >
    > mclListener.onLoadInit = function(target_mc:MovieClip) {
    > target_mc.onRollOver=blah blah
    > };
    > var image_mcl:MovieClipLoader = new MovieClipLoader();
    > image_mcl.addListener(mclListener);
    > image_mcl.loadClip(blah, blahblah);
    >
    >

  • How can I create a slideshow that depicts only a version of a photo rather than the original? Since the original and new versions are saved together, the aperture slideshow often choices the original rather than the desired version to display/

    How can I create a slideshow that depicts only a version of a photo rather than the original?   Since the original and new versions are saved together, the aperture slideshow often choices the original rather than the desired version to display.

    There are two things we use the name "Slideshow" for in Aperture:  a Slideshow Album, used for making Slideshows, and the Slideshow that is made.  (Imho, it is a design mistake to not call the containers used to create Slideshows, Books, etc., "Albums".)
    The Slideshow will use the Album Pick from any Stack.  A good way to use Aperture is to promote the Image you want to regularly use (such as, for example, a Version with adjustments) to the top of the Stack.  This makes it the Stack Pick, and will be the default Album Pick.  If you haven't done that, you can still change the Album Pick for any Stack in a Slideshow Album.  Expand your Stack(s), select the Image in each Stack that you want to be the Album Pick (and thus shown in the Slideshow), and "Stacks➞Set Album Pick".  (Note the keyboard shortcut; there is also a Toolbar icon for this.)  The change is immediate.  The Slideshow will always show the Album Pick (or, if there is not one, the Stack Pick) for every Stack in your Slideshow Album.

  • How can we create dynamic pie chart in jsp

    hi im a new jsp programmer and i just want to know how can i create dynamic pie chart in jsp

    http://sourceforge.net/projects/jfreechart
    - Saish

  • How can I delete or rename labels I created in my gmail n

    How can I delete or renames labels I created to keep incoming emails?

    You can't delete an iCloud account. You can sign-out, or remove the account from devices, computer or related services.

  • How can I create DVD Label using Photoshop Elements 10?

    How can I create DVD label using Photoshop Elements 10?
    Richard

    You can create the design for a DVD label in Create>More Options. Once you have the label set up, you would copy it to a template for the labels you plan to use. (The PSE template makes one label, while most printed labels are two-up.)

  • How can I create mailing labels? I'm used to windows' label process

    How can I create mailing labels using pages?  I'm very familiar with window's way of doing this and can't find a tool for labels.  please help!

    Post in the Pages froumwhere those experts are:
    https://discussions.apple.com/community/iwork/pages

  • Using pages, how can I create a label run from contacts

    Using pages, how can I create a label run from contacts?

    You mean you want to use XML to create a flat file, right? Not that the database is using XML in some way? If so, why do you want to use XML?

  • How can we create a Collective search help

    Hi all sap experts,
    How can we create a Collective search help on field “OBJECT” which allows to search tables
    o   ARCH_OBJ
    o   TOJTB (Search help: H_TOJTB)
    on 2 tabs.
    Thanks,
    Basu

    Hi
    1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
    2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
    3)An elementary search help defines the standard flow of an input help.
    4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
    5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
    6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
    CREATION:
    Go to SE11  Tcode
    select search help
    give the 'z' search help name and create
    select the selection method ur table name eg : 'mara'
    dialog module 'display value immediately'.
    add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
    where left position when displaying and spos = search position
    and then save and activate ..
    See the links:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    Search Help Exits:
    Re: dynamic values for search help
    Re: Dynamic search  help
    Reward points for useful Answers
    Regards
    Anji

Maybe you are looking for

  • Transferring iTunes library to new computer with Windows Vista OS

    Using the Apple Support Guide I have tried to move my iTunes library to my new laptop using my iPod as the back up device. When I went to copy my music to my new computer by dragging the iTunes folder out of the Music folder to the desktop, a message

  • Primary key field problem in DBSchema Wizard

    Hi, I am using Sun ONE studio 4 update 1, EE. I have generated schema using the Database Schema Wizard. The generated table representations does not recognise the primary key fields so I can not map my CMP to any table :-( Is this a bug? because I ha

  • Unloading point not transmited to vendor through EDI in SA

    Hi , Unloading point details are not transmited to vendor for perticular material in SA . What will be the possible reason for this ? . It was gone as blank in ASN . But in message details auto unloading point details are their . RB Edited by: Raghav

  • Update print-dependent data

    When I make : SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define message type for purchase order->Fine-Tuned Control: Purchase Order Somebody could explain me what means the U=>Update print-dependent data If

  • Conversion of type "u" to type "v" not supported (cl_abap_tabledescr)

    Help! I am struggling with implementing a solution using cl_abap_tabledescr. At below  statement : <f_interim_data> = <f_ref_data>. I get the error: Conversion of type "u" to type "v" not supported.  Coding: DATA:     l_r_tabledescr      TYPE  REF TO