Composing Document and setting field

I want to compose a document and set a field in the new document (strApplVisualBasicApp)  when it is composed.  This is because the view i am creating the document from has a select formula that needs to see a value in the field that is set in order to display the document...

Select formula for view:
SELECT  strApplVisualBasicApp != ""

Action button code:
@Command([Compose];"";"Application");
FIELD strApplVisualBasicApp:= strApplVisualBasicApp;
@SetField(  strApplVisualBasicApp ; "VB App" )

Error I am getting:
Field name requires a value.
LVL 6
TheRookie32Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

marilyngCommented:
@Command([Compose];"";"Application");
@UpdateFormulaContext;
FIELD strApplVisualBasicApp:= strApplVisualBasicApp;
@SetField("strApplVisualBasicApp"; "VB App" )
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TheRookie32Author Commented:
y do you need the @UpdateFormulaContext;?  thanks!
0
marilyngCommented:
That should transfer the part of the code reference to the document, rather than the view.  Basically, there was a syntax error in the @setField.. but try with or without.  Cezar reminded me of the new command... it's peachy!
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

TheRookie32Author Commented:
works nicely, thanks!
0
TheRookie32Author Commented:
do you know of other notes websites where a person can get some knowledge from?  they seem to be few and far between...
0
marilyngCommented:
There are a few, but unfortunately, I am unable to post them here. :)
0
Sjef BosmanGroupware ConsultantCommented:
Hi Marylin,

Now where did I see that @Update... before?? ;)
0
marilyngCommented:
Cezar!!!  and I did give him credit!!! (unlike some other contributors on the site lately) >>Cezar reminded me of the new command... it's peachy!<<
0
Sjef BosmanGroupware ConsultantCommented:
LOL
0
marilyngCommented:
I was so tickled to see the command, after years of having to trick notes with duplicate statements of closing windows, opening windows, and everything else to get the focus on the open document.   I'm now going out of my way to see how many times I can use it... :>
0
Sjef BosmanGroupware ConsultantCommented:
My God, a new hobbyhorse...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.