Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to retrieve periods for a workgroup (BOC). Example VBA

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hi

My Name is Luis Alberto Miranda, I´m Chilean, I work with BOC/Bussiness Object Connector (mimsx.dll).

I need to retrieve information about WORKGROUP.

For example: I’m write a visual basic program use class workgroup

Dim MiBlock, Block As MIMSBlock
Dim MiReply As MIMSReply
Dim MiField As MIMSField
Dim MiRequest As MIMSRequest
Dim MiInstance As MIMSInstance

'Allows a connection to MIMS
MIMS_Connect

'Select Periods for WORKGROUP "WorkGroup1"
Block.Requests("Request").AddFieldNameValue MIMSX_FLAG_SERVICE, "WORKGROUP.RetrieveWorkGroupPeriods"

Block.Requests("Request").AddFieldNameValue MIMSX_FLAG_REPLYLIST, "WGPeriods,WGPeriodsActualCount,WGPeriodsRestart"

Block.Requests("Request").Instances("Instance").AddFieldNameValue "WorkGroup", "WORKGROUP1"

Set Reply = Block.Send

For Each Request In aobjReply.Requests
For Each Instance In Request.Instances

lstper.AddItem Instance.Fields.Item(1).ValueAsDate

Next
Next

The program load the list (lstper): 17/01/2002 (just the first period).

What can i do for load all the periods?.

the object "Instance.Fields.Item(1)" contain all the periods, but i don't know how show all the periods.

How do you get each period from the objects "Instance.Fields.Item" ?

If you have any comment, let me know, please
beto_miranda@hotmail.com

Regards
 
Beto:

The MSF730_SCHED_DATE file holds the periods for a work group and when they were last committed and the MSB700 forecast was run.

But what information are you really trying to get? Do you want to know which equipment was scheduled for service, the work orders created, and its backlog status during a scheduling period? That information is in the MSF740 file.

Hope this helps!

Donna
 
Thanks Donna.

I'm particularly interested in a VBA example. How can i get the periods of workgroups using BOC/Object Connector.

I can review the tables perfectly, I know where is the information in the database. But my problem how can i use BOC for retrieve periods of workgroup.

Regards.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top