I am testing iCode, I like it a lot, but I am having a bug with this code:
SELECT
{TABLE.COLUMNS NOPRIMARY}
{IF COLUMN.TYPE NE 'DATETIME'} {COLUMN.NAME} {IF NOT LAST} , {/IF} {/IF}
{/TABLE.COLUMNS}
The output is:
SELECT
id ,
descricao ,
user_change ,
{/IF}
ativo_inativo
Any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On this line:
{IF COLUMN.TYPE NE 'DATETIME'} {COLUMN.NAME} {IF NOT LAST} , {/IF} {/IF}
You have one to many {/IF} statements at the very end. Remove one, and you should be set.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am testing iCode, I like it a lot, but I am having a bug with this code:
SELECT
{TABLE.COLUMNS NOPRIMARY}
{IF COLUMN.TYPE NE 'DATETIME'} {COLUMN.NAME} {IF NOT LAST} , {/IF} {/IF}
{/TABLE.COLUMNS}
The output is:
SELECT
id ,
descricao ,
user_change ,
{/IF}
ativo_inativo
Any ideas?
On this line:
{IF COLUMN.TYPE NE 'DATETIME'} {COLUMN.NAME} {IF NOT LAST} , {/IF} {/IF}
You have one to many {/IF} statements at the very end. Remove one, and you should be set.
I think it does not parse a TAG inside another...
Oops, I just saw that you do have 2 {IF} statements...sorry.
Right now it doesn't support nested if
A work around is to separate the ifs, like this:
{TABLE.COLUMNS NOPRIMARY}
{IF COLUMN.TYPE NE 'DATETIME'}{COLUMN.NAME} {/IF}{IF NOT LAST} , {/IF}
{/TABLE.COLUMNS}
Ups, late but I saw what you want to do, let me work on that, and find a solution to have nested if's.
Thanks.
V