Skip to Content
author's profile photo
Former Member

SP1 : problems with fields "quantity" and "measure"

When we set the fields "quantity" and "measure" in a form, we find some problems that we can not understand.

Here ther is a list of the problems:

a) When we make an assignement, the system returns an event: LOST-FOCUS

b) We make the assignement of the fields, in the following mode:

Set oText = Tavole.Columns("voldisp").Cells(j + 1).Specific

oText.String = "2,4"

where "voldisp" is a field and it is defined as "quantity" or "measure".

This field is an element of a Matrix.

As you can see, the real value of "oText.String" has to be 2,4 but

the system

set the field at wrong value of 223.341,31.

c) In the following case, the value is well set,but

it is not send to the video output

Set oUserDataSourceTI_7 =

APP.Forms(FUID).DataSources.UserDataSources("vDisp")

oUserDataSourceTI_7.Value = 2,4

NOTE:

The previeus examples are concened about a user form, where the field

is defined

as following:

Set oUserDataSourceT_7 =

oForm.DataSources.UserDataSources.Add("vDisp", dt_QUANTITY)

Set oItem = oForm.Items.Add("5", it_MATRIX)

oItem.Left = 30

oItem.Width = 640

oItem.Top = 130

oItem.Height = 150

Set oMatrix = oItem.Specific

Set oColumns = oMatrix.Columns

Set oColumn = oColumns.Add("voldisp", it_EDIT)

oColumn.TitleObject.Caption = "Vol. Disp."

oColumn.Width = 60

oColumn.Editable = False

oColumn.DataBind.SetBound True, "", "vDisp"

the same problems happen in every Matrix with type fildes of

"quantity" and "measure".

At the same time, procedures that were running well with SBO 6.5

patch 13, do not run

well with SP1.

We need an answer about this problems and we ask you witch is the

correct method to use

about this matrix assignement.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Aug 12, 2004 at 09:14 PM

    With respect to b) wrong value of 223.341,31

    This happens when the Editable property is false. When you set this property to true, the assigned value is correct. This, however, makes the column editable which is not desirable. I am trying to find a workaround to this bug.

    Add comment
    10|10000 characters needed characters exceeded