metropoj
26th February 2015, 14:46
Need some assistance please.

I have a UEdll set up so that when I copy a record to a 'new' record I blank out the text assignment to '0' so that I don't assign the old text to a new record.

In theory this works fine and my new record has a text value of 0

In reality, the new record that displays on the screen still shows the previous text values until you move off the record, then back on.

Makes it confusing to see text on the form until you move off, then back onto the record.

I am sure there is a way via script or DFE setting to make this refresh but I am not having any luck finding anything.

Any suggestions ? This is an actual txt field and not a string. I can set my strings to "" to compensate.

bhushanchanda
26th February 2015, 15:10
Hi,

UE won't trigger when you use Duplicate button as there is no DB transaction involved until you hit save on duplicated record.

Is it possible to create DAL for the main table? Or its already in place? (I am assuming you are customizing standard session)

metropoj
26th February 2015, 15:22
This is correct. Upon hitting save, all my other values change via the UEDLL but my text box still shows old data.

I can create a DAL, maybe move my scripting over to a DAL instead. This is a good thought. Originally all this scripting was part of Items-General and no DAL option there but my custom session, yes.

I have no real in depth experience with the power of DAL :) Only created one, with limited functionality so I will try that route out.

I suspect some type of refresh is available upon a save or something ..

bhushanchanda
26th February 2015, 15:31
Hi,

One more way -

Say your field name is tcibd001.txta

Now, in your UE, you are assigning tcibd001.txta = 0 in before.before.save in DAL_NEW.

So, once the record is copied and saved, just do a refresh and the field will be blanked out.

AFAIK, you won't be able to control your form behavior even with DAL. So, the above mentioned way is one way without the source code.

Other ways are- Duplicating the session and write AFS to call standard in your script or Creating wrapper.

metropoj
26th February 2015, 16:05
Yes, that is where I'm doing the change, in before.before.

the code didn't seem to matter in DFE....

(cxitm101.esct.e > 0)?cxitm101.esct.e:""

Yes, hitting refresh does do just that, defreshes nicely

It may just be a fact of life of hitting refresh.

I will play around ( I think I'll need a DAL for some extended functionality anyways) and post if I find something other than 'hitting refresh' :) ..

bhushanchanda
26th February 2015, 16:07
Yes. That was irrelevant. :)