Announcement

Collapse
No announcement yet.

[SOLVED] field does not work positioning - left right- width

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SOLVED] field does not work positioning - left right- width

    Good evening

    There is that field in the pdf application which shows 20 characters. How can I display only the 10 first ones?
    I tried with the "Width" but it did not work.
    Am I doing something wrong?

    Also when I'm changing the values in the x, y properties, which set the place of the fields upon the print report, selecting the "right" alignment then the values of the fields are showing the one on the other.


    thank you for your time

    1.JPG

    2.JPG

    capture1.JPG
    Last edited by karpodinis2506; 11-30-2014, 01:32 PM.

  • #2
    Hello,

    You can create a function in your library like this:

    <?php
    //Limit character
    function limit_char($string, $size, $encode = 'UTF-8') {
    $string = mb_substr($string, 0, $size, $encode);
    return $string;
    }//end limit character
    ?>

    And in your OnRecord event you call:

    {YOUR_FIELD} = limit_char({YOUR_FIELD},10);

    And solve your first problem.

    In your second problem, you need to configure the Width of field, only this.

    Thank you!
    Best regards,
    Thomas Soares.
    ScriptCase International.

    Email: t.soares@scriptcase.net
    Visit our Blog: http://www.scriptcase.net/blog/
    Visit out fan page: http://www.facebook.com/Scriptcase

    Comment


    • #3
      Hello, thank you for your fast reply

      I tried the function limit_char but there was an error

      1.JPG

      2.JPG

      3.JPG


      For my second problem, is it possible for you to send me a screenshot as an example?
      I couldnt fully understand the problem... 4.JPG

      Thank you for your time

      Comment


      • #4
        Hello,

        You need just create a <b>library</b>.

        See the attached pictures.

        library_1.jpglibrary_2.jpglibrary3.jpg

        After create your library, call the same function in your application.

        Thank you!
        Best regards,
        Thomas Soares.
        ScriptCase International.

        Email: t.soares@scriptcase.net
        Visit our Blog: http://www.scriptcase.net/blog/
        Visit out fan page: http://www.facebook.com/Scriptcase

        Comment


        • #5
          Hello Thomas

          Thank you very much! It works excellent!!!

          On the other hand, there is still the problem with the alignment...

          When I'm changing the values in the x, y properties, which set the place of the fields upon the print report, selecting the "right" alignment then the values of the fields are showing the one on the other.

          Am I doing something wrong?

          4.JPG

          5.JPG

          Thank you!

          Comment


          • #6
            Hello Thomas

            Everythig is solved! Thank you for you time and for your help!

            Comment


            • #7
              Hello,

              Try changing the width of gradual way, then you will see a change.
              Start with small values, 5, 7, 10, then you to observe it comes effect on the application, if not, you increase to 20, 25, 30. But about the right alignment solution is the width.

              Thank you.
              Best regards,
              Thomas Soares.
              ScriptCase International.

              Email: t.soares@scriptcase.net
              Visit our Blog: http://www.scriptcase.net/blog/
              Visit out fan page: http://www.facebook.com/Scriptcase

              Comment


              • #8
                Hello

                I tried the method you told me earlier and it was working fine. Unfortunately with the new update (version 8.00.0043 ) it doesn't work anymore.
                How can I fix it?

                Thank you
                Last edited by karpodinis2506; 05-02-2015, 07:06 PM.

                Comment

                Working...
                X