Skip to Content
author's profile photo Former Member
Former Member

Dynamic text in text objects!

Hello Smartform experts,

I have a requirement here for which I am trying to find a solution.

I had created a text name 'zinst' with text object 'text', text id 'st' which contains the terms and conditions.

I had hardcoded the company name in the text. But the requirement is they want to use the same form for different companies and the company name in the text should be dynamically populated.

How can I do that?

Thanks,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2006 at 10:38 PM

    If company name field is available to you in the smart form, then replace the company name in the standard text with that variablename.

    for ex: replace the name with &T001-BUTXT&, see if it works.

    Regards

    Sridhar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 06, 2006 at 09:51 PM

    You can do this, but you will have to read the text in your program and the replace a placeholder. In your standard text, you need to have a "place holder" for the company name. For example, lets say it is <company_name>. Then read the standard text using the READ_TEXT function module. Now you can read the specific line, and replace the placeholder with the company name. Make sense?

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2006 at 12:48 AM

    Naren,

    In that case, you cannot use the INCLUDE TEXT option as you have manually read the text (READ_TEXT) and replace the company name.

    However, if you can maintain one text for each company code you have in SO10, then you can dynamically get the text name and use that.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for all your replies.

      What I had done is, I had created different text object names for each sales org and I am moving that text name to a variable based on the sales org in the include text of my smartform.

      In the text name of INCLUDE TEXT I am passing the variable as &variable& instead of the text name.

      Thanks,

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.