proofgeist / generator

Generator - Store, explore, share and create FileMaker Code
MIT License
35 stars 8 forks source link

Error getting XML Script Steps on Windows #28

Open fuzzzerd opened 6 years ago

fuzzzerd commented 6 years ago

Unable to utilize either function:

Actual Behavior: No data/script steps are on the clipboard

Expected Behavior Script steps are copied to the clipboard per the copied comments

Possible Resolution

The error stems from the custom function: clip_GetFMxml

It internally performs this calculation:

Let(
[
formats = BE_ClipboardFormats;
expression = "Left( item ; 4 ) = \"dyn.\"" ;
format = FilterValuesByExpression ( formats ; expression );

xml = BE_ClipboardText ( format );
...truncated...

Apparently this works on macOS for getting the copied script parameters; however, on windows the format dyn.ah62d4rv4gk8zuxnxnq does not work and needs to be Mac-XMSS

I believe changing to this should allow things to work on both Mac and Windows

xml = BE_ClipboardText ( If(Get(Device) = 2; "Mac-XMSS"; format) );
toddgeist commented 6 years ago

Hey thanks. thats a good one.

Could you attach a version of Generator that works on Windows so we can take a look?

fuzzzerd commented 6 years ago

GitHub wont allow me to upload the file directly, but here's a zipped version of it:

Generator.zip

I'm still having an issue with the JsonSetElement generator, but the other two are working correctly after making the above changes.