• Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

Business Functions, Data Dictionary, and Display Rules

amwalshjde

Well Known Member
I want to attach a Buiness function (ER) to the display rule within the data
dictionary. I have created the data structure (one variable, alias UPCN).
Then I created the business function that uses the mentioned data structure.
All the business function does, is substring out positions 2-13 of that
field.

I can run the function in a custom app, and it does what is expected, yet
when I attach to the display rule nothing happens. I want it so that
everytime that field is displayed it only shows positions 2-13. I can't,
and don't know where to mapp parameters into the business function when
using the display rule?

Has anyone used a business function in a display rule? Or has anyone done
some similar in a different way?

Thanks.
AW


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
 

Zoltan_Gyimesi

Legendary Poster
Hi AW,
Although I have never used BSFN as Display Rule I have some suggestions.

1.) Try to investigate an existing Display Rule BSFN and its Data structure e.g. B0000095, D0000095. I suppose it have to be a standard DSTR format. Further, I investigated our Data Dictionary on B7332 and have found only 11 item which has a BSFN Display Rule (where FRBFDN is not equal to blank in F9210 table). All of it CO related and has FormatCompanyNumber BSFN as Display Rule except one.

2.) Use a separate control or grid column to store the value and to display the value. Manipulate them with ER in the appropriate events e.g. after fetch + before display and before insert and update and delete. It depends on the type of Form and type of field (Form or Grid).

Hope, could help a bit
Zoltán
P.S: Next time do not forget to describe your system configuration ;-)

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 

amwalshjde

Well Known Member
Zoltan-

Thanks for the info. I already looked at the other dd items that have the
business function call in them. I found that same thing that you did, all
of the other ones were for formating the company number. The function that
does that is coded in C, not NER. I would like to code mine in NER (mostly
'cause my C is 'bout as good as my english grammer). I am hoping that
someone out there has done this with a NER BSFN..

As far as your second point I thought a little about that, however I was not
looking forward to modifing the code on EVERY screen that this field is on,
and having to redo them as they upgrade (we are not live yet). I was hoping
to have just one spot to control it everywhere...

I might go back to the FormatCompany and look at the C code to figure out if
I can make it do what I want. I have talked to JDE and they dont have or
cant find any documentation for this topic.

Thanks again....I appriciate all your posts to the list

B7332 sp 13.1 AS/400

AW
 

Zoltan_Gyimesi

Legendary Poster
Re: RE: Business Functions, Data Dictionary, and Display Rules

Hi AW,
I am really affraid that there is no way to write NER BSFN for Edit Rule purpose.
I have an other suggestion: try to accomlish you formatting with Table Event Rules. This could a good way if your DD item resides only in few tables and used on several forms.
Please, let me know if does it work for you.
Thanks
&
Good luck,
Zoltán

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 
A display rule must have a form attached to it. The BSFN will display the
data in a form. So you need to create an application and call the BSFN from
the application to display the data. Then attach the application to the
display rule in the DD.

Arup




amwalshjde
<amwalshjde@yahoo To: jdelistml@jdelist.com
.com> cc:
Sent by: Subject: Business Functions, Data Dictionary, and Display Rules
owner-jdelistml@j ~~0:4150
delist.com


18/01/2001 12:28
AM
Please respond to
jdelist





I want to attach a Buiness function (ER) to the display rule within the
data
dictionary. I have created the data structure (one variable, alias UPCN).
Then I created the business function that uses the mentioned data
structure.
All the business function does, is substring out positions 2-13 of that
field.

I can run the function in a custom app, and it does what is expected, yet
when I attach to the display rule nothing happens. I want it so that
everytime that field is displayed it only shows positions 2-13. I can't,
and don't know where to mapp parameters into the business function when
using the display rule?

Has anyone used a business function in a display rule? Or has anyone done
some similar in a different way?

Thanks.
AW


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com




--------------------------
To view this thread, visit the JDEList forum at:
http://198.144.193.139/cgi-bin/wwwthreads/showflat.pl?Cat=0&Board=OW&Number=4150

*************************************************************
This is the JDEList One World / XE Mailing List.
Archives and information on how to SUBSCRIBE, and
UNSUBSCRIBE can be found at http://www.JDELIST.com
*************************************************************
 
Top