我在报告中有 3 个参数。我想在我的 TextField 中转换描述中的所有 id 参数。
The first parameter is $P{address}
if $P{address} = 1 then "Port Garden"
else if $P{address} = 2 then "pangsa maju,indah"
else if $P{address} = 3 then "eastern mouth"
else null
The second parameter is the $P{city}
if $P{city} = 1 then "Gosa"
else $P{city} = 2 "Marang"
else if $P{city} = 3 "kuala seberang"
else null
The third parameter is the $P{country}
if $P{country} = 198 then "China"
else if $P{country} = 234 then "Bangladesh"
else if $P{country} = 390 then "Sri Lanka"
else null
当我键入参数时,我想要更改 Textfield 中描述的所有参数。
For example. "Information for company the address is $P{address}=1, city is $P{city}=1 and country is $P{country}=198".
The result is "Information for the company address is Port garden, city is Gosa and country is China.
有人知道这个吗?.:(