Leave feedback
  • Discussion

    Substitution in a dynamic text from RDI -StoryTeller

Enter a new topic
  • Sreenivas Reddy Sreenivas Reddy
    0 likes 471 views

    Hi Experts,

    I would like to know if using Storyteller , can we substitute a part of the text(the text would be coming entirely in RDI) Ex: a date field with a date value from RDI . 

    Body1_Begin

    ---xx/xx/xxxx----

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

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

    Body1_End

    - The entire text is dynamic including the date field which would come seperately as an individual field.

     

    Thanks ,

    Sreenivas

    Friday 11 March, 2016
  • Dan Byström Dan Byström
    0 likes

    Are we talking about xpath in XmlIn oer StoryTeller?

    Monday 21 March, 2016
  • Peter Martens Peter Martens StreamServe Employee
    0 likes

    Hi Sreenivas,

    Have you looked at the eval() function?

    this function replaces variables inside text with the values of these variables.

    In your case you can put a variable on the field where the text comes in (for example $RDIText), then replace the date string xx/xx/xxxx with a date variable, for example with $RDIText = substrrepl($RDIText,"xx/xx/xxxx",$rdiDate);
    After this you can use eval to substitute the date.
    $RDIText = eval($RDIText);

    Regards,
    Peter

    Tuesday 29 March, 2016

 

Latest from the blogs

Read more