Get Field Column Header text
joaojmendes opened this issue · comments
Please create a method to get column header of Field, at this moment we only have the:
statement.fieldName(index);
and
maybe:
statement.FieldHeader(index)
Thank you!
What do you mean by field header?
The possibility to get the column header defined for a column (COLHDG, DDS KEYWORD) for use as column label in forms.
Thank you!
From: Kevin Adler <notifications@github.com>
Reply to: IBM/nodejs-idb-connector <reply@reply.github.com>
Date: Wednesday, 6 May 2020 at 04:52
To: IBM/nodejs-idb-connector <nodejs-idb-connector@noreply.github.com>
Cc: João Mendes <joao.j.mendes@outlook.com>, Author <author@noreply.github.com>
Subject: Re: [IBM/nodejs-idb-connector] Get Field Column Header text (#116)
What do you mean by field header?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#116 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC7YHVKAVH2PZOMMMQE3GDTRQDNJBANCNFSM4MSKHAFA>.
Hello @joaojmendes , Did you mean the label for a column? API link.
SQL_DESC_LABEL | CHAR(128) | The label for this column, if one exists. Otherwise, a zero-length string.For this attribute to be retrieved, the attribute SQL_ATTR_EXTENDED_COL_INFO must have been set to SQL_TRUE for either the statement handle or the connection handle. |
---|
Hi,
Yeah, seems that is it. In syscolumns view the column is “COLUMN_HEADING”.
Thanks!
From: Xu Meng <notifications@github.com>
Reply to: IBM/nodejs-idb-connector <reply@reply.github.com>
Date: Friday, 15 May 2020 at 00:01
To: IBM/nodejs-idb-connector <nodejs-idb-connector@noreply.github.com>
Cc: João Mendes <joao.j.mendes@outlook.com>, Mention <mention@noreply.github.com>
Subject: Re: [IBM/nodejs-idb-connector] Get Field Column Header text (#116)
Hello @joaojmendes<https://github.com/joaojmendes> , Did you mean the label for a column? API link<https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/cli/rzadpfncolattrs.htm>.
SQL_DESC_LABEL
CHAR(128)
The label for this column, if one exists. Otherwise, a zero-length string.For this attribute to be retrieved, the attribute SQL_ATTR_EXTENDED_COL_INFO must have been set to SQL_TRUE for either the statement handle or the connection handle.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#116 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC7YHVLJHG5E2ARVYPFRKR3RRRZ6HANCNFSM4MSKHAFA>.
Currently we have some problems when calling the API SQLColAttribute to get the column label. I need to find some other solutions.
👋 Hi! This issue has been marked stale due to inactivity. If no further activity occurs, it will automatically be closed.