×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

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

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

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

(OP)
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

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

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

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

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close