Add fields to Time Phased grid

Excellent....this example worked really slick...thank you!!! Now I just need to see if I can use the fields that we need. It's a big step in the right direction. Many thanks to all!!

Kurt


--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
> Well, I could have swore I posted an example of how to do this before, but I searched back 2 yrs and could not find :-(
>
> must be an age related thing.....
>
> Here is some code we are using to add the parent part number field to time phase grid for jobs
>
> This might give you some ideas or point you in the right direction:
>
> Module Script
>
>
> '// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
> '// Begin Wizard Added Module Level Variables **
>
> Private WithEvents edvTimePhas As EpiDataView
>
> '// End Wizard Added Module Level Variables **
>
>
> '// Add Custom Module Level Variables Here **
>
>
>
> Sub InitializeCustomCode()
>
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
> '// Begin Wizard Added Variable Intialization
>
> edvTimePhas = CType(oTrans.EpiDataViews("TimePhas"), EpiDataView)
>
> '// End Wizard Added Variable Intialization
> '// Begin Custom Method Calls
>
> If Not (edvTimePhas.dataView.Table.Columns.Contains("ParentPart")) Then
> edvTimePhas.dataView.Table.Columns.Add(new DataColumn("ParentPart"))
> End If
> '// End Custom Method Calls
> End Sub
>
>
>
> Sub DestroyCustomCode()
>
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
> '// Begin Wizard Added Object Disposal
>
> '// End Wizard Added Object Disposal
> '// Begin Custom Code Disposal
>
> '// End Custom Code Disposal
> End Sub
>
>
>
> Private Sub edvTimePhas_EpiViewNotification(view As EpiDataView, args As EpiNotifyArgs) Handles edvTimePhas.EpiViewNotification
> '// ** Argument Properties and Uses **
> '// view.dataView(args.Row)("[FieldName]")
> '// args.Row, args.Column, args.Sender, args.NotifyType
> '// NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes
> If (args.NotifyType = EpiTransaction.NotifyType.Initialize) Then
> If (args.Row > -1) Then
> AddParentPart()
> End If
> End If
> End Sub
>
> Private Sub AddParentPart()
> For Each dr As DataRow In edvTimePhas.dataView.Table.Rows
> If Not IsDBNull(dr("JobNum")) Then
> dr("ParentPart") = getParentPart(dr("JobNum"))
> End If
> Next
> End Sub
>
> Private Function getParentPart(ByVal job As String) As String
> Dim parentPart As String
> Dim recordSelected As Boolean
> Dim showSearch As Boolean = False
> Dim whereClause As String = "JobNum = '" + job + "'"
> Dim dsJobInfo As DataSet = SearchFunctions.listLookup(TimePhasForm, "JobAsmSearchAdapter", recordSelected, showSearch, whereClause)
> If recordSelected Then
> parentPart = dsJobInfo.Tables(0).Rows(0)("PartNum").ToString()
> Else
> parentPart = ""
> End If
>
> Return parentPart
> End Function
>
>
>
>
> End Module
>
>
>
> --- In vantage@yahoogroups.com, "Rob Bucek" <rbucek@> wrote:
> >
> > And if you do find a way to do that Ill pay dearly to know as well... In
> > so far as I've investigated and experimented I don't think there is a
> > way to 'append' columns to existing views. In the end what I did was
> > add an embedded dashboard to another sheet which was driven by the main
> > grid to show what I needed. Not as convenient as adding a column or two
> > but it had the distinction of getting the job done...
> >
> >
> >
> > Rob Bucek
> >
> > Manufacturing Engineer
> >
> > PH: 715-284-5376 ext 311
> >
> > FAX: 715-284-4084
> >
> > <http://www.dsmfg.com/>
> >
> > (Click the logo to view our site)
> >
> >
> >
> > ________________________________
> >
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> > Of iusevantage
> > Sent: Thursday, May 21, 2009 8:22 AM
> > To: vantage@yahoogroups.com
> > Subject: [Vantage] Add fields to Time Phased grid
> >
> >
> >
> >
> >
> > Hi,
> > I'm in the Time Phased form and I need to add a couple fields to to the
> > grid. It uses TimePhas as the datasource. I need to get a field from the
> > Part table included in ('included in' is key here) the TimePhas fields,
> > plus I'd like to also get a Customer field from another table (I'll use
> > any table that would work).
> >
> > I have tried several, well many, attempts using FKV and STV's and I have
> > gotten new views with the Searchword field from the Part table, but it
> > looks like I lose the initial TimePhas fields. Basically I just want to
> > keep the grid as is, but add the Searchword field from the Part table
> > and a Customer field from another table.
> >
> > I have looked at posts from here and from the Vantage site and it all
> > looks the same....just making a FKV where I lose my initial fields. Can
> > this be done? I'm not that adept at Vantage yet and maybe I'm missing
> > something. Any help is much appreciated!!
> >
> > Regards,
> >
> > Kurt
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
Hi,
I'm in the Time Phased form and I need to add a couple fields to to the grid. It uses TimePhas as the datasource. I need to get a field from the Part table included in ('included in' is key here) the TimePhas fields, plus I'd like to also get a Customer field from another table (I'll use any table that would work).

I have tried several, well many, attempts using FKV and STV's and I have gotten new views with the Searchword field from the Part table, but it looks like I lose the initial TimePhas fields. Basically I just want to keep the grid as is, but add the Searchword field from the Part table and a Customer field from another table.

I have looked at posts from here and from the Vantage site and it all looks the same....just making a FKV where I lose my initial fields. Can this be done? I'm not that adept at Vantage yet and maybe I'm missing something. Any help is much appreciated!!

Regards,

Kurt
I have been trying to get out Scheduled Shipment report to only show
Shipments for the days that I put in. When I copied the SchedShip Report
Definition with a new name and added a new Table Criteria for the OMR50
Table, there were no fields to use for my Criteria. So I copied the
Scheduled Shipment crystal report and put in a Parameter field. Now the
Crystal report asks me for a date, but it still shows all of the Shipments,
regardless of the Required by date. I went into Table Definitions and
entered OMR50 (the Table used in the Report Definitions) and I get a message
telling me that the Table does not exist.

Has anyone been able to set a Criteria in the Scheduled Shipment report?

Thank you

Jeff



[Non-text portions of this message have been removed]
And if you do find a way to do that Ill pay dearly to know as well... In
so far as I've investigated and experimented I don't think there is a
way to 'append' columns to existing views. In the end what I did was
add an embedded dashboard to another sheet which was driven by the main
grid to show what I needed. Not as convenient as adding a column or two
but it had the distinction of getting the job done...



Rob Bucek

Manufacturing Engineer

PH: 715-284-5376 ext 311

FAX: 715-284-4084

<http://www.dsmfg.com/>

(Click the logo to view our site)



________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of iusevantage
Sent: Thursday, May 21, 2009 8:22 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Add fields to Time Phased grid





Hi,
I'm in the Time Phased form and I need to add a couple fields to to the
grid. It uses TimePhas as the datasource. I need to get a field from the
Part table included in ('included in' is key here) the TimePhas fields,
plus I'd like to also get a Customer field from another table (I'll use
any table that would work).

I have tried several, well many, attempts using FKV and STV's and I have
gotten new views with the Searchword field from the Part table, but it
looks like I lose the initial TimePhas fields. Basically I just want to
keep the grid as is, but add the Searchword field from the Part table
and a Customer field from another table.

I have looked at posts from here and from the Vantage site and it all
looks the same....just making a FKV where I lose my initial fields. Can
this be done? I'm not that adept at Vantage yet and maybe I'm missing
something. Any help is much appreciated!!

Regards,

Kurt





[Non-text portions of this message have been removed]
Well, I could have swore I posted an example of how to do this before, but I searched back 2 yrs and could not find :-(

must be an age related thing.....

Here is some code we are using to add the parent part number field to time phase grid for jobs

This might give you some ideas or point you in the right direction:

Module Script


'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **

Private WithEvents edvTimePhas As EpiDataView

'// End Wizard Added Module Level Variables **


'// Add Custom Module Level Variables Here **



Sub InitializeCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
'// Begin Wizard Added Variable Intialization

edvTimePhas = CType(oTrans.EpiDataViews("TimePhas"), EpiDataView)

'// End Wizard Added Variable Intialization
'// Begin Custom Method Calls

If Not (edvTimePhas.dataView.Table.Columns.Contains("ParentPart")) Then
edvTimePhas.dataView.Table.Columns.Add(new DataColumn("ParentPart"))
End If
'// End Custom Method Calls
End Sub



Sub DestroyCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal

'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal

'// End Custom Code Disposal
End Sub



Private Sub edvTimePhas_EpiViewNotification(view As EpiDataView, args As EpiNotifyArgs) Handles edvTimePhas.EpiViewNotification
'// ** Argument Properties and Uses **
'// view.dataView(args.Row)("[FieldName]")
'// args.Row, args.Column, args.Sender, args.NotifyType
'// NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes
If (args.NotifyType = EpiTransaction.NotifyType.Initialize) Then
If (args.Row > -1) Then
AddParentPart()
End If
End If
End Sub

Private Sub AddParentPart()
For Each dr As DataRow In edvTimePhas.dataView.Table.Rows
If Not IsDBNull(dr("JobNum")) Then
dr("ParentPart") = getParentPart(dr("JobNum"))
End If
Next
End Sub

Private Function getParentPart(ByVal job As String) As String
Dim parentPart As String
Dim recordSelected As Boolean
Dim showSearch As Boolean = False
Dim whereClause As String = "JobNum = '" + job + "'"
Dim dsJobInfo As DataSet = SearchFunctions.listLookup(TimePhasForm, "JobAsmSearchAdapter", recordSelected, showSearch, whereClause)
If recordSelected Then
parentPart = dsJobInfo.Tables(0).Rows(0)("PartNum").ToString()
Else
parentPart = ""
End If

Return parentPart
End Function




End Module



--- In vantage@yahoogroups.com, "Rob Bucek" <rbucek@...> wrote:
>
> And if you do find a way to do that Ill pay dearly to know as well... In
> so far as I've investigated and experimented I don't think there is a
> way to 'append' columns to existing views. In the end what I did was
> add an embedded dashboard to another sheet which was driven by the main
> grid to show what I needed. Not as convenient as adding a column or two
> but it had the distinction of getting the job done...
>
>
>
> Rob Bucek
>
> Manufacturing Engineer
>
> PH: 715-284-5376 ext 311
>
> FAX: 715-284-4084
>
> <http://www.dsmfg.com/>
>
> (Click the logo to view our site)
>
>
>
> ________________________________
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of iusevantage
> Sent: Thursday, May 21, 2009 8:22 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Add fields to Time Phased grid
>
>
>
>
>
> Hi,
> I'm in the Time Phased form and I need to add a couple fields to to the
> grid. It uses TimePhas as the datasource. I need to get a field from the
> Part table included in ('included in' is key here) the TimePhas fields,
> plus I'd like to also get a Customer field from another table (I'll use
> any table that would work).
>
> I have tried several, well many, attempts using FKV and STV's and I have
> gotten new views with the Searchword field from the Part table, but it
> looks like I lose the initial TimePhas fields. Basically I just want to
> keep the grid as is, but add the Searchword field from the Part table
> and a Customer field from another table.
>
> I have looked at posts from here and from the Vantage site and it all
> looks the same....just making a FKV where I lose my initial fields. Can
> this be done? I'm not that adept at Vantage yet and maybe I'm missing
> something. Any help is much appreciated!!
>
> Regards,
>
> Kurt
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
Time Phase is a Progress 4GL compiled report that displays on screen (with a .Net Form wrapper around it) You can't change/add FKV table fields to the (temp) dataview displayed in the grid. There are no ud fields in this temp table you can hijack to add additional info to the grid displayed table.

You CAN play some VB code games that can overwrite existing data column/field values - but they clear on refresh.

The bulk of the temp table data comes from the PartDtl table (supply/demand info) and the tables that hold PO & MRP suggestions.

The 1st row (starting O/H for the plant) comes from summing the available O/H from each whse for the part.

With ODBC you can create your own version of time phase and display it as an html page (or an excel app). Our VERY talented IT folks went the HTML route.

I think a number of people (including myself) have tried creating dashboards to come up with their own time phase - but the BAQ editor doesn't support the full progress 4GL language set needed to populate a calculated display row number that is necessary to keep the data in proper sort sequence for a good time phase view.

Rob






Â



________________________________
From: iusevantage <iusevantage@...>
To: vantage@yahoogroups.com
Sent: Thursday, May 21, 2009 9:21:37 AM
Subject: [Vantage] Add fields to Time Phased grid





Hi,
I'm in the Time Phased form and I need to add a couple fields to to the grid. It uses TimePhas as the datasource. I need to get a field from the Part table included in ('included in' is key here) the TimePhas fields, plus I'd like to also get a Customer field from another table (I'll use any table that would work).

I have tried several, well many, attempts using FKV and STV's and I have gotten new views with the Searchword field from the Part table, but it looks like I lose the initial TimePhas fields. Basically I just want to keep the grid as is, but add the Searchword field from the Part table and a Customer field from another table.

I have looked at posts from here and from the Vantage site and it all looks the same....just making a FKV where I lose my initial fields. Can this be done? I'm not that adept at Vantage yet and maybe I'm missing something. Any help is much appreciated! !

Regards,

Kurt







[Non-text portions of this message have been removed]
Rob (Bucek),

I think my buddy Nick Taylor (in the UK) came up with something using Service Connect (dumping Time phase results into another db he uses on his legacy system - where he then can append additional data and control filtering to his heart's content).

They decided NOT to go forward with imlementing Vantage company wide (much to Epicor's chagrin I'm sure) - so I'm not sure how often he checks in on the Yahoo user group any more.

If he sees this though, perhaps he might contact you directly (??) and give some guidance to a friend of a friend?

Rob (Brown)


Â



________________________________
From: Rob Bucek <rbucek@...>
To: vantage@yahoogroups.com
Sent: Thursday, May 21, 2009 9:39:00 AM
Subject: RE: [Vantage] Add fields to Time Phased grid





And if you do find a way to do that Ill pay dearly to know as well... In
so far as I've investigated and experimented I don't think there is a
way to 'append' columns to existing views. In the end what I did was
add an embedded dashboard to another sheet which was driven by the main
grid to show what I needed. Not as convenient as adding a column or two
but it had the distinction of getting the job done...

Rob Bucek

Manufacturing Engineer

PH: 715-284-5376 ext 311

FAX: 715-284-4084

<http://www.dsmfg com/>

(Click the logo to view our site)

____________ _________ _________ __

From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On Behalf
Of iusevantage
Sent: Thursday, May 21, 2009 8:22 AM
To: vantage@yahoogroups .com
Subject: [Vantage] Add fields to Time Phased grid

Hi,
I'm in the Time Phased form and I need to add a couple fields to to the
grid. It uses TimePhas as the datasource. I need to get a field from the
Part table included in ('included in' is key here) the TimePhas fields,
plus I'd like to also get a Customer field from another table (I'll use
any table that would work).

I have tried several, well many, attempts using FKV and STV's and I have
gotten new views with the Searchword field from the Part table, but it
looks like I lose the initial TimePhas fields. Basically I just want to
keep the grid as is, but add the Searchword field from the Part table
and a Customer field from another table.

I have looked at posts from here and from the Vantage site and it all
looks the same....just making a FKV where I lose my initial fields. Can
this be done? I'm not that adept at Vantage yet and maybe I'm missing
something. Any help is much appreciated! !

Regards,

Kurt

[Non-text portions of this message have been removed]







[Non-text portions of this message have been removed]
Absolutely Rob~ We use the forecasting form and our purchasing people
needed to see what suggestions were coming from strictly the forecast
side and since they already spend a lot of time in the time phase side
it made sense for us to put it there. Essentially with some creative
linking in a BAQ (and subsequently embedding it in the time phase form)
I was able to show when a purchase suggestion was coming from an
unfirmed job created by MRP from forecast demand.



Rob Bucek

Manufacturing Engineer

PH: 715-284-5376 ext 311

FAX: 715-284-4084

<http://www.dsmfg.com/>

(Click the logo to view our site)



________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Robert Brown
Sent: Thursday, May 21, 2009 11:39 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Add fields to Time Phased grid





Rob (Bucek),

I think my buddy Nick Taylor (in the UK) came up with something using
Service Connect (dumping Time phase results into another db he uses on
his legacy system - where he then can append additional data and control
filtering to his heart's content).

They decided NOT to go forward with imlementing Vantage company wide
(much to Epicor's chagrin I'm sure) - so I'm not sure how often he
checks in on the Yahoo user group any more.

If he sees this though, perhaps he might contact you directly (??) and
give some guidance to a friend of a friend?

Rob (Brown)



________________________________
From: Rob Bucek <rbucek@... <mailto:rbucek%40dsmfg.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Sent: Thursday, May 21, 2009 9:39:00 AM
Subject: RE: [Vantage] Add fields to Time Phased grid

And if you do find a way to do that Ill pay dearly to know as well... In
so far as I've investigated and experimented I don't think there is a
way to 'append' columns to existing views. In the end what I did was
add an embedded dashboard to another sheet which was driven by the main
grid to show what I needed. Not as convenient as adding a column or two
but it had the distinction of getting the job done...

Rob Bucek

Manufacturing Engineer

PH: 715-284-5376 ext 311

FAX: 715-284-4084

<http://www.dsmfg com/>

(Click the logo to view our site)

____________ _________ _________ __

From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On
Behalf
Of iusevantage
Sent: Thursday, May 21, 2009 8:22 AM
To: vantage@yahoogroups .com
Subject: [Vantage] Add fields to Time Phased grid

Hi,
I'm in the Time Phased form and I need to add a couple fields to to the
grid. It uses TimePhas as the datasource. I need to get a field from the
Part table included in ('included in' is key here) the TimePhas fields,
plus I'd like to also get a Customer field from another table (I'll use
any table that would work).

I have tried several, well many, attempts using FKV and STV's and I have
gotten new views with the Searchword field from the Part table, but it
looks like I lose the initial TimePhas fields. Basically I just want to
keep the grid as is, but add the Searchword field from the Part table
and a Customer field from another table.

I have looked at posts from here and from the Vantage site and it all
looks the same....just making a FKV where I lose my initial fields. Can
this be done? I'm not that adept at Vantage yet and maybe I'm missing
something. Any help is much appreciated! !

Regards,

Kurt

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]