Run time data binding via FormCalc/JavaScript+wrong text formating

Hello Everybody
I need to print a text block with company details depending on company code (different details for different codes). I tried to use this code for event "calculate":
if ($record.LS_HEADER.BUKRS == "1000") then
$ = $record.COMP_DETAILS_1000
elseif ($record.LS_HEADER.BUKRS == "1000") then
$ = $record.COMP_DETAILS_2000
endif
$record.COMP_DETAILS_1000, $record.COMP_DETAILS_2000 are elements from the form context which are linked to textmodules.
This code works and it prints correct textmodules for different company codes. But the printed text is not formated like text in the textmodules. The most important thing here is that these texts are always printed as a single long string and I need paragraphs like in the textmodules. It's a problem... If I use a statical binding (without FormCalc programming) the text modules will be printed with correct formating.
Using of checkbox "Allow Multiline Lines" hasn't helped here...
Have you any idea how should I do the run time data binding?
Thank you very much in advance!

Hello,
the important part is "If I use a statical binding (without FormCalc programming) the text modules will be printed with correct formating." That means you can get the text in the shape you want. Just do that. Get all the texts. Next use the JS/FC scripting to hide all but one text. You get only one text to display and you use static binding to get the proper text format.
Hope this helps, Otto

Similar Messages

  • Run time data source credentials in SUP

    Hi Experts,
    I am trying to use run time data source credentials for a custom application which I developed for iphone. But during run time I get JCO error - Incorrect username/password. However if I use normal static connections then I am able to fetch data.
    Has anyone encountered similar issue with SUP ?
    Regards,
    Victor

    I can be wrong, but I will try to help you.
    Did you get this problem when you are trying to deploy the MBO?
    IF yes make sure that you are using same user/pass that you use in the back-end, usually the application uses the sup credencial {supAdmin/s3pAdmin}. You can use the openDS to create a new user <SUPInstall>.....\openDS\bat\control-panel.bat after you create a new user, and when you login in, user will be automatic linked to the device.
    and check if you have the latest JCO connector [dll's and jar's] placed in the right place.
    I hope I helped you.

  • Run time data of ME21N

    Hello People,
    I need to check whether the user has inputted the print parameters in message box of me23n.
    where do i get these print data on run time.
    thanks in advance.
    regards,
    roshan.

    Sorry, None of them exists...
    is there any Fm which gives run time data?
    regards,
    roshan.

  • Run time data types

    Hello every body,
    i want to create a run time data type CHAR_10 
    IS THERE ANY WAAY like
    create data dataref type ('C').
    this statement creates a data reference of type C
    but can i specify CHAR_10
    create data dataref type ('CHAR_10')??????

    Hi,
      Try using the field-symbols..
      FIELD-SYMBOLS: <FS> TYPE ANY.
      DATA: V_CHAR(10) VALUE 'TEST'.
      ASSIGN V_CHAR TO <FS>.
      WRITE: / <FS>.
    Thanks,
    Naren
    Thanks,
    Naren

  • How to disable design time data binding?

    I am using Studio Creator IDE for the presentation layer and bringing the project into eclipse and from there moving on to creating daos,adding business objects etc.
    However, when re-importing my files from eclipse to the Studio Creator to make layout changes, on the design view, i keep getting all these SQL exceptions.
    Here's my current fix:
    For eg, if on a page i had a Data Table component, i comment out my dao methods that populate the cachedrowset for the table data provider and i add for eg:
    personRowSet.setDataSourceName("java:comp/env/jdbc/Travel");
    personRowSet.setCommand("SELECT * FROM TRAVEL.PERSON");
    personRowSet.setTableName("PERSON");
    and only then, i am able to see my table component in the design view.
    Is there an option somewhere to tell the IDE not to check data bindings at design time???
    That would be very very helpful.
    Thanks!

    Hi,
    There is no option, ASAIK, to turn off the data bindings at design time. As you have mentioned the option that comes to my mind is to comment out the code for data binding till the design work is over.
    Cheers
    Girish

  • How do I enter time data in A cell in 24-hour format?

    Since I work in 24-hour time format, I want to enter time data in a cell in same format. I know how to display 24-hour format, but data entry is allowed only in 12-hour (am /pm) format. Kindly throw some light. Thanks !

    1) select the cell(s) you want formatted as 24 hour times
    2) Open the cell inspector (top right of your windows usually)
    3) Change the Cell format to "Data and Time"
    4) Change the "Date" to "None"
    5) Change the "Time" to "19:08" (the 24-hour formatter)

  • Run time change # of radio button and boolean text

    does Labview 8 support run time programmically change number of radio button and boolean text for each radio button?
    Thanks,
    DG

    You can also customize a slide control to look like radio buttons. You can control the text labels and the number of element through a property (by changing the scale properties). If you really want it to look like radio buttons, you can try ripping the images from the dialog radio button. Also, to save some time, you can get the OpenG buttons package, which includes a slide customized to look like radio buttons. The main problem with this is that changing the number of items does not change the size of the control and that makes the dot filling the radio buttons look compressed.
    Another option is to create an array of radio buttons, but then you will have to handle the logic yourself.
    Try to take over the world!

  • How to save data acquired from NI-DAQ in text format instead of TDMS using the DAQ-mx ANSI C code?

    Hi,
    I wanted to save data acquired from NI-DAQ (for example, NI 9234) in a file using the DAQ-mx ANSI C Code. The response I got was as follows:-
    One way to do it is with TDMS logging. DAQmx comes with functions designed to log to a TDMS file. This is a special file type that is used for collecting data in a logical format. It can be displayed in a TDMS viewer where data is separated into groups and channels. NI-DAQmx provides examples for how to log to TDMS. Look at the TDMS examples in the C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage directory.
    However, now I want to know is there a way that using that same C code, can we save the data in a .txt file format (Text File) instead of a TDMS file? We actually want to access that file through MATLAB (that's why we want to save it in text format).
    Also on an other note, is there a way we can access & open TDMS files by MATLAB?
    Thanks,
    Sauvik Das Gupta

    There's a way you can access TDMS files in MATLAB:
    http://zone.ni.com/devzone/cda/tut/p/id/7446

  • Data binding via datasocket opcservers V5

    Hello! Everyone
    I met a problem of opcservers V5,when I try to use databinding of a indicator via datasocket to select National Instrument.OPCServers.V5, error report dialogue shows that the opc servers are not be totally installed or security settings are incorrect! I use version 2011LabVIEW and NI OPC Server can run.

    Did you change your DCOM settings?
    You can found info about that here
    Kind regards,
    - Bjorn -
    Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
    LabVIEW 5.1 - LabVIEW 2012

  • Run time Date parameter Issue

    hi,
    In my report i have 3 parameters, one is date and another parameters are string
    there is no problem with string parameters
    Problem in date parameter is if i given the date by using date picker the reports is running, never end
    if i hardcode the date in sql query itself, it give the output in seconds,
    Why it is behave like that, can any one please let me know the possible ways to pass the date parameter in runtime.
    Thanks,
    Mohan

    hi,
    We are selecting the date from date picker only, for the given records also available.
    The format which i hard coded into sql is equivalent to the format return from date picker.
    I given the date picker java date format is dd-MMM-yy so it takes the date like '28-Apr-11'
    still it is not working,
    Thanks,

  • Can't retrieve username using expression builder on a run time data control

    Here's the scenario:
    1. I added a Data Control resource in WebCenter Spaces, which has one paramater to get: username.
    2. I added the Data Control in Oracle Composer, and selected the return method to show as a read only form.
    3. In adding the Return method, under DC Parameters I have to get the username and place it on my parameter, ie: arg0 = username. arg0 is my data control parameter.
    I tried using every possible code there is in the Expression Editor to retrieve the username, but I keep getting null when I test it. I've tried *#{securityContext.userName}*, *#{webCenterProfile[securityContext.userName].userName}*. I also tried creating a page parameter, and use it like this: *#{bindings.myUsername}*, but still won't work. Its always null.
    How do I retrieve the username and bind it to the parameter of my data control using expression editor? Please help. Thanks.
    Edited by: aeriaL18 on Aug 13, 2012 12:15 PM

    Hi ,
    I believe this should be posted to Webcenter Portal forum : WebCenter Portal
    Thanks
    Srinath

  • Accessing the run time data of processed output types in VA02

    Hello All,
    I have to write a code to make entriesin the Ztable when the user processes the output tpe in the VA02 transaction. How I can know that user has attached a new output type for that order?
    I am writing my code at the save button of the VA02 tcode in the exit: userexit_save_document.
    I checked for the Xnast, ynast, inast entries. But none of them store the current data of the processing of output types screens.
    Please help.,
    Thanks in advance
    Rgds,
    Madhuri

    data :it_xnast  like vnast OCCURS 20 WITH HEADER LINE,
            it_x1nast like vnast OCCURS 20 WITH HEADER LINE.
      field-symbols :
                <Fs1> type ZSDTT_VNAST,<Fs2> type ZSDTT_VNAST .
      data: wa_xnast type vnast, wa_x1nast type vnast.
             assign ('(SAPLV61B)XNAST[]') TO <fs2>.
             assign ('(SAPLV61B)VNAST[]') TO <fs1>.

  • Download data entered via web to a text file.

    Hello,
    I'm developing a very simple BSP aplication in which the user enters via web some data in some fields. This data is store in an internal table. This table is an attribute in the application class. In this class there is a method to save the data to a file in presentation server. I've tried using WS_DOWNLOAD and GUI_DOWNLOAD but these function modules don't work. I would like to know if there some function modules or methods to download data to a file and that can be used in a BSP aplication.
    Thank you very much,
    Carlos
    Details:
    1-Layout
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    Carga ficheros
      generar_fichero
          exporting nombre_fichero = fichero.
    3- Method generar_fichero
    method GENERAR_FICHERO .
    ***Opción 1: emplear una instancia de una clase y llamar a su método
    data: file type ref to CL_GUI_FRONTEND_SERVICES.
    create object file.
    data l_filelength type i.
    call method file->gui_download
       exporting  filename = nombre_fichero
       importing filelength = l_filelength
       changing   data_tab = m_tabladatos
       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
          OTHERS                          = 22
    *if sy-subrc ne 0.
    raise error_fichero.
    *else.
    **borrar cookie
    *endif.
    ***Opción 2: llamada directa a la función ws_download_wan "FALLA:
    ***********************************************"no deja rastro del fallo
    data l_filename(128).
    write nombre_fichero to l_filename.
    *CALL FUNCTION 'WS_DOWNLOAD_WAN'
    EXPORTING
      BIN_FILESIZE              = ' '
      CODEPAGE                  = ' '
      FILENAME                  = l_filename
      FILETYPE                  = 'ASC'
      MODE                      = 'A'
      WK1_N_FORMAT              = ' '
      WK1_N_SIZE                = ' '
      WK1_T_FORMAT              = ' '
      WK1_T_SIZE                = ' '
    IMPORTING
      FILELENGTH                =
    TABLES
       DATA_TAB                  = m_tabladatos
    EXCEPTIONS
      FILE_OPEN_ERROR           = 1
      FILE_WRITE_ERROR          = 2
      INVALID_FILESIZE          = 3
      INVALID_TABLE_WIDTH       = 4
      INVALID_TYPE              = 5
      NO_BATCH                  = 6
      UNKNOWN_ERROR             = 7
      OTHERS                    = 8
    *IF SY-SUBRC <> 0.
    raise error_fichero.
    *else.

    Hallo Carlos,
    Welcome to the forum. As with all things new in life, one does not know where to start immediately. I would like to recommend the <a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">Getting Help</a> guide as first interesting article to read.
    Specifically you are interested in the section for searching this forum. Use keywords such as download or GUI_DOWNLOAD. Also consider to look at keyword Excel. Although not exactly on topic, the Excel discussions does address this partly. All of this has been discussed many time before.
    Finally, consider to read <a href="/people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents">BSP Programming: Handling Of Non-HTML Documents</a>. This will really show you some different techniques to download files onto the computer.
    brian

  • Run Time Error  while Transferring data to Application server

    Hello Abaper's,
    I have generated a XML data using the FM : "  SAP_CONVERT_TO_XML_FORMAT ".
    While transferring the data to a File on Application Server using the statement
    DATA : wa_xmltab TYPE truxs_xml_line,
                 it_xmltab TYPE truxs_xml_table.
    OPEN DATASET FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc EQ 0.
      LOOP AT it_xmltab INTO wa_xmltab.
        TRANSFER wa_xmltab TO FNAME.    <<<<<<<<<<<<<<  Getting Error here
      ENDLOOP.
    ELSE.
      MESSAGE e004(zmsg5) WITH 'File FNAME not opened'.
    ENDIF.
    CLOSE DATASET FNAME.
    The Run Time Error i am Facing is  
    Short text
        The current statement is only defined for character-type data objects.
    Error analysis
        For the statement
           "TRANSFER f TO ..."
        only character-type data objects are supported at the argument position
        "f".
        In this case. the operand "f" has the non-character-type "TRUXS_XML_LINE". The
        current program is a Unicode program. In the Unicode context, the type
        'X' or structures containing not only character-type components are
        regarded as non-character-type.
    Regards
    jv

    Hello  Volker Binder ,
    Thank you . it's now transferring the data to Application sercver. I forgot to try using Binay mode,
    Thers is one more problem. There are 10 Records in that internal table that is being converted to XML format,
    but the XML data is showing only first 4 records.... the XML data format for the remaining data is not seen.
    Actual  No. of Records  in Internal table :
    matnr            matkl          meins
    0-BUY1               012         PC
    0-BUY2               012         PC
    1                                EA
    2                    012         L
    3                    01          EA
    12                               EA
    23                   001         ST
    24                   015`        EA
    28                   010         EA
    29                   015`        AU
    XML Format for the above 10 fields is :
    <?xml version="1.0"?><TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">0-BUY1</MATNR><MATKL Datatype="C" Length="18">012</MATKL><MEINS Datatype="C" Length="6">PC
    </MEINS>
    </TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">0-BUY2</MATNR><MATKL Datatype="C" Length="18">012</MATKL><MEINS Datatype="C" Length="6">
    PC </MEINS>
    </TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">000000000000000001</MATNR><MEINS Datatype="C" Length="6">EA</MEINS>
    </TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">000000000000000002</MATNR
    This 4th record data in XML is also incomplete..
    The above XML format is generated only for 4 records  out of 10 Records.
    Please let me know , how can i increase the Size / Memory of the Application server file to accomodate for the reamining Records
    Regards
    Jv

  • [svn] 3203: Add support for inline two-way data binding (syntax is @{expr}) .

    Revision: 3203<br />Author:   [email protected]<br />Date:     2008-09-14 05:11:47 -0700 (Sun, 14 Sep 2008)<br /><br />Log Message:<br />-----------<br />Add support for inline two-way data binding (syntax is @{expr}).  Also add support for two-way data binding via the <mx:Binding> tag and the new property twoWay=boolean (default is false).<br /><br />Code Reviewer: Paul<br />QA: tests for this feature need to be added to the regression test suite<br />Doc: new feature which needs to be documented<br /><br />Modified Paths:<br />--------------<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/analyzer/SyntaxAnalyzer.java <br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java <br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AnonymousObjectGraph Builder.java<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java <br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ModelBuilder.java<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ServiceRequestBuilde r.java<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLBuilder.java<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLListBuilder.java< br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/BindingNode.java<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/TextParser.java<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/BindingExpression.java<b r />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties

    EvilDave UK wrote:
    Surely there's a more practical way around this without having to reboot?
    Before you go to the trouble of going through all those steps, be warned that attempting to use Dreamweaver CS4 with SVN could even cause Dreamweaver to crash after updating to SVN 1.6.2. I, too, have abandoned SVN integration with Dreamweaver until the problems are sorted out. I reported this problem to Adobe a couple of weeks ago, and spent a long time working with an Adobe engineer, who was able to reproduce the problem, but not offer a solution. Hopefully, the next version of Dreamweaver will have more robust support for Subversion.

Maybe you are looking for