include in form.xml VDC

Yves Vallet <[email protected]>
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <CANdMB596xxcK399iJ0v0RJfhWyPCskRmzDtcMWYRtNjj7+0N8A@mail.gmail.com>
with VDC 1.2.35 Rel 08.04.2014

the 'required, NOT NULL , INCLUDE ' clauses have no effect
when exec of the programm

exemple below:


execute program.4ae :

Field a   accept  any characters
    include and required defined in then form  have no effet

--------------------------------------------------------
database formonly
screen
{

   zone a [a  ]

          [b  ]

}
attributes
a=formonly.a type char, upshift, required, include=("A","B","C") ;
b=formonly.b type smallint ;
end
#########################

database sotracom
main
define a char(1)
define b smallint

open window w1 with form "yv"
input by name a , b


after field b
  error "fin"

end input

end main
###################################

fcompile -xml yv.per
   gives yv.xml  :


<?xml version="1.0" encoding="utf-8"?>
<Form name="yv.afr" sqlDbName="formonly" width="15" height="6"
delimiters="[]|" encoding="">
<Screen width="14" height="4" >
<Label text="zone a" posY="1" posX="3" gridWidth="6" guessAlign="L"/>
<FormField name="formonly.a" colName="a" fieldId="0" sqlTabName="formonly"
 sqlType="CHAR(3)" required="1" include="A|B|C" tabIndex="1" >
  <Edit width="3"  shift="up"  posY="1" posX="11" gridWidth="3"/>
</FormField>
<FormField name="formonly.b" colName="b" fieldId="1" sqlTabName="formonly"
 sqlType="SMALLINT" tabIndex="2" >
  <Edit width="3"   posY="3" posX="11" gridWidth="3"/>
</FormField>
</Screen>
<RecordView tabName="formonly">
   <Link colName="a" fieldIdRef="0"/>
   <Link colName="b" fieldIdRef="1"/>
</RecordView>
</Form>



-- 

             Tel 01 46 87 40 35
                  06 87 52 23 95

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
problem_include.pdf (application/pdf, 374.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.