How to make computed field editable?

I have a form and there are some fields on this form. There is a names computed field called adminperson. The formula for this field :
tmp:= @If(Department="Accounts"; "Ryan/abc_corp";Department="Application";"Brad/abc_corp";Department="Sales Admin";"Ryan/abc_corp";Department="Network Systems";"Ryan/abc_corp";Department="Admin";"Ben/abc_corp";Department="Special/Account Project";"Tom/abc_corp";"");
@If(@IsError(tmp);"";tmp)

When the form is being created, User will enter an employee id and it will display the employee name, office, department in their respective fields and it will also display the admin person in charge name in the adminperson field of this employee id based on his/her department.

I like to make the field adminperson to be editable in case the person in charge in the adminperson field is not in, user can assign another person to be in charge of his request.

How do I make the field to be editable(Form will always load the person-in-charge name after user entered employee id)?
Please advise.
THank you.
kopibeanAsked:
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.

madheeswarCommented:
created and editable field upto the computed.
And hide it; !@isMember(@userroles;"[Admin]")
and for computed, @isMember(@userroles;"[Admin]")


So, whenever Admin edits this doc, he will see editable field. Editable field name say, field1

for computed field add this formulae:
I assume, your formulae works:
tmp:= @If(Department="Accounts"; "Ryan/abc_corp";Department="Application";"Brad/abc_corp";Department="Sales Admin";"Ryan/abc_corp";Department="Network Systems";"Ryan/abc_corp";Department="Admin";"Ben/abc_corp";Department="Special/Account Project";"Tom/abc_corp";"");
res:=@If(@IsError(tmp);"";tmp);
@unique(res:field1)



0
Sjef BosmanGroupware ConsultantCommented:
Add a field that will contain the effective adminperson. If not filled in, the computed one should be used. You could even copy the computed one to the effective one when saving the document.
0
madheeswarCommented:
Sjef is right
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Sjef BosmanGroupware ConsultantCommented:
Kopibean, just a suggestion: don't put names in the design, but use some document(s) where you can store who's responsible for what department. Then, use a view and a @DbLookup to get the resp. admin.
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
kopibeanAuthor Commented:
sjef,

how do I create this field to contain the effective person if not filled in, then the computed field will be used?

In my send button, formula is
@MailSend(adminperson ;"":"";"";"Travel Request";"";"Travel Request has been posted. ----->";[IncludeDoclink]);

@Command([FileSave]);
@Prompt([Ok];"Message Sent";"Your Reservation Request has been sent to Admin Dept.")
0
Sjef BosmanGroupware ConsultantCommented:
I suppose you have a button that will take care of all? The idea is to always fill in the effective adminperson, or to have a third field (computed, hidden) that contains the adminperson to be used. I agree, yet another field, but it usually weighs up to a lot of formula coding all over the place.

Add a formula like
     @If(EffAdminPerson=""; @SetField("EffAdminPerson"; AdminPerson); "");
or
     FIELD EffAdminPerson=@If(EffAdminPerson=""; AdminPerson); EffAdminPerson);
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.