How to make the column in multi-record block resizable?

I am using Form6o, can I make the column in a multi-record block resizable?
Thanks!

I don't know exactly how they did it, but I have seen it done in Forms 6i. It is not exactly Excel style, but it comes close. You can use when-mouse-down and when-mouse-up triggers to determine start and end position of the mouse (with system.mouse_x_pos) and then set the width property.
So, when you drag the mouse, you don't see the column size increase, you only see the result after you let go of the mouse button.

Similar Messages

  • How to make few columns of single record inactive in Table conrol?

    Hi all,
    Scenario is like this : i have one table control , it is displaying 10 records , in that first four columns are editable. Now my requirement is, whenever record having intial values( suppose one record having initial values among ten) except key field , we need to deactive that particular  record , now table control  should contain ten records , but nine records are in editable state and one record in non editable state .
    How to make few columns of single record inactive in Table conrol?
    Thanks in advance.

    hi there...
    select the column that u want to convert to non editable mode in the screen layout. then double click on it. go to the attributes tab and uncheck the input chk box. the check box will become disabled for input. u can do this for any number of columns.
    if u want to do it dyanamically, loop at screen. check for the screen element's name. when itmatches the column u want to disable, simply set the input value as 0.
    dont forget to modify sscreen after setting the attribute values.
    i hope this helps.
    do reward if helpful.

  • How to make the column title needs to be on each page?

    If a document has more than one page than a column title needs to be on each page,I can use Word fuction to do that. But If I Only use XML publisher, How to do it.
    Message was edited by:
    zhengr

    Hi
    If you mean how do you repeat the column titles on a table if the table extends over several pages then all you need do is:
    Highlight the table header row
    Right click and select table properties
    On the Row tab, specify that the header row should be repeated on every page
    Save your work
    XMLP will now respect the word setting and will repeat the header row on evey page the table needs.
    Regards, Tim

  • WPF: How to make the Column and Row separator more wide and different color in datagrid?

    Our application uses WPF.
    One of request is make the DataGrid column separator and row separator more wide and use different color and remove original black separator of rows and columns.
    Which template we need to modify to make it? Thx!
    JaneC

    Hi Magnus,
    Thanks for replying our question and provide your suggestions!
    Now we know modify both HorizontalGridLinesBrush and VerticalGridLinesBrush we can change the DataGrid cell separator color.
    Following your suggested, we modify the DataGridCell as following:
    <Style x:Key="Body_Content_DataGrid_Centering"
    TargetType="{x:Type DataGridCell}">
    <Setter Property="Padding" Value="2,0" />
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type DataGridCell}">
    <Border BorderThickness="2" BorderBrush="{StaticResource PageBorderBackground}" Margin="-1">
    <Grid Background="{TemplateBinding Background}" VerticalAlignment="Center" Height="42">
    <ContentPresenter VerticalAlignment="Center"/>
    </Grid>
    </Border>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    <Style x:Key="DataGridStyle1" TargetType="{x:Type DataGrid}">
    <Setter Property="HorizontalGridLinesBrush" Value="{x:Null}"/>
    <Setter Property="VerticalGridLinesBrush" Value="{x:Null}"/>
    </Style
    JaneC

  • How to increase scroll speed in multi-record block

    My form displays 15 record at a time.
    I'm expecting that query will return approximate 100-1000 records. Scrolling between this records is very slow.
    Now i'm asking how can or must i set "Query array size","Number of Records Buffered" or can i set "Query All Records" to increase scrolling speed?

    Denis,
    Query All Records will go the other way. It might be faster when scrolling, but will take ages before being loaded to the Forms client (from the database to the server). Best would be if you can limit the number of returned records using the where condition of a block before querying it.
    Beside of that, using a different value of "Query array size","Number of Records Buffered" is the way to go.
    Frank

  • How to make the  column red in field catalog if its value is negetive

    i am displaying 25 columns in a field catalog ,
    if the value of the cell is negative it should appear in red colour .
    for ex,
    mat.no      custno      value
    1                10             10
    <b>2                20             -10</b>
    3                 30             20
    note:
    only cell which is the intersection of second row and third column
    should appear red .
    not the whole row or column

    Hi Balaji,
    Run this code for coloring specific coloum in a row when the value of that column is negative
    REPORT zex34 .
    TYPE-POOLS: slis.
    INCLUDE <icon>.
    DATA: it_fieldcat  TYPE slis_t_fieldcat_alv,
          it_fieldcat1  TYPE slis_t_fieldcat_alv..
    DATA:  x_fieldcat  TYPE slis_fieldcat_alv,
            x_fieldcat1  TYPE slis_fieldcat_alv.
    DATA: it_events TYPE slis_t_event,
          x_events TYPE slis_alv_event,
          i_program LIKE sy-repid.
    x_events-name = 'END_OF_LIST'.
    x_events-form = 'LIST_MODIFY_OUPUT'.
    APPEND x_events TO it_events.
    data : count type i,
           calc1 type i value 1,
           calc2 type i value 1,
           TOTREC TYPE I.
    DATA: BEGIN OF it_mara OCCURS 0,
          matnr LIKE mara-matnr,
          kunnr LIKE mara-kunnr,
          value type i,
          flag(1),
         END OF it_mara.
    SELECT matnr
           kunnr
           UP TO 10 ROWS
          INTO corresponding fields of TABLE it_mara
          FROM mara.
    loop at it_mara.
         count = sy-tabix mod 2.
       if count eq 0.
         it_mara-value = calc1.
            calc1 = calc1 + 6.
         it_mara-flag = ' '.
       else.
           calc2 = calc2 - 5.
         it_mara-value = calc2.
         it_mara-flag = 'X'.
       endif.
       modify it_mara index sy-tabix.
       TOTREC = TOTREC + 1.
    ENDLOOP.
    i_program = sy-repid.
    DATA:l_pos TYPE i VALUE 1.
    CLEAR: l_pos.
    l_pos = l_pos + 1.
    x_fieldcat-seltext_m = 'MATNR'.
    x_fieldcat-fieldname = 'MATNR'.
    x_fieldcat-tabname = 'IT_MARA'.
    x_fieldcat-col_pos    = l_pos.
    x_fieldcat-outputlen = '18'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    l_pos = l_pos + 1.
    x_fieldcat-seltext_m = 'KUNNR'.
    x_fieldcat-fieldname = 'KUNNR'.
    x_fieldcat-tabname = 'IT_MARA'.
    x_fieldcat-col_pos    = l_pos.
    x_fieldcat-outputlen = '10'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    l_pos = l_pos + 1.
    x_fieldcat-seltext_m = 'VALUE'.
    x_fieldcat-fieldname = 'VALUE'.
    x_fieldcat-tabname = 'IT_MARA'.
    x_fieldcat-col_pos    = l_pos.
    x_fieldcat-outputlen = '10'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    l_pos = l_pos + 1.
    x_fieldcat-seltext_m = 'FLAG'.
    x_fieldcat-fieldname = 'FLAG'.
    x_fieldcat-tabname = 'IT_MARA'.
    x_fieldcat-col_pos    = l_pos.
    x_fieldcat-outputlen = '1'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    l_pos = l_pos + 1.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
         EXPORTING
              i_callback_program = i_program
              it_fieldcat        = it_fieldcat
              it_events          = it_events
         TABLES
              t_outtab           = it_mara
         EXCEPTIONS
              program_error      = 1
              OTHERS             = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *&      Form  LIST_MODIFY_OUPUT
          text
    FORM list_modify_ouput.
      DATA: l_matnr LIKE mara-matnr,
            l_kunnr LIKE mara-kunnr,
            l_value type i,
            l_index TYPE sy-index.
      CLEAR it_mara.
      DO 20 TIMES.
        CLEAR: l_matnr, l_kunnr , l_value.
        READ LINE sy-index INDEX sy-lsind
             FIELD VALUE it_mara-matnr INTO l_matnr
                         it_mara-kunnr INTO l_kunnr
                         it_mara-value into l_value.
    *3lines are reserved for alv headings , so i am reading it form 4th
    *line so 4th line is equal to 1st line of itab
        IF sy-subrc = 0 AND sy-index GE 4.
          l_index = sy-index - 3.
          READ TABLE it_mara INDEX l_index.
          IF sy-subrc = 0 AND it_mara-flag = 'X'.
    *-Modifying current list
            MODIFY LINE sy-index INDEX sy-lsind
                       FIELD FORMAT it_mara-VALUE COLOR 6 INVERSE.
          ENDIF.
        ENDIF.
      ENDDO.
    ENDFORM.

  • How to repeat the column header on each page of the report?

    Can any of you please suggest me on how to repeat the column titles on a table if the table extends over several pages:
    I tried the below action present in Re: How to make the column title needs to be on each page? It worked fine for the pdf format whereas its not working for rtf format output.
    Can anybody help on this?

    I guess this has been taken as bug,
    may be some patch got released for it..iam not sure..

  • 1) Make the column read only without coding

    Please guid eme how to make the column read only in the list without using the coding.
    Vij

    Basically, the answer is that you can't.  There are ways to change a specific list view to make a column readonly by replacing the form with a custom DataView form.  But that only applies to that view and since users can create their own views,
    those views would have read/write access to the column if the user has read/write access to the item.  SharePoint only supports security down to the item level out of the box and not down to the individual column level.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How can I create a loop in a multi-record block (on the background)

    I have a multi-record block.
    In one item I change a value.
    Upon this change, in the when-validate-item I would like to
    change other records in the same block.
    I planned to loop the block with go_record and to do my things
    in each record. Unfortunately the go_record built-in is
    restricted and cannot be used in a wvi-trigger.
    Another approach can be to update the records in the database
    and to perform an execute_query after this change. Also this
    procedure cannot be used in a wvi.
    How can I easily loop in a multi-record block???

    You can try to put loop with go_record in KEY-NEXT-ITEM on that
    field.
    Or if you change something and then press KEY-COMMIT you can
    update another records in database and after commit do again
    execute_query. Something like :
    on KEY-COMMIT:
    update_another_records;
    commit_form;
    execute_query;

  • How to make the vendor column have figure in GRIR line item with RE document type?

    Dear Experts,
         Could you tell me how to make the vendor column have figure in GRIR line item whose document type is RE?
         Thanks!
    Xinling Zhang

    Hi ,
    You are using FAGLL03 .
    FAGLL03 report vendor code is blank
    vendor number in new FAGLL03 tcode (offsetting account information)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30b96fed-eb5d-2e10-1792-f3ff9f65df8a?QuickLink=index&…
    Also check OSS note
    Note 112312 - Line item: Display of offsetting a/c information
    Note 1034354 - FAGLL03: Display of offsetting account information
    Many Thanks

  • Enabling the current record only in a multi record block..how?

    Hi,
    I'am trying to enable a single record in a multi record block.
    If i use SET_ITEM_PROPERTY it enables all records, SET_ITEM_INSTANCE PROPERTY does not have ENABLED Property.., so how to go about this?
    I have a check box beside each record, if i check the check box only that record should get enabled..is there any way?
    Regards
    Mahesh

    I found out the answer :
    technical note 661 on on Siebel Supportweb (metalink3) :
    "how to embed OBI requests in Siebel Business Application views, so that navigating among the records in the parent applet updates the child Analytics applet with context-appropriate content"

  • How to get the original record Number in Multi-Record Block

    Hello Everyone,
    I know how to find the duplicate item in the multi-Record block,
    For Ex:
    Line_Num            Item_Name             Quantity
    1                           AA                      10
    2                           BB                      20
    3                           AA Here 3rd record Item_name is duplicated, I can able to check and display the message that 'Item is duplicated' ,I found from [sheikyerbouti.developpez.com/duplicates/duplicates.htm] .
    but I want to show along with original line number i.e 1 when the item_name is entered .
    Here I want to check the original Line_Num and want to display the message
    'Item is duplicated,Update quantity in Original Line 1'
    Can anyone help me to get this?
    Thank You.
    Regards,
    Guru.

    Hi Francois,
    Actually I want to check and show the message when the item_name is entered i.e WHEN-VALIDATE-ITEM TRIGGER.
    I put the following code in WHEN-VALIDATE-ITEM TRIGGER
    Declare
         curnum number;
         dupnum number;
         cur_item varchar2(100);
         v_alert_no number;
         p_linerec varchar2(100);
    Begin
    curnum := TO_NUMBER(:System.Trigger_Record);
    cur_item := :Lines.Item_number;
    First_Record;
    p_linerec := :Lines.Item_number;
    LOOP
    If p_linerec = cur_item then
         dupnum := :Lines.Line_num;
         set_alert_property('ALERT_STOP',ALERT_MESSAGE_TEXT,
    'Duplicate Item Found,Update QTY in Original line number '||dupnum);
       V_ALERT_NO := show_alert('ALERT_STOP');
       :LINES.ITEM_NUMBER := NULL;
    :LINES.ITEM_DESCRIPTION:= NULL;
    :LINES.ITEM_REVISION:= NULL;
    :LINES.ITEM_CATEGORY:= NULL;
    elsIF (:System.Last_Record = 'TRUE') THEN
         Go_Record(curnum);
         EXIT;
      ELSE
         Next_Record;
      END IF;
    END LOOP;
    End; But I am getting the following error,
    FRM-40737:Illegal Restricted Procedure
    FIRST_RECORD in WHEN-VALIDATE-TRIGGERand then
    its showing for first line itself.
    Duplicate Item found.Update QTY in Original line number 1so I put the condition
    If :Lines.Line_num > 1 then --Only to check when the block having more than one record.but now it checking from second record and displaying,
    Duplicate Item found.Update QTY in Original line number 2 --(instead of Update QTY in Original line number 1)Can you tell me how can I change the above code for my requirement?
    Thank you.
    Edited by: Gurujothi on 27 Mar, 2013 5:20 PM

  • How to make the combobox column in grid can be selectable

    Hi,
    I have a grid in a form and use a SQL query as the data source. Now I want to make a column(a field in a SQL query) to be displayed as combobox and user can select it. I tried to use below code to make the column displayed like a combobox, it seems that the colunn becomes a dropdown box but i can't select it. Also I can't find a way to add valid value and description into this combobox like what I do on a combobox in a form.
    oGrid.Columns.Item("Approved").Type = SAPbouiCOM.BoGridColumnType.gct_ComboBox;
    SAPbouiCOM.GridColumn col = oGrid.Columns.Item("Approved");
    then ???
    Any suggestion?
    Thanks!
    Lan

    Hi Lan
    Try This For Matrix......
    'For Adding Values
      oColumn = oColumns.Add(&quot;Drink&quot;, SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
            oColumn.TitleObject.Caption = &quot;Drink&quot;
            oColumn.Width = 100
            'Add Valid Values
            oColumn.ValidValues.Add(&quot;Cola&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;7up&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;Fanta&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;Orange Juice&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;Water&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;Lemonade&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;Ice Tea&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;Coffee&quot;, &quot;&quot;)
    'For selected Value
    Dim ocombo As SAPbouiCOM.ComboBox
                Dim oform As SAPbouiCOM.Form
                Dim omat As SAPbouiCOM.Matrix
                oform = SBO_Application.Forms.Item(&quot;MOR1&quot;)
                omat = oform.Items.Item(&quot;mat&quot;).Specific
                ocombo = omat.Columns.Item(&quot;Drink&quot;).Cells.Item(1).Specific
                ocombo.Select(&quot;Fanta&quot;, SAPbouiCOM.BoSearchKey.psk_ByValue)
    Thanks
    Shafi

  • How to do validation on multi record block at run time...

    Dear Friends,
    I have to do validation at run time on multi record block.
    If user tries to enter and save two or more records in same multi record block with same data at run time, it should not allow it and display a message like, " error : Records are having same(duplicate) values. "
    I already did validation with the data coming from database table using cursor. But confused about how to do at run time(on one screen only) ??
    Please, give details about how to check duplicate records on form block before saving it to the table ????
    Regarding details would be greatly helpful.
    thanks,

    Hi...Pankaj
    thanx for your reply..
    I already did validation for the data coming from table....
    but I need to do it on form only...at run time...
    exa...
    In one multi record block
    record no : column 1 : column 2 : column 3
    1 abc 123 hi
    2 abc 123 hi
    so it should check on the form itself, here I m not getting data from table...I am just
    navigating from first record to second using down arrow.
    so, may be 2 possibilities.
    1) when user navigates using tab to third record, it should say like two duplicate records.(may be like when validate record or item)
    2) or when user tries to save, it should say two duplicate records.
    so, everyting should take place on form screen only.....
    waiting for your reply,
    thanx...

  • How to get the column index inside a dataTable

    Hello,
    before I get staked, there are multiple threads handling familiar topics to the one I'm questioning about but none gives an anwer. If there is one, I'm propably to less skilled to see it.
    So here is my Problem: I've build a web-interface to a time-recording system. The hours worked on a certain project are displayed in a dataTable component which is generated out of a mySQL Query. Each entry (column/row) contains a inputText component to display and edit the specific value.
    Editing one of these inputText elements now fires a valueChangeEvent which reads the new value and stores it in the database. For that cause I need to know the row- and column-index of the inputText component that fired the event.
    Using the getClientId method from the valueChangeEvent I get some Information which makes it possible to calculate the row/column index. A typical clientID looks like "form_table:mainTable:0:_id14". "form_table" is the ID of the form the dataTable is in. "mainTable" is the id of the dataTable component. "0" is the row the component is in. And finally "_id14" stands for the id randomly given to the inputText component by JSF.
    My Problem is now, that though I can calculate the column out of the[i] "_id14", this calculation is hardcoded. So everytime I add a component in before the dataTable, the calculation needs to be adjusted in the code.
    The Questions:
    - How to force a sensefull id indicating a column-index for the inputText components inside the columns of a dataTable?
    - Nicer since no workaround: How to get the column-index inside the dataTable on a natural way? (e.g. out of the valueChangeEvent the specific inputText component fires)
    After some investigation here on the board and on the net I know multiple ways to get the row index, (Things like component-binding and so on) but I can't find a answer on how to get the column-index.
    Thanks to all answers and/or links to things my eyes missed while searching for one.

    ...then index 0 becomes index 1 and my program doesn't work properlyThe program works properly, just not as you expect it to.
    As you've noticed the table gives you the flexibility to move columns around. So if you move column 0 to column 1, why would you expect to still use 0 as the index? The table manages the reordering of columns for you to make sure the data being displayed in each table column comes from the correct column in the data model.
    You can manage this yourself using one of the following methods (I forget which one):
    table.convertColumnIndexToModel(int viewColumnIndex)
    table.convertColumnIndexToView(int modelColumnIndex)
    Or, you can get data from the data model directly:
    table.getModel().getValueAt(row, 0);

Maybe you are looking for