Thanks, I'll give that a go
--- In vantage@yahoogroups.com, Steven Gotschall <sgotschall@...> wrote:
>
> Fields on standard forms in Vantage can be tricky to modify. Epicor has stuff going on in the background that the user just isn't aware of. I have ran across this before where fields get enabled or disabled and are outside my ability to control. What I do in this case is to hide or remove the field on the form and substitute it with a UD field. I then create a BPM and/or Customization that copies the UD field to the "real" field. This way I can control what happens in the UD field and the end user never knows that its not the real thing.
>
> What I would try in your case is to set the size of the description field to 1,1 to hide it and then put in its place your own UD field control. Then use a BPM for the part.update method and copy the UD field value to the Description. If you don't have the BPM module, you could do the update in VB from the customization, but I prefer to us BPMs when possible.
>
> You will have to come up with a way to initially copy all your existing descriptions to the UD field. You will also have to apply this customization to all forms that have the description in it and can be updated by the user.
>
>
>
> ________________________________
> From: wamitch1012 <wmitchell@...>
> To: vantage@yahoogroups.com
> Sent: Tuesday, June 16, 2009 6:56:01 AM
> Subject: [Vantage] Part Description Read Only ?
>
>
>
>
>
> There has to be an easy way of doing this but I cannot see how so I'd appreciate some help:
>
> I need to be able to set the Part.PartDescriptio n field to read only or to allow updates via a button click.
> I'm doing this as follows
>
> In Sub PartForm_Load I call SetExtendedProps( "")
>
> SetExtendedProps is like so:
>
> Private Sub SetExtendedProps( byval status as string)
> edvPart = CType(oTrans. EpiDataViews( "Part"), EpiDataView)
> if status = "Unlock" then
> edvPart.dataView. Table.Columns ("Partdescription" ).ExtendedProper ties("ReadOnly" ) = False
> elseif status = "lock" then
> edvPart.dataView. Table.Columns( "Partdescription ").ExtendedPrope rties("ReadOnly" ) = True
> else
> edvPart.dataView. Table.Columns( "Partdescription ").ExtendedPrope rties("ReadOnly" ) = True
> btnLock.visible = False
> btnUpdate.Visible = True
> end if
> otrans.refresh
>
> End Sub
>
> When I load an existing part then the description field is set to Read Only, which is as it should be.
> If I click on my Update button then it changes to update mode, again correct.
> But if I change the field, save it, then click on the Lock button, nothing happens.
>
> Can anyone suggest how I get round this ?
>
> Thanks
>
> W
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>