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

Another Windows RowMap@ question (OpenInsight 16-Bit Specific)

At 12 JUN 2002 03:19:46PM Mark Ford wrote:

We are changing the format of a number of fields in a window using the following code:

new_record=xlate(rp.survey:"_QUS",save_id@,,"X") WinID=CrtlEntID1,"." $Insert OIWIN_COMM_INIT format=new_record ;* This a date format "date_format,1" RowMaps@=Format RowMaps@=Format ControlSemantics@=Format ControlSemantics@=Format =send_event('SI_DF_DEFINE', "READ" After making these changes to the window-field properties and reading the data record the data is displayed in the correct external format. When the data record is saved the data is stored in the correct internal format. However, using the above to change the properties of an edit table no conversion takes place. We have defined a an edit table with five columns. We wish to apply the format to the 4th and 5th columns ONLY. The field number (tab order) for the table is 13. How can we make the format change to just columns 3 nd 4 of the Edit Table? One other question: 1. The data format for FieldA, FieldB and FieldC can be different for each data record. For this reson we have defined the format for these fields as . Can we assume when a data record is saved the conversion (iconv) field in the window will be used for the conversion? Any help with this will be much appreciated. </QUOTE> —- === At 13 JUN 2002 08:51AM The Sprezzatura Group wrote: === <QUOTE>For RowMap@, you just need to find the accociated field, since each @FM field. For control semantics, the edittable fields are @TM delimited, so you'll have to pull out the @SVM field then use Field() to get the speicified data. We have a very comprehensive spec of the window strcuture documented in Technical Briefing #2 which will help you manipulate the compiled window. If you have more questions, let us know. The Sprezzatura Group World Leaders in all things RevSoft </QUOTE> —- === At 13 JUN 2002 12:05PM Mark Ford wrote: === <QUOTE>Thanks for you help. We have ordered Revmedia 1 & 2. </QUOTE> —- === At 13 JUN 2002 07:29PM Mark Ford wrote: === <QUOTE>I have the Sprezzatura Windows Revmedia documentation. This has helped as it has provided us with an an excellent understanding of what Rowmaps and Control Semantics are used for. However, we are still experiencing problems changing the format of a Edit Table column. We can modify edit box formats. The Edit Table fields are defined as multivalue in the database and are in position 11,12,13,14. The Edit Table is listed (tab Order) as field number 13 on the screen. We have been unsuccessful in our attemps to change the Format of the Semantics window control. We tried using @SVM and @TM combinations but no no avail. To change the Format of the Edit Table control we used this code: format=date_format,1" RowMaps@=Format RowMaps@= Format ControlSemantics@=':@TM::@TM::@tm:Format ControlSemantics@=':@TM::@TM:'':@tm:Format

The format date_format,1} is valid and works correctly in other fields on the window.

I suspect our problem is the incorrect use of Control Semantics@.

What am we doing wrong?

Any help would be appreciated.

View this thread on the forum...