fulcrumapp / fulcrum-expressions

Fulcrum expressions engine
http://developer.fulcrumapp.com/expressions/intro/
5 stars 0 forks source link

FLCRM-10819 Add OPENEXTENSION function #59

Closed osbornk closed 1 year ago

osbornk commented 1 year ago

Add an OPENEXTENSION function in order to open an extension in an iframe.

Testing

Download https://gist.githubusercontent.com/zhm/c7a30a953ce16d79f0bd5adca95e8626/raw/c45c99e367940438d1809cdc78d2813c83521bab/index.html to some folder.

In that folder, run python3 -m http.server 9191 to expose this as localhost.

Go to https://rails7274.thefulcrum.team/dash/4c2234be-4487-48c8-8503-864cd67581ab

This environment is setup to use this version of Fulcrum Expressions. Open a record editor and click on select state. It should open the state picker in an iframe. Click on a state and the state name should appear in the record editor.

We are just testing Fulcrum Expressions here, not the Fulcrum code. This is the test expression:

https://gist.githubusercontent.com/zhm/c7a30a953ce16d79f0bd5adca95e8626/raw/c45c99e367940438d1809cdc78d2813c83521bab/data-event.js

zhm commented 1 year ago

We also need to add OPENEXTERNAL to the specialFunctions definition of functions that are not callable from calculation fields since they have side effects.