WPC 7.3 : Dynamic List : pager
We have been working in WPC 7.3 with Dynamic Lists : this can be used to display news items similar to XML forms, mixed with own forms.
The Dynamic List iView, once added onto the WPC page can be configured to display the number of items.
Example : 4 items. Letu2019s say we have 6 items, then only the four u2018newestu2019 are shown.
What is missing here is a u2018pageru2019 at the bottom , in case somebody wants to see the other two, older items.
There is no standard pager in the KMCWPC05P_3-10008779.SCA file -> com.sap.nw.wpc.dynamicList.sda project.
Before we actually start to develop our own Dynamic List project with pager : anybody managed to add this piece of vital coding?
Or perhaps this is planned for the future?
I got a solution regarding this topic.
I followed these steps:
You must set the number of items in you example to six or higher (in your example, the remaining two items wouldn't even get rendered)
You surrounded your Dynamic List layout with "<li>...</li>"
In your theme, you implement a JQuery Paginator (e.g. look here), which works with the list-elements
Tell your paginator to show four items per page
I got something going like this:
Similar Messages
-
Referencing a "checked record" from my ADDT Dynamic List using a SPRY Menu
I have just posted a Beta of my site to:
http://www.clearwave.biz/Beta/T1COElogin.cfm
- Username is: Beta
- Password is: 123
- Once you are logged in you should see the ADDT list w/one
order listed.
- Click on the Printer icon & the Order Agreement will
open in PDF. (this works fine)
- Click on the InfoSheet link & the Report will open in
PDF as well. (this works fine)
- Everything works fine if you use the links on the same line
as the record.
- But if you check the CheckBox on the left, then choose the
Spry Menu above, Reports/T1 Agreement the report will not work?
Question: What should the Link be to reference the checked
item below, pass the CustID value to the report & print the
PDF?
(Note: the CF report has the following line in the SQL:
(tblT1OrderProcessing2.T1CustID = #param.T1CustID#) and the report
prints fine in Report Builder if I pass it the T1CustID, as well as
if I click the links on the same line as mentioned above, so this
is just an issue of grabbing the CustID value from the checked line
& passing it to the report link in the Spry menu)
Here is a visual picture of my Dynamic List page:
http://cerberus.clearwave.com/jerry/Order_Management_Main_Page.jpg
Thanks in advance for the help,
jligHere is the Report URL that works perfectly when clicking the
Printer icon on the right of my List:
http://www.clearwave.biz/Beta/reports/T1_Service_Agreement.cfm?T1CustID=1508
and the link to the InfoSheet:
http://www.clearwave.biz/Beta/reports/T1_Information_Sheet.cfr?T1CustID=1508
Both of these work perfectly by grabbing the T1CustID value
of 1508 from the line. -
WPC - Dynamic List - Link to the page of an wpc_article
Dear all,
Im working with dynamic Lists to show a list view of my wpc_articles.
In the default settings the elements of the list have a link directly to an article. Therefor the property "contentLink" is used.
I wanna change this link to the page where an article is placed. So Im wondering:
Is there anyway to get the path of a page from the article instance e.g. a property like "parentString" or something like that?!
Thanks in advance.
Greetings,Thanks for the answer.
Guess i have to put everything I need in the article element so i do not need to show the page.
Another question occured to me while I was doing that:
When I navigate from a Dynamic List to an Element, it should be possible to navigate back and forth with the buttons I created using the history api.
Instead of the "<a href..." in the default dynamic list I created an onclick event. Right now im trying to navigate to the article with its guid and the method "EPCM.doNavigate(...)" but until know i haven't been able to get it done.
Is it even possible to reach that goal and in case it is am I on the right track or is there a better approach available?!
Thanks in advance...
Greetings, -
Is WPC dynamic list recursively showing content?
Hi guys,
I have this KM folder structure with WPC's articles:
FOLDER 1
|
|_ FOLDER A
| |_ article a.1
| |_ article a.2
|
|_ FOLDER B
| |_ article b.1
| |_ article b.2
|
|_ article 1.1
|_ article 1.2
articles 1.1 and 1.2 are direct children of Folder1 (ie: they are sibling for Folder A and Folder B). I hope it's clear :S
Here comes the trouble. I'm using a WPC Dynamic List pointing to Folder 1, but instead of showing only articles 1.1 and 1.2, the list is populated with ALL articles within Folder 1 and Folder A and Folder B.
I'm guessing it is reading the folder structure recursively. I need to display ONLY the two last articles (article 1.1 and 1.2).
Is this a bug or, by the opposite, is the expected behavior?
Thanks in advance.
Best Regards,
MarceloThanks for the answer.
Guess i have to put everything I need in the article element so i do not need to show the page.
Another question occured to me while I was doing that:
When I navigate from a Dynamic List to an Element, it should be possible to navigate back and forth with the buttons I created using the history api.
Instead of the "<a href..." in the default dynamic list I created an onclick event. Right now im trying to navigate to the article with its guid and the method "EPCM.doNavigate(...)" but until know i haven't been able to get it done.
Is it even possible to reach that goal and in case it is am I on the right track or is there a better approach available?!
Thanks in advance...
Greetings, -
Dynamic list of pages / site map of pages
Hi,
I've figured out how to add a Page Query to the Navigation.
Now I want to have something similar on a page for a kind of site map. How do I display a dynamic list of pages on a page?
cheers,
Matthias
Edited by: mprove on Jan 5, 2012 12:15 PMNP. Not too experienced in ADF, myself, but the text gives hints:
ChildPropertyTreeModel—used in <af:tree> component
ChildPropertyMenuModel—used in <af:breadcrumbs> or <af:menu> component
ListNavigationResource—used in <af:foreach>
I believe that you can either use (default?) tree and/or breadcrumbs/menu components, or you can create your own via looping <af:foreach> -
Create a dynamic file list page
I have two folders under my main heirachy for our web site. One is called Prod and the other is Dev. I have folders and irpts within them. I would like to create an html filelist page so when I am on the web testing it, I can quickly see all of my files and click anyone of them to quickly see the page. Does anyone know how to create dynamic file list pages that will automatically update as files and folders are added?
You can always just enable "Directory Browsing" in the default web site in IIS.
You can do this by opening IIS and navigating the PROPERTIES of the Default Website...click the Home Directory tab...check the "Directory browsing" box...apply the settings and you should be good.
Note: a restart of IIS might be necessary for the changes to take effect. You can do this by executing a simple "iisreset" from the run command line. -
Dynamic List in WPC didn't work
Hi Experts
I've created a new site in WPC and a few wpc-articles which a stored in a shared folder in KM. I've done the configuration for the dynamic List WPC-iView like sorting, number of articles etc. The start-folder is /documents/news BUT at runtime no items (articles) are displayed. The List is empty. I think it cannot be a permission thing because I'm logged in as super Admin.
Thanks for helping
ChristianI've just been restoring the actual photos. No library.
When I look in the "pictures" folder, there is nothing. 0 mg
Somehow iPhoto totally crashed and took all my photos with it.
You'd THINK they'd be SOMEWHERE on my computer, but I guess they are not. Makes me afraid to even use iPhoto anymore for my photos. I've NEVER had this problem with iPhoto before. Never. And I've been using it for 6 years, thus 6 years of photos. Sigh -
How to add a column to a list created with the Dynamic List Wizard to display the values of the fiel
Hi,
ADDT, Vista, WAMP5.0
We have 2 tables: clients_cli (id_cli, name_cli, tel_cli, and several more fields) and cases_cas (id_cas, idcli_cas, court_cas, and a lot of other fields).
Clients may have many cases, so table cases_cas have a foreign key named idcli_cas, just to determine which case belongs to which client.
We designed the lists of the two tables with the Dynamic List Wizard and the corresponding forms with Dynamic Form Wizard.
These two forms are linked with the Convert Dynamic List and Form Wizards, which added a button to clients list named "add case".
We add a client and then the system returns to the clients list displaying all clients, we look for the new client just added and then press "add case", which opens the Dynamic Form for cases, enter all case details and everything processes ok.
However, when we view the cases list it display all the details of the case, including the column and values for the foreign key idcli_cas. As you can image, it is quite difficult for a human to remember the clients ids.
So, in the cases list we added a another column, named it Name, to display the names of the clients along with cases details. We also created another recordset rsCli, selected the clients_cli table, displaying all columns, set filter id_cli = Form Variable = idcli_cas then press the Test button and everything displays perfect. Press ok.
Then, we position the cursor inside the corresponding cell of the new Name column, go to Bindings, click on name_cli and then click on insert. The dynamic field is inserted into the table cell as expected, Save the page, and test in browser.
The browser call the cases list but fails to display the values of the Name column. The Name column is simply empty.
This issue creates a huge problem that makes our application too difficult to use.
What are we doing wrong?
Please help.
Charles1. Start transaction PM01, Create Infotype, by entering the transaction code.
You access the Create Infotype screen.
2. Choose List Screen.
3. In the Infotype no. field, enter the four-digit number of the infotype you want to create.
When you specify the infotype number, please remember to enter any leading zeros.
4. In the Screen Number field, enter the screen number of the list screen you want to enhance.
5. Choose Create.
The Dictionary: Initial screen appears:
6. Create the list screen structure.
7. Choose Activate.
8. Return to the Enhance List Screen in the Enhance Infotypes transaction (PM01).
9. Choose Create All.
The additional fields are displayed on the list screen, however, they contain no data.
The fields can be filled in the FORM routine FILL-LISTSTRUCT in the generated program ZPnnnn00. The FORM routine is called for each data record in the list.
Structure ZPLIS is identified when it is generated with a TABLES statement in the program ZPnnnn00.
The fields can be filled from the Pnnnn structure or by reading text tables. -
Dynamic List and Security Issue
Hi
I have a Dynamic List Wizard for orders, which the user can click on edit to edit or modify the order and if the user choose "Yes" to submit ( the order form has a submit filed which has Yes / No Values)then the EDIT button disappear and the user has no more control on the record(using show if conditional Region server behavior).
- Now i noticed that when i click on the edit the address bar includes the (www.mysite.com/form.php?order_id=1) now say the order Number 2 is already submitted (still on the list but no Edit button for it) if i write 3 or 4 or any other number instead of 1 at the address bar (www.mysite.com/form.php?order_id=3) the record which has the order number 3 displays on the screen and then you can edit it and when click update the Edit Button becomes Active which destroy the whole concept.
so, how to fix that?Hi Lorie,
Taking it a step further
interesting that you´re mentioning this -- because I was just in the middle of finding a workaround for the very same issue ;-)
I actually did find a pretty easy solution, which basically goes like this:
1) wrap the whole table *plus* any possibly added hidden fields located below this table in a "Show IF conditional region" behaviour -- but make sure to *not* include the buttons within the "KT_bottombuttons" div in here.
2) as I assume that your "supplier_name" column holds a numeric value which equals the user´s "kt_login_id" Session Variable (which it should !), define the following conditions for the "Show IF conditional region" behaviour:
Expression 1: choose "supplier_name" from the tNG recordset
Condition: ==
Expression 2: choose Session -> kt_login_id
3) tick the Has ELSE option
4) confirm with OK
5) replace the default "has Else" message with something meaningful like "you can´t edit this record !"
Switching to Code view and navigating to the very start of your "Show IF conditional region" should display something like this:
if (@$row_rsqueryname['supplier_name'] == @$_SESSION['kt_login_id']) {
When viewing the modified Dynamic Form in a browser, you´ll note that this solution will indeed display the form instances for all "authorized" records, whereas those form instances which don´t match the required credentials will be replaced with that "has else" message.
BUT !! This solution has one major drawback which I haven´t been able to resolve yet :: when the Dynamic Form goes into Insert Record mode
(means when you click the "add new" link in the Dynamic List), all inner form instances will display that "has else" message.
The only workaround I currently can come up with is to have the List´s "add new" link point to a separate "add_new.php" page that´s going to insert a single record.
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
Dynamic List to Update Field in Record
Hello,
I have created an Update page in CS5.5 and have added a dynamic list to update a field in the record. Now I am stuck. How do I modify the code in the menu to have it update the field?
<select name="cemeteryID">
<?php do { ?>
<option value="<?php echo $row_cemeteryList['cemeteryID']?>"<?php if (!(strcmp($row_cemeteryList['cemeteryID'], $row_cemeteryList['']))) {echo "selected=\"selected\"";} ?>><?php echo $row_cemeteryList['cemetery']?></option>
<?php
} while ($row_cemeteryList = mysql_fetch_assoc($cemeteryList));
$rows = mysql_num_rows($cemeteryList);
if($rows > 0) {
mysql_data_seek($cemeteryList, 0);
$row_cemeteryList = mysql_fetch_assoc($cemeteryList);
?>
</select>
Thanks!I figured it out. Suprised that no one responded - oh well.
-
Dynamic list to generate url variable
Hello, I am using a dynamic list to pull product codes from a
database. I then want to pass the code into a url variable when it
goes to the results page. This is so customers can chose which code
they want to go to a detail page about. I already have the dynamic
list working, I just can not figure out how to embed the selected
code into a url variable. For example I want it to do the
following:
sitename.com/search.php <--- here is where you start and
make the selection then it brings you to:
sitename.com/details.php?code=202 <---- code202 was
selected on previous page in dynamic list.
I know how to do it by pulling results from a database and
generating links for each one, but I need to do it from a dynamic
drop down list.
Here is the coding that I was trying to use:
Thank you for your assistance.Sorry, dumb error on my part. Used method=post rather then
get. -
How do I add a time field to a dynamic list and form?
I'm trying to create an update form that logs when an action was taken. Among the fields are one for the date and one for the time, but I've not been able to get the time field to display or enter data correctly.
I've set the time format in the ADDT preferences (database date and time format is yyyy-mm-dd and HH:mm:ss and screen format is dd/mm/yyyy and HH:mm). When I create the list or the form using the wizard, there is no option to display the field as a time.
In step 3 of 4 in the Dynamic List Wizard, the 'Display as' options are: text, numeric, double and date. Choosing date for the time field gives me a display as though it was a date (I get '00/00/0000'). I have the same problem with generating a Dynamic Form in that there is no option to display a time, only a date.
Am I able to do this using the wizard, or is there another way that I'm, missing? Thanks for any help.If those date/time fields are only needed for logging purposes then follow Günter's instructions.
If you need to be able to edit those two fields and have their values displayed properly then there are several steps you should take.
First open the page that uses the Dynamic List behavior and make sure that all date and time fields are configured to display as dates. Then open the page with the dynamic form and click on "Manage Dynamic Form Wizard" in the Developer Toolbox. Configure your date and time fields to submit as dates. Then go to the Server Behaviors panel and double click on "Validate Form". You should now have 3 date/time options available under Validation Format: Date, Datetime, and Time. Configure each field as needed.
This will ensure that date and time fields are saved in the proper format so that when you view their values they will be displayed properly, that is dates will be displayed as dates and times as times.
There are also several additional server formats available that are accessible through the Bindings panel that you might want to experiment with. -
Unable to use #A01# substitution variable in dynamic list
Greetings...
I am attempting to generate a dynamic list on the page. The list will contain a flag indicating whether the list entry is actually hidden to the user or not. If it is hidden to the user, then I want to apply a particular class to that list entry when rendered.
The dynamic list has the following SQL:
SELECT null lvl,
menu.menu_nm label_value,
q'!javascript:$s('P32_MASTER_MENU_ID', '!' ||
menu.menu_id || q'!');!' target_value,
null image,
null image_attribute,
null image_alt_attribute,
case when menu.hidden = 'Y'
then 'class="hiddenNode"'
else null end attribute1
from ( select 'N' hidden, vis.* from std_vw_apex_menu vis
union all
select 'Y' hidden, hid.* from std_vw_apex_menu_hidden hid ) menu
where menu.menu_ty = 'MAINMENU'
order by menu.sort_order
I am then using a list template with the following as the "Current" list entry:
<li class="active"><a href="#LINK#"><span #A01#>#TEXT#</span></a></li>
... and the following as the "Non-Current" list entry:
<li><a href="#LINK#"><span #A01#>#TEXT#</span></a></li>
The result I see in the rendered page however is that the substitution is not happening, as indicated in the following snippet :
<li><a href="javascript:$s('P32_MASTER_MENU_ID', '18893191201');"><span #a01#="">Education</span></a></li>
We are on ApEx 4.2.1. What am I doing wrong as I've seen other threads indicate that it is possible for dynamic lists to use substitution variables in their list templates.
Shane.I found the solution at Attribute substitution not working in templates for dynamic lists.
-
Using variable in dynamic list queries
How can we use a variable value like metadata value of the parent content in the dynamic list query?
I tried something following ways but the query was not picking up the value of xCountries.
dDocType <matches> `State` <AND> xCountries <matches> xCountries
dDocType <matches> `State` <AND> xCountries <matches> `xCountries`
dDocType <matches> `State` <AND> xCountries <matches> `$xCountries`
dDocType <matches> `State` <AND> xCountries <matches> `<!--$xCountries-->`
None of them worked. But when I printed the <!--$xCountries--> on the secondary page for the selected country the value is getting printed.
Regards,
PratapHi Bex,
You were right. Eval function call was helpful here.
The problem was resolved only to an extent by using the eval function. This is
evaluating the query string given in parameters window for ssQueryText to
correct value. We used the eval() function in the dynamic list fragment. The
format of query we were trying earlier was incorrect. The correct format is like
this
dDocType <matches> `City` <AND> xCountries <matches> `<$xCountries$>` <AND>
xStates <matches> `<$xStates$>`
There is another problem though. We are able to add new states or cities by
going to the specific state page or to the cit page and then edit it. But if we
click edit on a secondary page e.g. on a State page(which contains list of
cities) the correct values for cities are not getting populated in the Cities
dynamic list in state edit window. Possible cause is that the eval function is
not called in the edit window (which shows all applets), instead the eval
function is called only in dynamic list fragment which is evaluated in the
secondary page template for State. How can we make the eval function execute in
the edit window as well?
In fact the query is failing from paramters window itself. If I use Test Query
it is returning 0 results.
Is there a work around to address this problem? Hope I didn't confuse much.
Regards,
Pratap -
How to create two level dynamic list using JSP , Java Script and Oracle
I am new in JSP. And i am facing problem in creating two level dynamic list using JSP ,Java Script where the listdata will come from Oracle 10g express edition database. Is there any easy way in JSP that is available on in ASP.NET.
Plz response with details.1) Learn JDBC API [http://java.sun.com/docs/books/tutorial/jdbc/index.html].
2) Create DAO class which contains JDBC code and do all SQL queries and returns or takes ID's or DTO objects.
3) Learn Servlet API [http://java.sun.com/javaee/5/docs/tutorial/doc/].
4) Create Servlet class which calls the DAO class, gets the list of DTO's as result, puts it as a request attribute and forwards the request to a JSP page.
5) Learn JSP and JSTL [http://java.sun.com/javaee/5/docs/tutorial/doc/]. Also learn HTML if you even don't know it.
6) Create JSP page which uses the JSTL c:forEach tag to access the list of DTO's and iterate over it and prints a HTML list out.
You don't need Javascript for this.
Maybe you are looking for
-
How to remove space below the table in smartforms
how to remove space below the table in smartforms
-
Correlation set was not defined in the process
Hi All, I deplyoed a synchronous CustomerProviderABCS on SAO 11g server. This process is invoking the Adapter service(mediator) which internally calls the SAP Adapter. I didn't define any correaltion sets and I am not using pick activity. After deplo
-
AD Group Membership revoked on adding new group through role and acespolicy
Hi all, when a user is created in OIM, it is provisioned with Default Role say CONTRACTS which will provision AD Account and a default AD group membership. when I assign a new role membership say BILLING, to assign additional AD group memberships thr
-
please help me find these pictures!!
-
Error migrating Labview 7.1 scf file to Lavbiew DSC 8.20
Hello, I am trying to migrate a small .scf file (in annex of this note) coming from the tag engine of Labview DSC 7.1 to Labview 8.20 but get plenty of error messages as showed in annex of this note. I have got the DSC 8.20 version of August 2006. Th