Jump to content


snell

Member Since 01 Feb 2006
Offline Last Active Feb 21 2006 02:05 PM
-----

Topics I've Started

Cursor Movement

15 February 2006 - 07:28 PM

Hi,
help me in navigation thru paging scetion


fielda: ok:
--------------------------------------------------
field1 filed2 field3 fileld 4



user enter value in 'fielda' and after enter , cursor should go to data in field4. When F3 , it should
go to field 'OK'.

I am using attributes as


field1 DAO ---- first key field of file in paging scetion
field2 DAO ----- second key field of paging section
field3 DAO --- third key field of paging section
field4 AO - filed to be changed.



as of now , every time cursor first goes to field1, then upon right arrow it goes to filed4.
whenevr tab or enter is pressed , cursor should go to the next row of same column

What parametrs does attributes should have

PRO FILE REDEFINED AND CREATED

09 February 2006 - 09:24 PM

Hello,

i am facing a problem while regen of all functions of pro file.

I have added one field to the file , then cratedusing @createf.

and changed the fucntions to use the field. while egen i am facing problem,



101 - INVALID EXTERNAL TYPE
- SEQ#: 005 C_WABCDF - LS#: 01


I didn't understand what to do now ??

Pl. let me know , why it is giving error.

paging screen in change mode

05 February 2006 - 06:30 PM

Hi,

i am facing a problem in paging screen handling( change mode) :

paging screen looks like this

field1 field2 field3 qty totalqty

aaa part1 1111 1
aaa part1 1112 4
aaa part1 1113 1
aaa part1 1114 0 6

bbb part3 2222 0
bbb part3 2223 7
bbb part3 4566 12 19



user can change the qty field as he wishes for field 1field2 field 3 , but sum of qty for that part number should not exceed total - quantity .
ie (1,4,1,0 = 6 , if user changes 2,2,2,0 = 6 . it is okay . less than total quantity is also okay.
but 1,4,1,2 > 6 is error. user must change the values so that it fits the equation)



the values displayed on the screen froma file with above saif fields and also one more field that has total quantity for all part number like below
this addtional field , i have created in prev report for making things easy.


field1 field2 field3 qty totalqty totl quantiy1

aaa part1 1111 1 6
aaa part1 1112 4 6
aaa part1 1113 1 6
aaa part1 1114 0 6 6

bbb part3 2222 0 19
bbb part3 2223 7 19
bbb part3 4566 12 19 19


here two check are required


if qty of filed3 > total quantity1 , then error and place the cursor at erro field ie qty

if sum of qty of all field3 of single part number > total quantity1 . then error.



when i put the above two logics in before write of file in paging section. it is not working. when i change the value for qty field
and go to next qty field, then also i don't see any change in qty field of file in before write.


How can check this logic ;)

suggestion please

Validate a screen field

01 February 2006 - 03:25 PM

Hi,

is it possible to validate a screen field with a PRO file.

file :
key filed1
key field2


screen:

\GS\
field1
OK ------ report function called
\GE\


As of now, i am calling a US in the screen function ie $chkfield , where i am doing sel-only(field1).
And setting a flag and LSEXIT.

this flag is checked in after logic of screen field field1. if true then go ahead with OK for report function.


Can't i do this in files of field.

002 $field1 4 MAO 002 014
Heading< Line Inp Chk< Files<
Window < Interface< Label: Spl Chk< NUMERIC More <
Help: Line


Guidance will be helpful