Results (totals) row in spry datasets
Hi everybody.
I spent a lot of time on the problem how to get row with
result of the spry dataset.
And I found it:
Javascript code:
// This is our dataset
var dsSpecials = new Spry.Data.JSONDataSet("paysdata.cfm",
{path:"rows"});
// This is dataset for results
var dsSums = new Spry.Data.JSONDataSet();
// Loading empty array to results
dsSums.loadDataIntoDataSet("[]");
var myObserver = new Object;
// Calculate function will run each time when data will
change
myObserver.onDataChanged = function(dataSet, data) {
calcTotals(); }
dsSpecials.addObserver(myObserver);
var calcTotals = function() {
var tsums = [];
var rows = dsSpecials.data;
// ... here you calculate what you need...
dsSums.loadDataIntoDataSet(Spry.Utils.serializeObject(tsums));
And now, the final part - HTML code:
<div spry:region="dsSpecials dsSums"
class="SpryHiddenRegion">
<table>
<tr spry:repeat="dsSpecials">
</tr>
<tr spry:repeat="dsSums">
</tr>
</table>
</div>
Loveanie wrote:
> There seems to have a bug in the final release of DW CS4
that wasn't there in
> the Beta version: when we create an html Spry dataset
and we check the
> "Advanced data selection" option, DW automatically adds
a row with column0,
> column1, and so on. This row doesn't do anything good
It identifies the column. In Step 2, you can select each
column and
change its name in the Column Name field at the top of the
wizard.
Without a column name, the Spry data set has no way of
identifying the
data you want to display.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Similar Messages
-
Append data rows to spry dataset
Hello,
Is thre anyway to append data to already loaded spry dataset?
so that the rows displayed in spry area will automatically updated.
ie, my plan is to load and xml to a dataset and again append
some more data to the dataset on request .
please help...
thanks,
devloshHi Devlosh,
Here's a possbile way to accomplish this. You'll need to
write a few lines of code but the steps are as follows.
Intro:
There are currently two datasets types that can be used with
spry:regions. One is the basic DataSet (uses data that a developer
is feeding it) and the other is the XMLDataSet (takes its data from
an XML file, using XPath to filter the rows).
Steps:
1. You'll have to use a basic DataSet for displaying the
records. Instantiate one on the page (don't feed any data to it)
and then build your markup (spry:region / spry:repeat that uses
this DataSet). A basic sample on how a simple DataSet is used is
presented here:
http://labs.adobe.com/technologies/spry/samples/DataSetSample.html
2. Use a second XMLDataSet that points to the server files
that brings chunks of data (5 records at a time):
"getData.cfm?start=1".
3. Register a function as an observer for the XMLDataSet for
the "onPostLoad" event (here's a sample of using observers:
http://labs.adobe.com/technologies/spry/samples/DataSetObserver.html).
This function should get the data from the XMLDataSet and attach it
to the data in the first DataSet. Like this:
//ds1 is the DataSet, ds2 is the XMLDataSet
var start = ds1.data.length;
// get data from XMLDataSet and feed it to the DataSet used
to display in spry:regions
for (var idx = 0; idx < ds2.data.length; idx++)
var row = ds2.data[idx];
row['ds_RowID'] = (start + idx);
ds1.dataHash[row['ds_RowID']] = row;
ds1.data.push(row);
// call loadData on ds1 to trigger the display of data
ds1.loadData();
4. Right after the instantiation of this XMLDataSet, call
ds2.loadData(); in order to trigger the downloading of the first
chunk of data
5. Build a "Get Next Data" button and call a function that
does:
ds2.setURL('getData.cfm?start=[NEXT_START]');
ds2.loadData();
Hope this helps you,
Best regards,
Dragos -
What advantages do Spry datasets have over database datasets
I have been studying the Spry Dataset and have found it terribly difficult to understand what use it is.
Can anyone explain why I should use it rather than using a database?
On the face of it, Databases are much easier to construct and access, so why use an alternative system.
From what I understand, I have to create a basic database table on an HTML page before I can attampt to create a spry dataset.
Or even use the dataset of a database to create a Spry dataset. I appreciate that there are other methods.
There are lots of articles telling one how to use it, but none stating what it is for and why one should use it - at least, none that I can find.
Where are the advantages of this system, or are you all using it just for technologies sake?
Or is it just an Adobe thing?whatalotofrubbish wrote:
I have been studying the Spry Dataset and have found it terribly difficult to understand what use it is.
Can anyone explain why I should use it rather than using a database?
On the face of it, Databases are much easier to construct and access, so why use an alternative system.
From what I understand, I have to create a basic database table on an HTML page before I can attampt to create a spry dataset.
Or even use the dataset of a database to create a Spry dataset. I appreciate that there are other methods.
There are lots of articles telling one how to use it, but none stating what it is for and why one should use it - at least, none that I can find.
Where are the advantages of this system, or are you all using it just for technologies sake?
Or is it just an Adobe thing?
Hello,
There are big difference between Datasets and databases. While I disagree with your point that Databases are easier to construct instead of Datasets. I understand your point. You should not see Datasets and databases as rivals of each others but more of a extension of each other. You use a database to store all your data and contents. When you execute a query on your database your will get a result set, or dataset. This usually the place when Spry could come in. You have data output from your database, now you just place it static on your page. Nothing wrong with that. But if you wish to create a interactive page it will usually require you to build allot of round trips to your server to present your data in different ways.
With Spry these round trips can be handled on the client side. Once your users have received your data for the Spry Data Set there are allot things they can do with it, and usually faster than doing round trips to the server. For example your can sort and filter data sets, display information in a master and detail layout or even create different page states using the same data with out having to reload the page. This will create a more seamless experience for the user.
For example our company is currently developing a search result page based on Spry Datasets. On the server side we have our database clusters that out the data for a search query. But this is usually 200+ result rows. In a traditional static website it would take a while for the user to digg through all results. Either by navigating to a next page, or filtering the dataset using forms.
With Spry we now have our result set outputted as JSON (one of the formats Spry supports as data source for the Spry Data Set) we download it all to the client. And that is all they need. All sorting, filtering and pagination is done client side. So no more round trips to the server ( less server stress, and its faster ).
I could go on about for hours but I hope this will give a general point of usages. If not take a look at the Spry demos. Which use Spry Data to create rich and interactive pages, and just imagine how you would have done that using traditional techniques and how long it would take you to build that.
http://labs.adobe.com/technologies/spry/demos/ -
Hide column result in pivot grand total row
Hello
Do you know if it is possible to hide the result of a particular column in a pivot grand total row?
I have several columns to which makes sense use a grand total row (as in a sum) but for others (such as average) it does not make sense in the light of the client business rules.
Any help on this matter is highly appreciated :)
Thanks in advance,
J MarquesI have a measure that represents the average time according to the dimensions it uses - and that works properly.
However, the grand total for that column shows me the average of the average times above. This is not correct that is why I want to hide it.As said by kishore, In pivot go to that time average time column -> Aggregation rule -> None, This won't affect the column avg value.
The grant total value will not come.
By setting this, are you getting wrong values?
Thanks,
Vino -
Display row count of dataset after grouping in report header?
My dataset has 500 rows, but if I group that data by field DeptId, there are only 20 rows.
I used something like the following, but it tells me that I can't use RowNumber in the page header:
=RowNumber(Fields!DeptId.Value, "DataSetTeachers")
I also tried something like CountRows("DataSetTeachers"), but that give me the total rows, which isn't what I want.
Thanks.Hi,
You can use CountDistinct function. This is the expression that I used in the page header:
="Number of rows: " & Countdistinct(Fields!Date.Value,"DataSet1")
See the result:
Hope it helps.
Tracy Cai
TechNet Community Support -
I think this problem is a result of my lack of knowledge regarding XML but hope someone can help set me straight. I am using Spry datasets in several web pages all accessing HTML pages with data in tables format. These work great.
I would like to use XML files for some other data on another site I am working on and while the Spry Dataset wizard allows me to call the XML file the information I get in the Row Element panel and the Data Preview panel appear to have nothing to do with the XML file I am accessing. I am expecting a list of US states and instead get a heading called Types with Default and Override as the two indented lines beneath type.
I have tried several other xml files that I have created or downloaded as samples from the web and always get the same headings.
I am trying to insert into a plain vanilla HTML page.
What am I doing wrong? I have attached the XML file I am using
Hope someone can help.
Cheers
lesYou cannot do cross domain requests with Ajax, you will need to use a server side transporter / proxy to get the file for you.
Heres a nice proxy for PHP:
http://webreflection.blogspot.com/2009/05/php-full-proxy-work-in-progress.html -
Count total rows in database?
Hello all,
Is there a way to query the database for the total number of rows.... without using ANALYZE STATISTICS? (That would cause the db to sometimes use COST instead of RULE based optimization, slowing it down significantly.)
I know I could could brute force a total row count with something like:
spool get_total_rows.sql
SELECT 'SELECT COUNT(*) FROM '||owner||'.'||table_name||';'
FROM ALL_TABLES;
spool off
...then run get_total_rows and manually add all the counts.
But it just seems like there must be a cleaner way to do it.
Thanks much,
Natashaok. here you have that information:
ALL_TABLES
ALL_TABLES describes all relational tables accessible to the current user. To gather statistics for this view, use the SQL ANALYZE statement.
Related Views
DBA_TABLES describes all relational tables in the database.
USER_TABLES describes all relational tables owned by the current user. This view does not display the OWNER column.
Note:
Columns marked with an asterisk are populated only if you collect statistics on the table with the ANALYZE statement or the DBMS_STATS package.
Column Datatype NULL Description
OWNER
VARCHAR2(30)
Owner of the table
TABLE_NAME
VARCHAR2(30)
Name of the table
TABLESPACE_NAME
VARCHAR2(30)
Name of the tablespace containing the table; NULL for partitioned, temporary and index-organized tables
CLUSTER_NAME
VARCHAR2(30)
Name of the cluster, if any, to which the table belongs
IOT_NAME
VARCHAR2(30)
Name of the index-organized table, if any, to which the overflow entry belongs. If IOT_TYPE column is not null, this column contains the base table name.
PCT_FREE
NUMBER
Minimum percentage of free space in a block; NULL for partitioned tables
PCT_USED
NUMBER
Minimum percentage of used space in a block; NULL for partitioned tables
INI_TRANS
NUMBER
Initial number of transactions; NULL for partitioned tables
MAX_TRANS
NUMBER
Maximum number of transactions; NULL for partitioned tables
INITIAL_EXTENT
NUMBER
Size of the initial extent in bytes; NULL for partitioned tables
NEXT_EXTENT
NUMBER
Size of the secondary extension bytes; NULL for partitioned tables
MIN_EXTENTS
NUMBER
Minimum number of extents allowed in the segment; NULL for partitioned tables
MAX_EXTENTS
NUMBER
Maximum number of extents allowed in the segment; NULL for partitioned tables
PCT_INCREASE
NUMBER
Percentage increase in extent size; NULL for partitioned tables
FREELISTS
NUMBER
Number of process freelists allocated to this segment; NULL for partitioned tables
FREELIST_GROUPS
NUMBER
Number of freelist groups allocated to this segment; NULL for partitioned tables
LOGGING
VARCHAR2(3)
Logging attribute; NULL for partitioned tables
BACKED_UP
VARCHAR2(1)
Has table been backed up since last change
NUM_ROWS*
NUMBER
Number of rows in the table
BLOCKS*
NUMBER
Number of used data blocks in the table
EMPTY_BLOCKS*
NUMBER
Number of empty (never used) data blocks in the table
AVG_SPACE*
NUMBER
Average amount of free space, in bytes, in a data block allocated to the table
CHAIN_CNT*
NUMBER
Number of rows in the table that are chained from one data block to another, or which have migrated to a new block, requiring a link to preserve the old ROWID
AVG_ROW_LEN*
NUMBER
Average length of a row in the table in bytes
AVG_SPACE_FREELIST
_BLOCKS
NUMBER
The average freespace of all blocks on a freelist
NUM_FREELIST_BLOCKS
NUMBER
The number of blocks on the freelist
DEGREE
VARCHAR2(10)
The number of threads per instance for scanning the table
INSTANCES
VARCHAR2(10)
The number of instances across which the table is to be scanned
CACHE
VARCHAR2(5)
Whether the cluster is to be cached in the buffer cache (CACHE | NOCACHE)
TABLE_LOCK
VARCHAR2(8)
Whether table locking is enabled or disabled
SAMPLE_SIZE
NUMBER
Sample size used in analyzing this table
LAST_ANALYZED
DATE
Date on which this table was most recently analyzed
PARTITIONED
VARCHAR2(3)
Indicates whether this table is partitioned. Set to YES if it is partitioned.
IOT_TYPE
VARCHAR2(12)
If this is an index-organized table, then IOT_TYPE is IOT, IOT_OVERFLOW, or IOT_MAPPING. If this is not an index-organized table, then IOT_TYPE is NULL.
TEMPORARY
VARCHAR2(1)
Can the current session only see data that it place in this object itself?
SECONDARY
VARCHAR2(1)
Whether the trigger is a secondary object created by the ODCIIndexCreate method of the Oracle9i Data Cartridge (Y |N)
NESTED
VARCHAR2(3)
Is the table a nested table?
BUFFER_POOL
VARCHAR2(7)
The default buffer pool for the object. NULL for partitioned tables
ROW_MOVEMENT
VARCHAR2(8)
Whether partitioned row movement is enabled or disabled
GLOBAL_STATS
VARCHAR2(3)
For partitioned tables, indicates whether statistics were collected for the table as a whole (YES) or were estimated from statistics on underlying partitions and subpartitions (NO)
USER_STATS
VARCHAR2(3)
Were the statistics entered directly by the user?
DURATION
VARCHAR2(15)
Indicates the duration of a temporary table:
SYS$SESSION: the rows are preserved for the duration of the session
SYS$TRANSACTION: the rows are deleted after COMMIT
Null for a permanent table
SKIP_CORRUPT
VARCHAR2(8)
Whether Oracle ignores blocks marked corrupt during table and index scans (ENABLED) or raises an error (DISABLED). To enable this feature, run the DBMS_REPAIR.SKIP_CORRUPT_BLOCKS procedure.
MONITORING
VARCHAR2(3)
Whether the table has the MONITORING attribute set
Try with ALL_TABLES and post if the results were zero too
Joel P�rez -
Spry dataset not working in Template - please help
Hi all,
I have a situation where when I pull a spry dataset from an
xml file and display the contents in a table which works fine in a
regular html page but not a template formed page for repeatable
region.
The error I get is FAILED TO RETRIEVE DATA SET FOR SPRY
REPEAT. Prior to that it tells me GetParentDataSet is null or not
an object. I tried setting up a repeat region around the repeated
rows but that didn't work either. So I pulled everything else out
that might be causing the problem but nothing. I checked the
pathing as well for the spry assets and it checks out okay.
Anyway, here's the template.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:spry="
http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<link href="../styles/style.css" rel="stylesheet"
type="text/css">
<link href="../styles/linkB.css" rel="stylesheet"
type="text/css">
<link href="../styles/linkA.css" rel="stylesheet"
type="text/css">
<!-- TemplateEndEditable -->
<script src="../SpryAssets/xpath.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryData.js"
type="text/javascript"></script>
<script type=”text/javascript”>
// Setup nested data sets:
var dsReagCons = new
Spry.Data.XMLDataSet("../xml/consumables.xml",
"electrodes_and_accessories/item[@catno='il_acl100_7000_coag_systems']");
</script>
</head>
<body>
<!-- Main body contents -->
<!-- TemplateBeginEditable name="EditRegion3" -->This
is a test
<!-- TemplateEndEditable -->
<div spry:region="dsReagCons">
<table align='center' width='680' border='1'
cellpadding='3' cellspacing='0' class='form'>
<tr>
<td colspan='5' class='prodHead' >Electrodes and
Accessories</td>
</tr>
<tr class='prodHead2'>
<td spry:sort="ddi_cat_no" width='80'>Diamond<br
/>
Cat. No.</td>
<td spry:sort="oem_cat_no" width='80'>OEM<br />
Cat. No.</td>
<td width='300'>Description</td>
<td spry:sort="models" width='100'>Models</td>
<td width='45'>UOM</td>
</tr>
<tr spry:repeat="dsReagCons">
<td>{dsReagCons::ddi_cat_no}</td>
<td>{dsReagCons::oem_cat_no}</td>
<td>{dsReagCons::desc}</td>
<td>{dsReagCons::models}</td>
<td>{dsReagCons::uom}</td>
</tr>
</table>
</div>
</body>
</html>
What am I missing here? Like I said I even tried putting a
repeat region around the table itself.
Thanks,
-- JimHey,
Good to have a comm expert on this. Actually I solved the
problem. It was combination of what I was doing within the template
and the way the xml file was formed. Also, I had to use a template
parameter to feed a spry:test filter.
Thanks for getting back to me anyway.
-- Jim -
Hi,
how can I set a GROUP BY in my Spry-Dataset? I got lots of <city> tags that sometimes contain the same city. And I dont want them all to be shown in the list only 1 time.
Thanks for help,
DenisDenisCGN wrote:
:-) this is where I always look at. But understand nothing :-)
It starts already here: function( ds, row, index ) where do I find ds? row? index? In the filter you showed me yesterday, it was written like that, too.
the ds, row, and index are arguements of the function. Its basically in the information that Spry sends to your filter function that you can use to filter rows in your database.
ds, is a reference to the current dataset that will have the filter applied,
row, is a reference to the current row of your dataset that the filter is checking.
index, is the current row number that is getting filtered.
You can use these values to compile your own custom filter, as i did in example posted above. It uses the row variable to check for data in the current filtered row, and decided based on the information of that row, if the filter function should return the row, or remove the row ( return nothing );
This is only one of the points. the other point is, that I dont know what to look for, when I need help. This filter thing from yesterday, is, nice, works only half, and brings me to the next frontier, like that GROUP BY thing, and that the dropdown fields are closed.
There are a few points to look for information, when i first started, i used allot code from the examples. And searched the Spry API for information. And bought a few books on JavaScript. ( Spry got me hooked on JavaScript ). The Spry Docs is basically the base source of information. It links to almost everything you need. For more about data sets I would really suggest reading the articles that are bundled with Spry.
These pages are bookmarked by me:
http://labs.adobe.com/technologies/spry/docs.html
http://labs.adobe.com/technologies/spry/articles/data_api/index.html
http://labs.adobe.com/technologies/spry/samples/
http://labs.adobe.com/technologies/spry/articles/data_set_overview/index.html
http://labs.adobe.com/technologies/spry/articles/best_practices/index.html
http://labs.adobe.com/technologies/spry/widgets/widgets.html
When i got more used to Spry and JavaScript in I got most of my knowledge by analising all functions in side of Spry, all methods and functions properties, understanding how things work, and why things work. So i can provide better solutions for problems.
When I got one, I got 3 new problems. Thats not so in PHP.
An other thing is, that the german characters arent displayed right. and and and and...
:-) I got to have a coffee now...
Denis
set column types to HTML, make sure you have the correct iso set for your XML and page. If you page is "iso-8859-15" make sure your XML and data is that as well. The same counts for UTF-8 and other encodings. -
Add total row with a webservice
Hi there,
Im trying to update a list view to add the totals to a column subtotal. Im following the instructions given on
Webservice Page
When check the response of the webservice I'm not seeing the aggregation response and the total row is not being added. When I add or remove columns through this webservice it does work. Has anyone experiencing the same issue or knows how
to solve this ?
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UpdateView xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<listName>User1</listName>
<viewName>{LIST VIEW GUID}</viewName>
<viewProperties/>
<query/>
<viewFields/>
<Aggregations Value="On">
<FieldRef Name="subtotal" Type="Sum"/>
</Aggregations>
<formats/>
<rowLimit/>
</UpdateView>
</soap:Body>
</soap:Envelope>Hi,
Is this “subtotal” a valid field name and the type of this column is “Number”?
Also, please add this column into the <viewFields/> and do the test again.
Feel free to reply with the test result if the issue still exists.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support -
Using Multiple Spry datasets? - regarding Regions: DetailContainer/DetailRegion
Hi Spry experts:
I've been battling a good battle: Spry datasets and mobile app development. I'm making headway, but as is true in life, there are problems. I've professor googled for several days related to the current issue without success. I'm throwing in the towel and asking for help.
I have a jquery mobile project I am developing in dreamweaver cs 5.5. I created a Spry HTML dataset to populate 3 lists on separate pages. Each list page is populated by a single html file that contains 3 tables with different ids.
Each table has 3 rows (name, image, desc). Each list is populated using the "name" field from each table. The lists part is all working just fine.
However, when a list item is selected (clicked), it is supposed to take the user to another page (details). There are three details pages--one for each list. These pages are for the item details. Each details page uses the same basic code. Only one page works. If I switch the location of the detail pages in DW, the page that is closest to the list pages is the one that works. I know that I am doing something that is pretty plain to someone who knows Spry, but I'm lost as to what to do next. I've tried multiple fixes and read many Spry documents. A HUGE thanks in advance to anyone who knows the answer. If you need more information, please let me know.
The expected behavior is that whatever list item is clicked the item should jump to the details page and load the data.
Here is the code for the details pages:
<!--*****************************************************************************-->
<!--Description page for items from list 1-->
<!--*****************************************************************************-->
<div data-role="page" id="details_list1"
data-add-back-btn="true" data-theme="c">
<div data-role="header">
<h1>Details List 1</h1>
</div>
<div data-role="content">
<h2><span class="DetailContainer">
<span spry:detailregion="dsList1">{dsList1::name}</span></span></h2>
<p class="DetailColumn" align="center">
<span class="DetailContainer">
<span spry:detailregion="dsList1"
class="DetailContainer">{dsList1::image}</span></span></p>
<p class="DetailColumn"><span class="DetailContainer">
<span spry:detailregion="dsList1" class="DetailContainer">
{dsList1::desc}</span></span></p>
<span class="DetailContainer">
<span spry:detailregion="dsList1"
class="DetailContainer"><br />
</span></span><br>
<br>
</div>
<!--*****************************************************************************-->
<!--Description page for List 2-->
<!--*****************************************************************************-->
<div data-role="page" id="description_list2" data-add-back-btn="true" data-theme="e">
<div data-role="header">
<h1>List 2 Details</h1>
</div>
<div data-role="content">
<h2><span class="DetailContainer">
<span spry:detailregion="dsList2">
{dsList2::sign}</span></span></h2>
<p class="DetailColumn" align="center">
<span class="DetailContainer">
<span spry:detailregion="dsList2" class="DetailContainer">
{dsList2::image}</span></span></p>
<p class="DetailColumn"><span class="DetailContainer">
<span spry:detailregion="dsList2" class="DetailContainer">
{dsList2::desc}</span></span></p>
<span class="DetailContainer"><span spry:detailregion="dsList2" class="DetailContainer"><br />
</span></span><br>
<br>
</div>
<!--*****************************************************************************-->
<!--Description page for List 3-->
<!--*****************************************************************************-->
<div data-role="page" id="description_list3" data-add-back-btn="true" data-theme="e">
<div data-role="header">
<h1>List 3 Details</h1>
</div>
<div data-role="content">
<h2><span class="DetailContainer">
<span spry:detailregion="dsList3">
{dsList3::sign}</span></span></h2>
<p class="DetailColumn" align="center">
<span class="DetailContainer">
<span spry:detailregion="dsList3" class="DetailContainer">
{dsList3::image}</span></span></p>
<p class="DetailColumn"><span class="DetailContainer">
<span spry:detailregion="dsList3" class="DetailContainer">
{dsList3::desc}</span></span></p>
<span class="DetailContainer"><span spry:detailregion="dsList3" class="DetailContainer"><br />
</span></span><br>
<br>
</div>I've been battling a good battle: Spry datasets and mobile app development.
Is this an offline app?
If not, then please post a link to your site.
Gramps -
Column Level Security - Grand Total row
Hello All, I have a question about Column Level Security in a report where Grand Total is turned on. I am working inside of the OOTB Paint rpd and I am looking at the 'Finish Sales Trend for Current Year' report on the Brand Analysis dashboard page. Inside of the Admin Tool I added column level security on the Units presentation column in the Sales Measures table. I implemented security that will not allow the Central Region Manager group to view the Units column. When I access the report I noticed that the Grand Total row of the table is slightly skewed because the Units column is hidden. The Grand Total row is showing, however all the results are off by 1 cell.
The forum is not allowing me to attach pictures to this post.
Thanks for your helpHi User,
It is an bug refer the metalink,
Bug.9576412 - GRAND TOTAL NOT WORKING WHEN COLUMN LEVEL SECURITY IS IMPLEMENTED
For eg:
consieder a report with following columns,
Year Product Measure1 Measure2
In this if for measure1 the column level security is enabled (user1 who is not supposed to see the data).
Then grand total value of measure2 will be in the grand total of measure1. (for user1)
When column level security is enabled, that column will be pushed to the end of the table view.
So that it is happening.
By using case statements with groups or users we can get it work without enabling the column level security.
Thanks,
Vino -
Using an .aspx file for a spry dataset
I need to pull title data and associated links from this page (
http://www.isurv.com/site/custom_scripts/rss_whats_new.aspx) on to a separate site where the info is displayed as latest news.
Whilst locally I can get this to work in I.E. no data shows in Firefox, Chrome, Safari.
If I upload the file and supports to the site I get nothing in any browser.
Question. Can I use an .aspx file as a source for my Spry dataset?
If so can some one show me an example?
here's my code:
<script type="text/javascript">
var ds2 = new Spry.Data.XMLDataSet("http://www.isurv.com/site/custom_scripts/rss_whats_new.aspx", "rdf:RDF/item");
ds2.setColumnType("dc:date", "date");
</script>
<body>
<div spry:region="ds2">
<ul spry:repeatchildren="ds2">
<li><a href="{ds2::link}">{title}</a></li>
</ul>
</div>
</bodyThe problem lies with the fact that XML data cannot normally be transferred from one domain to another, that is unless you are using YQL, see here http://developer.yahoo.com/yql/
Our friend Arnaut Kazemier (V1) has written a nifty script that combines the features of Spry with that of YQL and can be found here https://github.com/3rd-Eden/Spry-YQL-DataSet. Using the YQLDataSet I have written a test page which can be found here http://pleysier.com.au/rss_example/
However, I tried to connect to http://www.isurv.com/site/custom_scripts/rss_whats_new.aspx without the result
Another interesting possibility can be found here http://www.linecraft.com/dreamweaver-get-external-feed/extension.php. I have not tried it yet.
Gramps -
Advanced data selection in Spry datasets
There seems to have a bug in the final release of DW CS4 that
wasn't there in the Beta version: when we create an html Spry
dataset and we check the "Advanced data selection" option, DW
automatically adds a row with column0, column1, and so on. This row
doesn't do anything good, and if we click next, checking or
unchecking the "Use first row as header" option doesn't change
anything...
In fact, if we don't check the "Advanced data selection" in
the first step, checking or unchecking the "Use first row as
header" on the second step toggles the column0... behavior... So,
it's like if there was a bug that if we use advanced, it always
acts as if the "Use first row as header" was always unchecked...
adding an unessesary row to our data...
For now, the only way I could go around that, was to not use
the "Advanced data selection", and in the last step, clicking Set
Up... and removing the columns that I don't want...Loveanie wrote:
> There seems to have a bug in the final release of DW CS4
that wasn't there in
> the Beta version: when we create an html Spry dataset
and we check the
> "Advanced data selection" option, DW automatically adds
a row with column0,
> column1, and so on. This row doesn't do anything good
It identifies the column. In Step 2, you can select each
column and
change its name in the Column Name field at the top of the
wizard.
Without a column name, the Spry data set has no way of
identifying the
data you want to display.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Total row count - where from is that value?
Hi,
I need the value of total row count that is displayed at the button of portal report. I need this value to use in my java script.
Is that value somewhere in database? Maybe any variable or hidden form element on the page?
Where from does the portal know when to show only the previous button and when both next and previous? It must by calucated somehow.
Thanks in advance.
best regards
Krzysztof Jungowski
nullThanks. Just to make clear:
Probelm:
I need to display links to pages with part of results at the bottom of page - just like in discussion group: Pages: [1] [2] [3] ....
Solution:
I know that there is a hidden form on every report rendered by portal. In that form there are several elements like:
pagenumer, minrow and maxrows. Updating these elements I can jump to every page with results.
Total row count problem:
The problem is that I don't know the number of pages. If I had a total row count value I would calculate the number of pages and create links only to existing pages.
best regards
Krzysztof Jungowski
Maybe you are looking for
-
When using the Mozella Firefox 4 browser and the NEW version Adobe Reader X, PDF's online will not ever open. After 1-3 minuites, I eventually get a message the Adobe reader is running, but need to close and try again! I get same results when trying
-
Replacing ProBook 640 G1 HDD to SSD
Hi all, I have a HP ProBook 640 G1 and would like to replace the HDD with a 500GB SSD. - Is this possible? - If yes, what specs/kind of SSD to look for to buy? - Best reliable brand of SSD forum members have experienced/recommend? - What is the best
-
how i return purchased game application on imac i deleted by mistake under purchse topin in app store. also i want to know how i updated when i recieve a massage to updated
-
Calling LV created DLL from LV
Howdy- I'm trying to call a LV DLL from within LV (seperate project). Once the DLL has been comppiled I'm using the Import Shared Library to create the node. However when I try this I get an error message with the import that appears to have trouble
-
My "9-o-l-." keys stop working after startup, and spreading! ahh help?
My "9-O-L-." keys stop working after startup and my arrow keys too. Sometimes when I start up the keys will work for a bit then one by one stop functioning and then randomly work every so often, then it seems to "spread" to the right shift key, and s