Skip to Content
author's profile photo Former Member
Former Member

Default selection of Prospect when creating BP in mobile client

Hi All,

When ever a new BP is being created in MSA, by default 'Prospect' check box should be selected and other check boxes (classifications) should be deselected.

I have made relevant changes in BOCAPGEN in 'Loaded' event. However, when I generate this object it is resulting in an error and the error says,

'DateTime' is not a member of 'Scripting.FileAttribute'.

This error is in the method RelValidDate_SupplyMethod and find below the code.

Public Function RelValidDate_SupplyMethod() as Object

'Combined Method Level Migration Done - this comment added automatically, 9/4/2008 5:40:32 AM

Dim tim As Date

'Version created for transport to 30

'Version created for transport to 30

If ((_unwind(_unwind(TimeOfDay)) = CDate("00:00"))) Then

tim = CDate("00:01")

RelValidDate_SupplyMethod = *unwind(Scripting.FileAttribute.System.DateTime.FromOADate((unwind(Today.ToOADate()) + _unwind(tim.ToOADate()))))*

Else

RelValidDate_SupplyMethod = unwind(Scripting.FileAttribute.System.DateTime.FromOADate((unwind(Today.ToOADate()) + _unwind(TimeOfDay.ToOADate()))))

End If

End Function

Please advice on this.

Thanks,

Chan

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 09, 2008 at 10:26 AM

    Hi,

    this looks like that the CMT (code migration tool) is started after your changes and makes some nonsense (as you can see the generated comment).

    I heard from other colleagues that they have a similiar issue with 2007 SP2 but without syntax error.

    Regards,

    Wolfhard

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 05:50 PM

    Hello Chan

    This issue clearly says that Method Level migration is not done on that particular object. Hence code remains in Visual Basic 6.0, not migrated to VB.Net

    Inorder for MLM to run.register the dlls scrrun.dll and vbscript.dll

    (present in C:\windows\System32 folder).

    After doing this, Open MAS and Do generate the BOCAPGEN alone and then build the solution.

    Regards

    Shankar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.