Data depending on form name in N6.0

Hi.

I needed a function where a user only could create a “newdoc” if a projectfile was selected. I therefore accessed the document properties with this formula from outlinebutton:

@If( form=“PROJECT”;@Command([Compose];“NEWDOC”);@Prompt([OK];“Reminder”;"No projects were selected! "))

My problem is now when using this code in N6 i always get the answer No projects were selected!. It worked well in N5, but in N6 it looks like something has changed, does anybody have a explenation to this or a workaround.

Thank!

Anders

Subject: data depending on form name in N6.0

I think I might be having a related issue. I have a form that I can create with the Create Menu, but when it is in an Outline button, it does not inherit field values and the formulas don’t work. I have a formula very similar to yours to compose the document. This document is use to create a single category view “holder” and is not saved when closed. Mine also worked until upgrades were done.

@If (Form = “Members”;@Command([Compose]; “”; “CallDetail”);@Failure(@Prompt([Ok];“Reminder”;“You must select a Member”)))