Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Unable to locate field workdate in table bxbillable

(0) ShareShare
ReportReport
Posted on by

Hello Community,

I am learning dynamics sl development and going through tutorials i got from the internet.

Set up two levels ;Customer and Billable hours.

Here is the sql create table.

Create Table XBillable
(
custID char(15),
Descr    char(60),
Hours   float,
LineNbr  smallint,
NoteId smallint,
SlsperID char(10),
WorkDate smalldatetime

)
go

Create unique index xBillable0
 on dbo.XBillable(Custid,LineNbr)
 go

 Create proc xBillable_p1
 @parml varchar(15),
 @parm2min smallint,
 @parm2max smallint

 as
 select * from XBillable
 where custID=@parml
 and LineNbr between @parm2min and @parm2max
 order by custID,LineNbr
 go
 

I also created DH file

Option Explicit On
Imports Solomon.Kernel
Module sdoXBillable
    Public Class XBillable
        Inherits SolomonDataObject
        < _
          DataBinding(PropertyIndex:=0, StringSize:=15) _
          > _
        Public Property CustID() As String

            Get
                Return Me.GetPropertyValue("CustID")
            End Get

            Set(ByVal setval As String)
                Me.SetPropertyValue("CustID", setval)
            End Set

        End Property
        < _
         DataBinding(PropertyIndex:=1, StringSize:=60) _
         > _
        Public Property Descr() As String

            Get
                Return Me.GetPropertyValue("Descr")
            End Get

            Set(ByVal setval As String)
                Me.SetPropertyValue("Descr", setval)
            End Set

        End Property
        < _
         DataBinding(PropertyIndex:=2) _
         > _
        Public Property Hours() As Double

            Get
                Return Me.GetPropertyValue("Hours")
            End Get

            Set(ByVal setval As Double)
                Me.SetPropertyValue("Hours", setval)
            End Set

        End Property
        < _
         DataBinding(PropertyIndex:=3) _
         > _
        Public Property LineNbr() As Integer

            Get
                Return Me.GetPropertyValue("LineNbr")
            End Get

            Set(ByVal setval As Integer)
                Me.SetPropertyValue("LineNbr", setval)
            End Set

        End Property
        < _
         DataBinding(PropertyIndex:=4) _
         > _
        Public Property NoteId() As Integer

            Get
                Return Me.GetPropertyValue("NoteId")
            End Get

            Set(ByVal setval As Integer)
                Me.SetPropertyValue("NoteId", setval)
            End Set

        End Property
        < _
         DataBinding(PropertyIndex:=5, StringSize:=10) _
         > _
        Public Property SlsperID() As String

            Get
                Return Me.GetPropertyValue("SlsperID")
            End Get

            Set(ByVal setval As String)
                Me.SetPropertyValue("SlsperID", setval)
            End Set

        End Property
        < _
           DataBinding(PropertyIndex:=6) _
           > _
        Public Property WorkDate() As Integer

            Get
                Return Me.GetPropertyValue("WorkDate")
            End Get

            Set(ByVal setval As Integer)
                Me.SetPropertyValue("WorkDate", setval)
            End Set

        End Property

    End Class
    Public bXBillable As XBillable = New XBillable, nXBillable As XBillable = New XBillable
End Module


On form1 Udate1 control i added two levels: Customer;N,XBillable ;D

I added all controls...and their levels.

why getting the above error?

I have attached my project .

Please kindly review and assist.

ST26000.zip

Ronald.



 

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: Unable to locate field workdate in table bxbillable

    Hello Perumalsamy,

    I have done as instructed and still get same error....

    Any more suggestion.

    RK

  • Suggested answer
    Ram Peru Profile Picture
    2,830 on at
    RE: Unable to locate field workdate in table bxbillable

    Hello RK,

    you have add the timestamp column in the custom table. below is the field syntax.

    [tstamp] [timestamp] NOT NULL,

    Please close & reopen the Dynamics SL after the Modified table script executed in SQL server.

    Hope this will solve your issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Featured topics

Product updates

Dynamics 365 release plans