Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 09 JAN 1998 08:23:43AM Dominic Glennon wrote:

Hi, I'm trying to call a popup with literal data, but I only want to display one column from the literal data (which has about 14 columns). The popup is mode 'L', and I've specified the number of the column I want to display in format; I also want the popup to return the whole row of data selected, so have given it type 'E'.

However, the popup only displays and returns the first column of each row specified in the display. Am I doing something wrong or is this just a bug in OI 3.4?

Thanks in advance for your help,

Dominic Glennon,

Analyst Programmer,

Cambridge University Press.

[email protected]


At 09 JAN 1998 09:53AM Aaron Kaplan wrote:

You might want to consider return type C instead.

[email protected]

Sprezzatura, Inc.

www.sprezzatura.com_zz.jpg


At 09 JAN 1998 10:33AM Dominic Glennon wrote:

Can you specify more than one field using return type C? The display consists of 14 columns (@SVM-delimited), but I only want to display one of these (the 14th, as it happens); however, I want all 14 columns returned. Can this be done?


At 09 JAN 1998 02:39PM Janie Millard wrote:

This is a literal popup, so I assume you are storing the information in a dynamic array in the program that calls the popup, if you aren't the following won't help you.

put only the one column you want to display into the popup and have it return the row number or the value of the column.

1) if you return the row number, look up the rest of the data in your array based on that row number

2) if you return the column value selected, locate the value in that column in your array and then extract the row's data from your array based on the located row number


At 12 JAN 1998 01:23PM Cameron Revelation wrote:

Dominic,

Can you specify more than one field using return type C? The display consists of 14 columns (@SVM-delimited), but I only want to display one of these (the 14th, as it happens); however, I want all 14 columns returned. Can this be done?

It will not work as you described. The suggestion from Janie Millard will work. Use Popup PTYPE$ of "P" and look up the result in the list of data that you have. If you need more help with this, please post the code you are using to call the Popup.

Hope this helps,

Cameron Purdy

Revelation Software


At 19 JAN 1998 10:04AM Dom Glennon wrote:

Thanks, I ended up doing it this way - it just seems that the Popup framework would allow you to do it in the original way I suggested - after all, you can display specific fields from a table and yet return the whole row, why shouldn't you be able to do the same with literal data?

Dom

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/9ea5f065c34007118525658700499543.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1