Skip to Content
avatar image
Former Member

aligning data in smartforms

Hi,

I want to print data in a secondary window as follows.

Amendment number : 3 date: 3-03-2008

Number :4444444444 date: 3--3-2008

But the second date field is not aligning properly either it comes before the first date field or it comes after the first date field. i want both the date should start at the same coulmn.

please help me on this . pls be elaborative.

Thanks,

rose.

Edited by: camila phyrose on Feb 20, 2008 2:21 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Feb 20, 2008 at 01:24 PM

    Hi,

    Give the SPACES before the statment in the script, it will allign,

    otherwise, you need to use the paragraph format for the both Dates and use the ,, for the Spaces

    Regards

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 20, 2008 at 01:24 PM

    Hi don't worry for this use tabs while writing in editor in Smartforms , tabs are made under a paragraph format we make tabs when we making a paragraph format and use that para fromat while writinfg field on editor on your smartforms

    For tabs i give u an idea that tabs are used as a property of paragraphs for proper alingment of values or data in coloumns .

    take tabs as the position from where u want to start printing data in coloumn

    as for example

    if ur first field is item no. than u have to alingned it as right alingment so it will start printing the value from right in coloumn so u decide that how many charcter is actullly it is taking so as for example it is of 10 character than give frst tab as on 10th in postion and type as CH while defining first coloumn , than suppose next field is description so u have to define it as left alingment so if first tabis at 10 and due to left alingment the positon of cursor is just after 10 becouse it is left alingned and previous one is right so start it from 12 as giving space of 1 or 2 character and do the same thing with using comman sence for other , but remember in this method of scripts u have to do one or more times trial and error so just do it once and practice it . this is very important.

    just do one thing that if u r using tabs in paragraph format jsut chek that same para number u used for on ur editor while printing or not if it is ok than , in using tabs do right alingment for all value , quantity and no. fields in tabs while using tabs in editor u define tab after each field with two commas where u have to put tab or means from this field u have to strt ur next tab

    *thank

    • if useful please please reward points.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 20, 2008 at 01:25 PM

    Hi

    Create a template and then use the text element to display

    Regards

    Shiva

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 20, 2008 at 03:52 PM

    Hey Camila,

    The best method is to use Tabs. If you didnt anything before the date,if the Number doesnt have any value then the date field will move in the front as shown below:

    Amendment number : 3 date: 3-03-2008

    Number : date: 3--3-2008

    Method to create Tabs:

    1) Goto Paragraph Formats say suppose T1. Click Edit -> Create Element.

    2) Click tabs button and give the position at which you need the date to be printed. say suppose 5cms. Now we have assigned the first tab position at 5cms.

    3) Inside the Text Element.Give as shown below.

    T1 Amendment number :&v_amend&,,date:&v_date&

    T1 Number : &v_number&,,date:&v_Date1&

    The Paragraph format T1 and the Tab ,, will make the date to be printed at 5cms.

    please REWARD Points if useful.

    Thanks,

    Karthik

    Add comment
    10|10000 characters needed characters exceeded