Forum Stats

  • 3,768,282 Users
  • 2,252,770 Discussions
  • 7,874,514 Comments

Discussions

IG column names that contains space

venapex
venapex Member Posts: 38 Red Ribbon

Hi,

We are creating Detail View in an IG and are trying to reference the column names like this: <td align="right">&EMP_ID.:</td>. This works fine when the column names do not have spaces. But this IG has several column aliases with mixed case with spaces. How do we reference those in td tags?

Best Answer

  • Carsten Czarski-Oracle
    Carsten Czarski-Oracle Member Posts: 1,257 Employee
    Accepted Answer

    HI,

    in general, it's recommended to have your Interactive Grid Query returning column names in upper case and without spaces. Each column has the Heading and Label attributes where you can specify the content to display to end users.

    The reason for this not working is that Interactive Grid column values are provided by APEX session state, which is the same thing as page items. And page item names in APEX are ... case-insensitive and must not contain spaces. So it's the same restrictions which apply here.

    But the solution is easy: Just change your query to return "clean" column names, and use the Label and Heading attributes to provide content to be displayed in the UI.

    Best regards

    -Carsten

    venapex

Answers

  • Hamza Al-abbasi
    Hamza Al-abbasi Member Posts: 134 Silver Badge

    Hello venapex,

    I have miss understand what are you want to achieve, can you reproduce it on apex.oracle.com?

  • Carsten Czarski-Oracle
    Carsten Czarski-Oracle Member Posts: 1,257 Employee
    Accepted Answer

    HI,

    in general, it's recommended to have your Interactive Grid Query returning column names in upper case and without spaces. Each column has the Heading and Label attributes where you can specify the content to display to end users.

    The reason for this not working is that Interactive Grid column values are provided by APEX session state, which is the same thing as page items. And page item names in APEX are ... case-insensitive and must not contain spaces. So it's the same restrictions which apply here.

    But the solution is easy: Just change your query to return "clean" column names, and use the Label and Heading attributes to provide content to be displayed in the UI.

    Best regards

    -Carsten

    venapex