[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Another question in relation to Q_21843238.html

Posted on 2006-05-09
10
Medium Priority
?
180 Views
Last Modified: 2013-12-18
Hi all,

part two of question Q_21843238.html

In the second part of the code, I will also need to amend the following:

<thead><tr>
<TH align="left">Branch </th>
<TH align="left">Product Code</th>
<TH align="middle">Van 1 </th>
<TH align="middle">Van 2  </th>
<TH align="middle">Van 3</th>
<TH align="middle">Van 4</th>
<TH align="middle">Van 5</th>
<TH align="middle">Van 6</th>
<TH align="middle">Van 7</th>
<TH align="middle">Van 8</th>
<TH align="middle">Van 9</th>
<TH align="middle">Van 10</th>
<TH align="middle">Total</th>
</tr></thead>

Above each of the "Van.." entries, I should be able to include a computed field, this computed field is a called description and has the van description. This field is also in the same form and view as the centre field in earlier code.

Could we maybe do a computed value for each description field, to look each equivalent value in the view(viewname). For example, if descrip1 exists in column 4 of view, the following should be done:

Create a computedvalue in script (as previous example in Q_21843238.html) and the value of it will be:

descrip1 := @Trim("Please Select":@IfError(@DbColumn("":"NoCache"; ""; "yournewview"; 4);""));

This is not a list, each field of the 10 description field has a different value, and they should each reside above or on mouseover of each equivalent van, for example, if I chose mousemove event, if I place mouse over van2, then i expect the descrip2 field details to pop up, otherwise hidden.

I also, couldn't work out where on the form these computed values shoule exist,
I thought, maybe on the same line as each equivalent van:

For example,

<TH align="middle">Van 1 onmouseover = computedtext </th>

Where computed text will have the lookup value from the view?

Am I really far of the track here? I need real advise.

Your help is much appreciated.
0
Comment
Question by:varvoura
  • 6
  • 4
10 Comments
 
LVL 14

Expert Comment

by:cezarF
ID: 16639868
if you have the list van desc in a field, you can use the formula below in each of the computed text

AllVanDescField[1] for Van 1, AllVanDescField[2] for Van 2, and so on.

i haven't tested this but I just wanted to raise that stringlist can be subscripted in R6.
0
 

Author Comment

by:varvoura
ID: 16640235
cezarF,

We're using R5 server with R6 client. Would these still work?

Each description field is separate. For example, the van description field has

centre
centre code
desc 1
desc2
desc3
desc4
descn

I suppose in saying that, desc1 will be for van 1, desc2 for van 2, etc..
Where would these computed field go on the $$viewtemplate, next to the <td> van1 </td>?

0
 

Author Comment

by:varvoura
ID: 16640276
These description fields are also in the same view as the centre code, could we not use similar lookup in the formula in the computed text for each of the description field.


0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 14

Expert Comment

by:cezarF
ID: 16640531
@dblookup should do it as long as you have a key which links the doc to the first sorted column of your lookup view.
assuming centrecode is the key,
decs:= @Trim(@IfError(@DbLookup("":"NoCache"; ""; "vkdescription"; centrecode; "<Description Field>");""));

for R6, you can use decs[3] to get the van 1 description, decs[4] to get the van 2 description and so on

for R5, @Subset(@Subset(decs;3);-1) to get the van 1 description, @Subset(@Subset(decs;4);-1) to get the van 2 description and so on


0
 

Author Comment

by:varvoura
ID: 16640923
cezarf,

Where would this computed text be included on the $$viewtemplate form?

I tried placing it next to <TD> van </TD>... but it does seem to work and outside of the table dimension, it also doesn't work because it needs to link to van field which exists within the table
0
 

Author Comment

by:varvoura
ID: 16641142
Also, I am not sure if i am making understand this correctly

we have two forms

form 1 - vanlist - fields are: vwhcode(code of center) vqty1, vqty2.....vqty10

form 2- vandesc - has vwhcode(code of center), desc1, desc2, desc3

Where qty1 on form 1 relates to desc1 on form 2
qty2 on form 1 relates to desc2 on form 2 and so on until 10

0
 
LVL 14

Accepted Solution

by:
cezarF earned 2000 total points
ID: 16644470
varvoura,

create a view to display vandecs docs having vwhcode in the first sorted column. to get the description of van 1,
   (stick to R5 coding)
   descVar1 := @DbLookup("":"NoCache"; ""; "vkdescription"; <YourCentreCode>; "desc1");
   @If(@IsError(descVar1);"";descVar1);

do the same for other van descriptions.

do you need to lookup the van list as well? need to use 10 hidden fields to do so.


0
 

Author Comment

by:varvoura
ID: 16647368
I resolved this issue different at work today, but I thank you so much for trying so hard to help. It is truly appreciated.

Varvoura
0
 

Author Comment

by:varvoura
ID: 16647390
Used computed value and within the text, keyed in a lookup value which worked magic.

Thanks again
0
 
LVL 14

Expert Comment

by:cezarF
ID: 16647530
thanks, but you don't have to accept my comment as answer if it didn't help you. :)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

834 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