如何在 Apex 4.2 上创建动态列表?
How to created a dynamic list on Apex 4.2?
我目前正在尝试在 Oracle Apex 4.2 上创建一个带有 twitter 覆盖的动态列表-bootstrap。我正在尝试使用聊天功能,为此我需要使用对象列表。我试图用现有的 table 填充列表,但列表没有填充。我想知道是否有人可以提供有关如何创建动态列表的示例。
Orcale 提供了这个,http://docs.oracle.com/cd/E37097_01/doc.42/e35125/nav_list.htm#HTMDB28677
SELECT level, labelValue label,
[targetValue] target,
[is_current] is_current_list_entry,
[imageValue] image,
[imageAttributeValue] image_attribute,
[imageAltValue] image_alt_attribute,
[attribute1] attribute1,
[attribute2] attribute2,
[attribute3] attribute3,
[attribute4] attribute4,
[attribute5] attribute5,
[attribute6] attribute6,
[attribute7] attribute7,
[attribute8] attribute8,
[attribute9] attribute9,
[attribute10] attribute10
FROM ...
WHERE ...
ORDER BY ...
我试着把这个:
SELECT NULL, AUTHOR label,
'#' target,
'test' is_current_list_entry,
' ' image,
' ' image_attribute,
' ' image_alt_attribute,
RESPONSE attribute1,
DATE_CREATED attribute2
FROM CHAT_RESPONSES
WHERE AUTHOR IS NOT NULL
ORDER BY DATE_CREATED desc
列表没有填充,我想知道我是否用错了。
在价值创造列表中,工具提示中有如下注释
所以我认为您应该将 'test' 更改为以下选项之一
注意:is_current 列可以设置为以下三个值之一:'YES'、'NO' 或 NULL。如果设置为NULL,列表条目的货币将基于列表条目的目标页面。
我能够让它工作,
SELECT 1, e.First_Name||' '||e.Last_Name label,
'#' target,
NULL is_current_list_entry,
'http://orig03.deviantart.net/efa6/f/2015/200/5/6/anon_icon_thinger_by_arofexdracona-d920vda.png' image,
NULL image_attribute,
NULL image_alt_attribute,
'left' attribute1,
'fa-clock-o' attribute2,
DATE_CREATED attribute3,
RESPONSE attribute4
from RESPONSES r
INNER JOIN PEOPLE e
ON r.author = e.LANID
where REQUESTID = v('P407_ID')
order by DATE_CREATED DESC;
现在我正在想办法让属性 1 左右交替。谢谢你的帮助。
我目前正在尝试在 Oracle Apex 4.2 上创建一个带有 twitter 覆盖的动态列表-bootstrap。我正在尝试使用聊天功能,为此我需要使用对象列表。我试图用现有的 table 填充列表,但列表没有填充。我想知道是否有人可以提供有关如何创建动态列表的示例。
Orcale 提供了这个,http://docs.oracle.com/cd/E37097_01/doc.42/e35125/nav_list.htm#HTMDB28677
SELECT level, labelValue label,
[targetValue] target,
[is_current] is_current_list_entry,
[imageValue] image,
[imageAttributeValue] image_attribute,
[imageAltValue] image_alt_attribute,
[attribute1] attribute1,
[attribute2] attribute2,
[attribute3] attribute3,
[attribute4] attribute4,
[attribute5] attribute5,
[attribute6] attribute6,
[attribute7] attribute7,
[attribute8] attribute8,
[attribute9] attribute9,
[attribute10] attribute10
FROM ...
WHERE ...
ORDER BY ...
我试着把这个:
SELECT NULL, AUTHOR label,
'#' target,
'test' is_current_list_entry,
' ' image,
' ' image_attribute,
' ' image_alt_attribute,
RESPONSE attribute1,
DATE_CREATED attribute2
FROM CHAT_RESPONSES
WHERE AUTHOR IS NOT NULL
ORDER BY DATE_CREATED desc
列表没有填充,我想知道我是否用错了。
在价值创造列表中,工具提示中有如下注释 所以我认为您应该将 'test' 更改为以下选项之一
注意:is_current 列可以设置为以下三个值之一:'YES'、'NO' 或 NULL。如果设置为NULL,列表条目的货币将基于列表条目的目标页面。
我能够让它工作,
SELECT 1, e.First_Name||' '||e.Last_Name label,
'#' target,
NULL is_current_list_entry,
'http://orig03.deviantart.net/efa6/f/2015/200/5/6/anon_icon_thinger_by_arofexdracona-d920vda.png' image,
NULL image_attribute,
NULL image_alt_attribute,
'left' attribute1,
'fa-clock-o' attribute2,
DATE_CREATED attribute3,
RESPONSE attribute4
from RESPONSES r
INNER JOIN PEOPLE e
ON r.author = e.LANID
where REQUESTID = v('P407_ID')
order by DATE_CREATED DESC;
现在我正在想办法让属性 1 左右交替。谢谢你的帮助。