[SOLVED] Visit a table line by line [message #1710674] |
Thu, 08 October 2015 10:23 |
|
Hi folks,
it is not clear to me how to visit a table in automatic way.
I can access a single element using the following portion of code
let [val item [get-property "getParent().getChildren().Control[0].getChildren().Control[3].getItems().TableItem[0].getText()" -raw ]] {
show-alert $item
}
How to use get-table command in this case ?
I wonder If it is not possible to use it.
If not, is it possible to use a loop and insert the index as variable ?
I think to use concat method to update the string but doesn't work for syntax reason.
Example:
loop [val count 0] {
if [$count | lt 18] {
let [val item [get-property [[concat [concat "getParent().getChildren().Control[0].getChildren().Control[3].getItems().TableItem[" [str[$count]] ] "].getText()"] -raw ]]
{
show-alert $item
}
} -else {
recur [$count | plus 1]
}
}
"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
[Updated on: Thu, 08 October 2015 11:19] Report message to a moderator
|
|
|
Re: Visit a table line by line [message #1710679 is a reply to message #1710674] |
Thu, 08 October 2015 11:12 |
|
SOLVED
Hi folks solved the problem the path "getParent().getChildren().Control[0].getChildren().Control[3].getItems().TableItem[" [str[$count]] ] "].getText()" reasults as 'TableItem {07/07/2015 11:53}' name so the right path was under getData().
with [get-view TaskList | get-section "" | get-table] {
get-items | foreach {get-property "getParent().getItems().TableItem[0].getData().getName()" -raw | let [val msg -input]{ Show-alert $msg}}
}
"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
[Updated on: Thu, 08 October 2015 11:13] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03450 seconds