ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Function Expose] Page 5907 Service Item Worksheet Subform - NoOnAfterValidate

Open bleisibach opened this issue 7 years ago • 7 comments

Can you please make function NoOnAfterValidate() in Page 5907 Service Item Worksheet Subform External/Global please?

bleisibach avatar Dec 19 '18 14:12 bleisibach

Sorry, after reviewing your suggestion similar to the other function request, we've decided that it isn't something we'll implement. However, you may call NoOnAfterValidate() by validating one of the other fields that already call NoOnAfterValidate() like the following VALIDATE(Type) or VALIDATE("No.")

darjoo avatar Dec 21 '18 11:12 darjoo

Hi @darjoo In contrast to call a validate on a record/table, I don't know how to call a validate trigger of a page. Am I missing something?

bleisibach avatar Dec 21 '18 13:12 bleisibach

Hi @darjoo, @JesperSchulz Sorry to nag on you here. But the workaround you proposed is not working on pages. Can you may be revaluate your decision?

bleisibach avatar Jan 15 '19 08:01 bleisibach

Hi @bleisibach, My apologies for missing the previous message. I've spoken with @JesperSchulz about this issue and we're avoiding exposing business logic on pages. We understand it is badly placed in the first place as it should not be on the page.

As the functions in NoOnAfterValidate are external, you would be able to create a copy of the function wherever you need it. Would that unblock you? If not, please let us know what the specific scenario you are facing and we'll take a look at it.

darjoo avatar Jan 15 '19 10:01 darjoo

Hi @darjoo

Thank you for comming back on this. We fully understand that you hesitate to expose business logic on pages.

Your suggestion to build a copy of the function is ok, still we need to make a copy of InsertExtendedText(Unconditionally : Boolean) also, because this function is not Global/External. Can you expose this function even it is on a page? If not, this is not a showstopper or us, we will find a way to copy the functionallity. Thank you.

bleisibach avatar Jan 17 '19 08:01 bleisibach

Hi @bleisibach,

The functions in InsertExtendedText are external, like TransferExtendedText.ServCheckIfAnyExtText, TransferExtendedText.InsertServExtText and TransferExtendedText.MakeUpdate. You would have no problems copying that function.

darjoo avatar Jan 17 '19 08:01 darjoo

Hi @darjoo We will do so. Thank you!

bleisibach avatar Jan 17 '19 09:01 bleisibach