0
Problem with HTML
let ipc := (select WBS where text(IPC) like 1);
let css := "
<style>
single{
font-size:medium;
text-align:center;
color:silver;
font-family:Helvetica;
}
</style>
";
let content := "
<aside class = 'grid-container'>
<aside class = 'double' style='text-align:left; font-family:Helvetica; font-size:14px; color:dimgray; background-color:#FFF;'> Nivel 2 IPC </aside>
<aside class = 'double' style='text-align:center; color:#000080; font-size:large; font-weight:bold;'>" +
ipc +
" </aside>
</aside>
";
html(css + content)
WBS is a Table, the IPC is a Choice field with 3 data, Engineering, Procurement, Construction.
Need to Display in the box the Engineering but no display nothing.
Or there are order alternative
11 replies
-
If you use a select() function you get an array. To get a record, you have to use
let ipc := first(select WBS where IPC = 1)I also removed the text() in this select because 1 is not present as text in the list, only as the number of the selected choice. If you want to use the text() function you have to compare with the wanted text. let ipc := first(select WBS where text(IPC) like "Engineering")
-
Content aside
- Status Answered
- 4 days agoLast active
- 11Replies
- 43Views
-
2
Following