Modifying Production Calendars

I was merely missing the Update method call.

Thanks for the help Rob.

--- In vantage@yahoogroups.com, "bobschnable" <bschnable@...> wrote:
>
> Good idea, but unfortunately, still nothing.
>
> --- In vantage@yahoogroups.com, Rob Bucek <rbucek@> wrote:
> >
> > 1 or 0 instead of True or false?
> >
> > Rob Bucek
> > Production Control Manager
> > PH: (715) 284-5376 ext 311
> > Mobile: (715)896-0590
> > FAX: (715)284-4084
> > [Description: cid:1.234354861@]<http://www.dsmfg.com/>
> > (Click the logo to view our site)<http://www.dsmfg.com/>
> >
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of bobschnable
> > Sent: Monday, December 05, 2011 4:37 PM
> > To: vantage@yahoogroups.com
> > Subject: [Vantage] Modifying Production Calendars
> >
> >
> >
> > Hi Group,
> >
> > I'm attempting to write a customization to modify the production calendars through an interface. I was able to access the data, and I can get the value of the appropriate hour on the calendar, but all of my attempts to modify said value have failed. The following is the current iteration of my code.
> >
> > Thanks in advance.
> >
> > Dim proCal As ProdCalAdapter = New ProdCalAdapter([ProdCalForm])
> > proCal.BOConnect()
> >
> > Dim opts As SearchOptions = New SearchOptions(SearchMode.AutoSearch)
> > opts.NamedSearch.WhereClauses.Add("ProdCal", "CalendarID='0101'")
> > Dim morePages As Boolean
> >
> > Dim proCalDataSet As DataSet = proCal.GetData("0101")
> >
> > Dim row As DataRow = proCalDataSet.Tables("ProdCal").Rows(0)
> > Dim column As DataColumn = proCalDataSet.Tables("ProdCal").Columns("Hour001")
> > row.Item(column) = True
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
Hi Group,

I'm attempting to write a customization to modify the production calendars through an interface. I was able to access the data, and I can get the value of the appropriate hour on the calendar, but all of my attempts to modify said value have failed. The following is the current iteration of my code.

Thanks in advance.

Dim proCal As ProdCalAdapter = New ProdCalAdapter([ProdCalForm])
proCal.BOConnect()

Dim opts As SearchOptions = New SearchOptions(SearchMode.AutoSearch)
opts.NamedSearch.WhereClauses.Add("ProdCal", "CalendarID='0101'")
Dim morePages As Boolean

Dim proCalDataSet As DataSet = proCal.GetData("0101")

Dim row As DataRow = proCalDataSet.Tables("ProdCal").Rows(0)
Dim column As DataColumn = proCalDataSet.Tables("ProdCal").Columns("Hour001")
row.Item(column) = True
1 or 0 instead of True or false?

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of bobschnable
Sent: Monday, December 05, 2011 4:37 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Modifying Production Calendars



Hi Group,

I'm attempting to write a customization to modify the production calendars through an interface. I was able to access the data, and I can get the value of the appropriate hour on the calendar, but all of my attempts to modify said value have failed. The following is the current iteration of my code.

Thanks in advance.

Dim proCal As ProdCalAdapter = New ProdCalAdapter([ProdCalForm])
proCal.BOConnect()

Dim opts As SearchOptions = New SearchOptions(SearchMode.AutoSearch)
opts.NamedSearch.WhereClauses.Add("ProdCal", "CalendarID='0101'")
Dim morePages As Boolean

Dim proCalDataSet As DataSet = proCal.GetData("0101")

Dim row As DataRow = proCalDataSet.Tables("ProdCal").Rows(0)
Dim column As DataColumn = proCalDataSet.Tables("ProdCal").Columns("Hour001")
row.Item(column) = True



[Non-text portions of this message have been removed]
Good idea, but unfortunately, still nothing.

--- In vantage@yahoogroups.com, Rob Bucek <rbucek@...> wrote:
>
> 1 or 0 instead of True or false?
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...]<http://www.dsmfg.com/>
> (Click the logo to view our site)<http://www.dsmfg.com/>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of bobschnable
> Sent: Monday, December 05, 2011 4:37 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Modifying Production Calendars
>
>
>
> Hi Group,
>
> I'm attempting to write a customization to modify the production calendars through an interface. I was able to access the data, and I can get the value of the appropriate hour on the calendar, but all of my attempts to modify said value have failed. The following is the current iteration of my code.
>
> Thanks in advance.
>
> Dim proCal As ProdCalAdapter = New ProdCalAdapter([ProdCalForm])
> proCal.BOConnect()
>
> Dim opts As SearchOptions = New SearchOptions(SearchMode.AutoSearch)
> opts.NamedSearch.WhereClauses.Add("ProdCal", "CalendarID='0101'")
> Dim morePages As Boolean
>
> Dim proCalDataSet As DataSet = proCal.GetData("0101")
>
> Dim row As DataRow = proCalDataSet.Tables("ProdCal").Rows(0)
> Dim column As DataColumn = proCalDataSet.Tables("ProdCal").Columns("Hour001")
> row.Item(column) = True
>
>
>
> [Non-text portions of this message have been removed]
>