How can i give conditions in smartform text editor

Hi all,
i want to display something based on some condition using text element in smartforms , how can i do it.
in SAP Scripts normally we give conditions in text element using command line(/:)
but it wont work in smartforms , how can i give the same in smartforms ?
please help me soon.
thank you.

Hi,
You can use the Conditions tab for the corresponding text.
ex: in the text-editor consider you are displaying a name field based on a variable
<b>
ws_name
ws_variable</b>
In the text give the field to be displayed
&ws_name&
In the conditions tab give
ws_variable = 'X'
This will print the value from ws_name only when ws_Variable = 'X'.
Regards,
Tushar

Similar Messages

  • How can I give users a simple html editor

    I want my users to be able to edit an SQL text field and give them a wysiwyg editor - then have it displayed properly in a browser - just like the area I'm typing in to make this post.
    I noticed there was a rich text option in a cftextarea tag, but I need html.
    Can someone tell me how this site works or an alternative that I can use?

    RichieWhite wrote:
    I believe the rich text editor with cftextarea will work for me.
    Does anyone know how to display rich text content in a browser (and it look like it does in the control)?
    From the documentation on richText:
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    </head>
    <body>
    <!--- Display the text if the form has been submitted with text. --->
    <cfif isdefined("form.richtext01") AND (form.richtext01 NEQ "")>
        <cfoutput>#form.richtext01#</cfoutput><br />
    </cfif>
    <!--- A form with a basic rich text editor and a submit button. --->
    <cfform name="form01">
        <cftextarea richtext="true" name="richtext01" basepath="/CFIDE/scripts/ajax/FCKEditor" />
        <cfinput type="submit" value="Enter" name="submit01">
    </cfform>
    </body>
    </html>

  • How can I print a selection of text?

    In Mail (in Mavericks).  I would like to print just a paragraph or two that I have selected (highlighted).  How can I print just that selected text and not any other text or headers in that email?  I know I can copy and paste the text into a Text Edit document, but I'm looking for a quicker way to print just that selected text without leaving Mail.

    Create an Automator action that gets the selected text and automatically creates the TextEdit document and prints:
    To make the Service, create a New Automator workflow and select Service as the type.
    Set it to receive selected text in any application.
    Drag in a New TextEdit Document action
    Drag in a Run Applescript Action.
    Set the applescript to this:
    on run {input, parameters}
              tell application "TextEdit"
      print document of front window
      close document of front window without saving
      quit
              end tell
              return input
    end run
    Save it as something like Print Selected Text. Then, you can select text, ctrl-click on it, then select Print Selected Text from the Services submenu of the contextual menu.
    Here is a picture of the workflow:
    You could also give it a shortcut in the Keyboard System prefs, Shortcuts tab:

  • How can i give two tcode in same program

    Hi all,
    How can I give two tcode to the same program in which two conditions call in that two t codes
    how can I do so please help me for that.
    Ketan
    ABAP consultant

    hi,
    In your case, if the calling of the two transactions is mutually exclusive,
    then
    IF
    call transaction 'A'.
    else.
    Call transaction 'B'.
    endif.
    else,
    if you need to call the transactions one after the other,
    CALL TRANSACTION 'A'.
    CALL TRANSACTION 'B'.
    Thanks
    Sharath

  • How can I give a range mens some number is less than a number and greater than other number.

    how can I give a condition for a number like this
                   1<x>2. TO a condition to the  case loop selector terminal for selection .I expect help

    In the case selector, write "1..3" for all integers 1 <= x <= 3
    (if using floats it'll get rounded to an integer, so not the optimal solution, then you'll need In-range and coerce)
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • How can we give the Data Format (File Type ) in Runtime

    Hi all,
    How can we give the Data Format (File Type ) in Runtime for the following method,
    cl_gui_frontend_services=>gui_download.
    Thanks in advance
    Sri

    There is a filetype parameter which you can set
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
    *    BIN_FILESIZE              =
        filename                  =
    *    FILETYPE                  = 'ASC'
    *    APPEND                    = SPACE
    *    WRITE_FIELD_SEPARATOR     = SPACE
    *    HEADER                    = '00'
    *    TRUNC_TRAILING_BLANKS     = SPACE
    *    WRITE_LF                  = 'X'
    *    COL_SELECT                = SPACE
    *    COL_SELECT_MASK           = SPACE
    *    DAT_MODE                  = SPACE
    *    CONFIRM_OVERWRITE         = SPACE
    *    NO_AUTH_CHECK             = SPACE
    *    CODEPAGE                  = SPACE
    *    IGNORE_CERR               = ABAP_TRUE
    *    REPLACEMENT               = '#'
    *    WRITE_BOM                 = SPACE
    *    TRUNC_TRAILING_BLANKS_EOL = 'X'
    *  IMPORTING
    *    FILELENGTH                =
      changing
        data_tab                  =
    *  EXCEPTIONS
    *    FILE_WRITE_ERROR          = 1
    *    NO_BATCH                  = 2
    *    GUI_REFUSE_FILETRANSFER   = 3
    *    INVALID_TYPE              = 4
    *    NO_AUTHORITY              = 5
    *    UNKNOWN_ERROR             = 6
    *    HEADER_NOT_ALLOWED        = 7
    *    SEPARATOR_NOT_ALLOWED     = 8
    *    FILESIZE_NOT_ALLOWED      = 9
    *    HEADER_TOO_LONG           = 10
    *    DP_ERROR_CREATE           = 11
    *    DP_ERROR_SEND             = 12
    *    DP_ERROR_WRITE            = 13
    *    UNKNOWN_DP_ERROR          = 14
    *    ACCESS_DENIED             = 15
    *    DP_OUT_OF_MEMORY          = 16
    *    DISK_FULL                 = 17
    *    DP_TIMEOUT                = 18
    *    FILE_NOT_FOUND            = 19
    *    DATAPROVIDER_EXCEPTION    = 20
    *    CONTROL_FLUSH_ERROR       = 21
    *    NOT_SUPPORTED_BY_GUI      = 22
    *    ERROR_NO_GUI              = 23
    *    others                    = 24

  • 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 disable e-mail and text messages when I'm close to or over my data quota ?

    How can I disable e-mail and text messages when I'm close to or over my data quota ?
    Is this possible? I don't see any options?
    All I see is this:
      Receive confirmations of many account transactions via Email and/or free Text Alerts delivered right to your cell phone. You can receive these confirmations for  
       transactions done online, over the phone or from your handset. Account management Text Alerts do not count against any Messaging allowances.
          Your bill is ready for review.
         Payment Confirmations: Your payment has been  received    Your credit/adjustment     has been applied.1
         Account Activity Confirmations     Plan changes     Feature changes1

    What phone?
    You would need to disable data on the phone itself.  You wouldn't do it online on your account.
    Note also that text messages do not count toward your data allowance.

  • I have two ipods for two children.All apps games and music ect, sync with both which is great.Now how can I give them there own game center IDs without loosing this perk?They would like to play and share games together and with friends.

    I have two ipods for two children.They love playing the games.The great perk is there lynced so they share apps.Problem,how can I give them both individual IDs for game center without loosing this perk so that they can play with friends?

    I have two ipods for two children.They love playing the games.The great perk is there lynced so they share apps.Problem,how can I give them both individual IDs for game center without loosing this perk so that they can play with friends?

  • How can I give me the access to create a developer key in the market?

    Hi!
    I'm new in the basis area and I don't have access to create a developer key. A consultant need a developer key.
    How can I give me the access in the market place to create it?
    Thanks!

    Hi
    You need to get the access key from SAP.
    Refer to the procedure of obtaining access keys from SAP in BASIS.
    Security
    Regards,
    Raj

  • How Can I Set a Default Placeholder Text Language?

    How can I set a default placeholder text language instead of having to set the language every time I use placeholder text?

    Steve Werner wrote:
    I think the default placeholder text language is the language of your version of InDesign.
    The placeholder text is based on the current language setting. So if the language under the cursor is Hebrew, you'll get Hebrew.

  • Please tell me the soluation How can I give the soluation bilow issue.

    Dear Experts,
    Please tell me the soluation How can I give the soluation bilow issue.
    Currently user are facing one problem with respect of Line item report.
    In any of the line item report (i.e. FBL1N, FBL3N, FBL5N) we want to view header reference as column data wonu2019t appear in any of the reference filed.
    For Example in Bank G/L Cheque number was enter in reference field but same is not apear
    In Sales G/L or tax G/L invoice number is to be appear which is again invoice number as reference in document.
    Regards
    Devendra.
    Moderator: Give proper titles to your threads

    Hi,
    To add Reference field in line item report do below.
    From FBL1N output screen.
    Click change layout / (clr + F8)
    Now add Hidden field u2018Referenceu201D to column content and push copy button.
    Now you should be able to view reference field (BKPF- XBLNR) in line item report.
    Best Regards,
    Raju

  • How can I give a name to excel sheet and open another one?

    Hello!
    I use CSVWriter for writing in excel file.
    I have 2 questions:
    1.     How can I give a name to a Sheet in excel file?
    2.     How can I save the first Sheet and open another one with a different name?
    Thanks!

    This is the equivalent in Apache POI which may or may not help. I've never used CSVWriter.
    HSSFSheet sheet1 = workbook.createSheet("sheet1Name");
    HSSFSheet sheet2 = workbook.createSheet("sheet2Name");Then you can use either sheet object to write your contents. Look at the documentation for CSVWriter that pertains to sheets as it should tell you how.

  • How can I copy a paragraph of text from a Kindle book on the iPad?

    I just purchased a book to read on the Kindle app on my iPad.
    I would like to copy a paragraph of text to email to someone or to possibly quote in a blog post.
    How can I copy a paragraph of text from a Kindle book on the iPad?

    I'm very late to the conversation but thought I'd chime in since I've just been dealing with this myself. One way to copy from Kindle books is to make sure that you have your settings to backup highlights etc. online, then highlight the text in the Kindle app, go to your Kindle webpage (https://kindle.amazon.com/your_highlights) and copy the text from there.
    Remember, to be able to do this you have to set the app to backup highlights etc. I think this is set individually for each book. On my iPad the default is to backup.

  • In Flash CS4,How can I give a AS3 List Component a suitable horizontalScrollBar

    In Flash CS4 when an AS3 List Component has too many rows,it will has a verticalScrollBar automatically. but it will never has a horizontalScrollBar even a part of the content of the list is hidden.
    I set the property  list.horizontalScrollPolicy="on",and set list.maxHorizontalScrollPosition=200; then the horizontalScrollBar appear
    but when I click the item of the list, all the list move to left, half of the list is hidden,
    I can only see the right part of the list, the I click the list again,the list move to right,then I can see all the list by move the horizontalScrollBar
    How can I give a suitable horizontalBar to the AS3 list component?

    Thank you for your help! (sorry,I`m bad in English...)
    In fact, it works.
    but,I made a mistake,the reason I want to give a list a horizontalScrollBar is:I want to show all content in a list that is not wide enough,
    you see,first row can show all content in this list,but in the other rows,the content is too wide to show,I want to give the list a horizontalScrollBar to show all content by draging the horizontalScrollBar to right.
    now,set property:
    list.horizontalScrollPolicy="on", list.maxHorizontalScrollPosition=30;(the result is the image above),when I drag the horizontalScrollBar to right:
    ah ha ,the row can`t show all content too,the horizontalScrollBar is related to the width of all the list, is not related to the width of the content in every row.
    now I kown why the horizontalScrollBar is always disable.
    but in design,to show a lot of content,we can`t draw  a list too wide, it`s not beatiful,so I want to use a horizontalScrollBar to show all content in every row.
    and the list is not too wide
    ah ah,  like the list in Flex4
    In fact,ah,I have not studied Flex 4,so,I have to make it by using Flash CS4 Component
    How can I do? Please
    (so sorry for my bad English,I do my best in it)

Maybe you are looking for