Solved

The View shows the Checkbox's synonym

Posted on 2006-06-29
7
297 Views
Last Modified: 2013-12-18
I've a checkbox with many choices e.g. Hardware | A4

The Form shows Hardware that's OK but the View shows A4
How can I get the View show Hardware instead of A4?
0
Comment
Question by:verto33
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 25 total points
ID: 17009592
Use a translation formula:

    @Replace(CheckBoxField; "A4":"A5":"A6":....; "Hardware":"Software":"Tupperware":...)
0
 
LVL 13

Assisted Solution

by:CRAK
CRAK earned 20 total points
ID: 17012838
I often throw in 3 fields to (A) allow dynamic changes to the lists of choises and (B) speed up views by less computations.

1st usually has a suffix "_choises" (e.g. "myField_choises", text, multi value, comp. for display, hidden)
Formula could be anything like "choise1|A":"choise2|B", a @DbLookup etc.

2nd ("myField", editable, radio, checkbox, combo or such) retrieves its values from that field (_choises".
This would be your current field.

I usually give the 3rd a prefix "_selected" (e.g. "myField_selected", computed, multi value, hidden).
Formula:
input_lst := myField_choises;
select_lst := myField;
input_scrambled_selection := @ReplaceSubstring(input_lst; select_lst; "");
input_delete_unscrambled := @Replace(input_lst; input_scrambled_selection; "");
@Trim(input_delete_unscrambled)

(input_lst and select_lst refer to the 2 fieldsnames that were used ealier. Change those if applicable; the rest of the formula is reusable)

This will deliver e.g "choise1|A" (or in the case you provided: "Hardware|A4").

You perform a @Left(....; "|") on the result.
The last line of the 3rd field's formula would then read:
@Left(@Trim(input_delete_unscrambled); "|")

Or, if you dont mind the computation in a view's column:
@Left(myField_selected; "|")
0
 

Author Comment

by:verto33
ID: 17016902
I guess I should ad the @Replace formula to the Input Translation.
I did it but it is as before, in the view (in the column) I see still A4, A5 etc.

I will test the command and if nok I remove the synonym from the checkbox.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 18

Assisted Solution

by:marilyng
marilyng earned 20 total points
ID: 17017304
Verto33,

where did you put the translation formula?  on the form or in the view?  I think you put it in the form?  Try putting it in the column formula on the view.

As both sjef and CRAK indicate, when you have a formula with an alias, Hardware|A4, and you select "Hardware"  the "Hardware" shows up on the form, but the actual value is "A4" which shows up in the view.

So you either have to use the translation formula in the VIEW as sjef suggests, or as CRAK suggests, add another field that "translates" the value so you can use THAT field in the view.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 17017399
This is all because the view doesn't know anything of the form. As Marilyn says, the alias is stored in the document, but the selected value is only known in the form, and nowhere else. That means that you have to do some translation in the view. But, whenever you change the form and add new values and aliases, you'd have to change the view as well!
0
 

Author Comment

by:verto33
ID: 17017492
Yes, I put it on the Form.
When I saw that I've to use the Translation formula I immediately thought on the Input Translation of the field because the column has no other part as Column Value.

It works now, thanks.

0
 
LVL 13

Expert Comment

by:CRAK
ID: 17020667
Sorry I wasn't there for you today. Glad to hear you've got it working with the help of my friends.
Thanks for the point & help, all!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Peculiar IBM Lotus Notes / Cisco VPN Issue 21 890
names.nsf ODS upgrade 4 421
Lotus notes error message 6 93
Lotus Notes transfer mail box problem 6 91
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now