Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

nrousseau
2008-03-12 10:50:20

After check again the data is not saved as you said yes, it's ok on the version planned for 2.3.2 but not in the 2.3.1...

Fxp
2008-03-06 10:23:53

I tried on the tCreateTable component which already have hidden parameter.

Code:

<PARAMETER NAME="HIDDENMAPPING-TYPE-TEXT" FIELD="TEXT" NUM_ROW="8" SHOW="false">
      <DEFAULT>mysql_id</DEFAULT>
</PARAMETER>

<PARAMETER NAME="HIDDENMAPPING-TYPE-MAP" FIELD="MAPPING_TYPE" NUM_ROW="8" SHOW="false">
      <DEFAULT>mysql_id</DEFAULT>
</PARAMETER>

Restart TOS, Create new job, add tCreateTable and save job will produce:

Code:

   
 <elementParameter field="TEXT" name="HIDDENMAPPING-TYPE-TEXT" value=""/>
 <elementParameter field="MAPPING_TYPE" name="HIDDENMAPPING-TYPE-MAP" value="mysql_id"/>

So it looks a parameter with FIELD="TEXT" and SHOW="false" is not saved into the item file. A MAPPING_TYPE field is ok.

Could you reproduce that ? (using TOS2.3.1 r11699)

Nicolas, what did you add to the tMsgBox which works for you ?

Francois

nrousseau
2008-03-06 09:01:53

Each database component right now got a field "TYPE" (database type)

and this field seems the same, and is saved without problem in the job.

I tried also in one "random" component (tMsgBox), i got this in the file:
<elementParameter field="TEXT" name="OPERATION_NAME" value="LENGTH"/>

plegall
2008-03-06 08:46:58

Code:

[pierrick@plegall] ~/dev/tos/svn/shortcuts/2.3/components
$ grep -il 'SHOW="false"' */*_java.xml | wc -l
84

So we have 84 Java components containing at least one hidden parameter.

Code:

[pierrick@plegall] ~/dev/tos/svn/shortcuts/2.3/components
$ grep -il 'SHOW="false"' */*_java.xml | head
tAccessInput/tAccessInput_java.xml
tAccessOutput/tAccessOutput_java.xml
tAdvancedFileOutputXML/tAdvancedFileOutputXML_java.xml
tAS400Connection/tAS400Connection_java.xml
tAS400Input/tAS400Input_java.xml
tAS400Output/tAS400Output_java.xml
tAS400Row/tAS400Row_java.xml
tCentricCRMInput/tCentricCRMInput_java.xml
tCreateTable/tCreateTable_java.xml
tDB2Input/tDB2Input_java.xml
Fxp
2008-03-06 08:28:04

Hi, I forgot the <DEFAULT/> tag in my first post, sorry

If SHOW="false" and <DEFAULT>LENGTH</DEFAULT> or  <DEFAULT>"LENGTH"</DEFAULT>
    <elementParameter field="TEXT" name="FORMAT_TYPE" value=""/>
which is not correct.

If SHOW="true" and <DEFAULT>LENGTH</DEFAULT>
    <elementParameter field="TEXT" name="FORMAT_TYPE" value="LENGTH"/>
If SHOW="true" and <DEFAULT>"LENGTH"</DEFAULT>
    <elementParameter field="TEXT" name="FORMAT_TYPE" value="&quot;LENGTH&quot;"/>
which is fine.

I'll probably move this parameter to the 2.3.1 advanced tab for the moment ... Could you reproduce the problem ?
Do you know any TOS default component using SHOW="false" ?

Thanks. Francois

nrousseau
2008-03-06 02:43:10

I think you should try with:

<PARAMETER NAME="OPERATION_NAME" FIELD="TEXT" SHOW="false" NUM_ROW="2">
   <DEFAULT>LENGTH</DEFAULT>
</PARAMETER>

(with or without quote to your value, depends how you use)

Nicolas

Fxp
2008-03-05 17:12:57

Hi, I'm currently migrating components to TOS 2.3.1 and I have a problem with PARAMETERS which are not visible (SHOW="false").
eg.
<PARAMETER NAME="OPERATION_NAME" FIELD="TEXT" SHOW="false" NUM_ROW="2">LENGTH</PARAMETER>

Then this is used in order to pass parameters using template. But using TOS2.3.1 parameters are not saved into the jobname.item file. Value is always set to "".
    <elementParameter field="TEXT" name="OPERATION_NAME" value=""/>
If I set this parameters visible, then the value is saved to the .item file ... but I don't want user to see that parameter. Is that the new behaviour of TOS 2.3.1 or a bug ?

Any ideas ?

Thanks for your help
Francois

Board footer

Powered by FluxBB