Build pages in bulk
Hello,
I'm working on a project which requires me to build 100s of pages hence I am using powershell script I came across from this
site . The script I am working with uses the data from a secondary XML document and builds pages with the Name, Title and Contact Person. So far I have only been successfull with building these pages on the root site. For some reason, the
subsite that I have provided isn't being used, any ideas why this isn't happening?. Also I'd like to take this to the next level which is
adding custom text in the pages so I'm wondering what are the changes that need to be made in the powershell and the XML file.
Below is the script and the xml file. As you can see the pages should be built in the site named testsite but for some reason they are being built in the root site itself.
This script is run on powershell as follows
PS c:\scripts> .\page-layout-creator.ps1 “c:\pages.xml”
http://sharepoint.contoso.com/sites/testsite
Thanks in advance for your help!
Script
[xml]$pagesXML = Get-Content $args[0]
$siteUrl = $args[1]
$site = New-Object Microsoft.SharePoint.SPSite($siteUrl)
$web = $site.rootweb
$pub = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
$pagesXML.Pages.Page | ForEach-Object {
$fileName = $_.FileName
$title = $_.Title
$articleType = $_.ArticleType #Choice fields just need a string value
$contact = Get-SPUser -Identity $_.Contact -web $web
$reviewDate = [DateTime]::Now.AddDays($_.ReviewDate)
#Below I replace a token in the XML to get the absolute url
#else it will error with subwebs, even if using relative with or without /
$pubPageLayout = $_.PubPageLayout -replace "{siteUrl}", $siteUrl
Write-Host "Creating page $fileName"
$newPage = $pub.AddPublishingPage()
$newPage.ListItem["BaseName"] = $fileName
$newPage.ListItem["Title"] = $title
$newPage.ListItem["PublishingPageLayout"] = $pubPageLayout
$newPage.Update() #Must update here so we can access our custom columns
$newPage.ListItem["Contact"] = $contact $newPage.Update()
$newPage.CheckIn("")
$newPage.ListItem.File.Publish("")
Write-Host "Published"
Write-Host "Completed!"
# Dispose
$web.Dispose()
$site.Dispose()
XML document.
<?xml version="1.0" encoding="utf-8"?>
<Pages>
<Page>
<FileName>Teampaintballcomp2</FileName>
<Title>Team paintball comp2</Title>
<PubPageLayout>{siteUrl}/_catalogs/masterpage/customPage.aspx,
Custom Page</PubPageLayout>
<Contact>domain\username</Contact>
</Page>
<Page>
<FileName>Teampaintballcomp3</FileName>
<Title>Team paintball comp3</Title>
<PubPageLayout>{siteUrl}/_catalogs/masterpage/customPage.aspx,
Custom Page</PubPageLayout>
<Contact>domain/username</Contact>
</Page>
<Page>
<FileName>Teampaintballcomp4</FileName>
<Title>Team paintball comp4</Title>
<PubPageLayout>{siteUrl}/_catalogs/masterpage/customPage.aspx,
Custom Page</PubPageLayout>
<Contact>domain/username</Contact>
</Page>
</Pages>
Yup, it's because your code is only meant for site collection root sites
[xml]$pagesXML = Get-Content $args[0]
$siteUrl = $args[1]
$site = New-Object Microsoft.SharePoint.SPSite($siteUrl)
$web = $site.rootweb
$pub = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
$pagesXML.Pages.Page | ForEach-Object {
$fileName = $_.FileName
$title = $_.Title
$articleType = $_.ArticleType #Choice fields just need a string value
$contact = Get-SPUser -Identity $_.Contact -web $web
$reviewDate = [DateTime]::Now.AddDays($_.ReviewDate)
#Below I replace a token in the XML to get the absolute url
#else it will error with subwebs, even if using relative with or without /
$pubPageLayout = $_.PubPageLayout -replace "{siteUrl}", $siteUrl
Write-Host "Creating page $fileName"
$newPage = $pub.AddPublishingPage()
$newPage.ListItem["BaseName"] = $fileName
$newPage.ListItem["Title"] = $title
$newPage.ListItem["PublishingPageLayout"] = $pubPageLayout
$newPage.Update() #Must update here so we can access our custom columns
$newPage.ListItem["Contact"] = $contact $newPage.Update()
$newPage.CheckIn("")
$newPage.ListItem.File.Publish("")
Write-Host "Published"
Write-Host "Completed!"
# Dispose
$web.Dispose()
$site.Dispose()
I have a few pet hates and using New-Object is one of them and it's wrapped up in the error you're getting.
The command there is effectively Get-SPSite, which will return the site collection object at the URL you give it. If you give it a sub site, as you probably are, it will most likely fail.
What you need to do is change the code, there's no reason to get a SPSite object in there, it would work just as well with a Get-SPWeb.
Try swapping out the first bit for this:
$site = New-Object Microsoft.SharePoint.SPSite($siteUrl)
$web = $site.rootweb
$pub = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
#Becomes
$web = Get-SPWeb $siteURL
$pub = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
That should work.
Similar Messages
-
Add and edit content editor web part to pages in bulk.
Hello,
I had recently posted a question 'Build pages in
bulk' and thanks to
Alex Brassington, I was able to do just that. Now, I want to take this PS script and XML file to the next level. Currently I am using page content to add simple text to each pages in bulk. Now, I'd like to add the Content Editor webpart and also add text
in it in bulk. Is that possible? Below is the code for both the PS and the XML. The script is run as
PS c:\scripts> .\New-Page.ps1 “c:\pages.xml”
http://SharePoint.contoso.com/sites/TestSite
New-Page.ps1
[xml]$pagesXML = Get-Content $args[0]
$siteUrl = $args[1]
$web = Get-SPWeb $siteURL
$pub = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
$pagesXML.Pages.Page | ForEach-Object {
$fileName = $_.FileName
$title = $_.Title
$articleType = $_.ArticleType #Choice fields just need a string value
$contact = Get-SPUser -Identity $_.Contact -web $web
$reviewDate = [DateTime]::Now.AddDays($_.ReviewDate)
$pagecontent = $_.PageContent
#Below I replace a token in the XML to get the absolute url
#else it will error with subwebs, even if using relative with or without /
$pubPageLayout = $_.PubPageLayout -replace "{siteUrl}", $siteUrl
Write-Host "Creating page $fileName"
$newPage = $pub.AddPublishingPage()
$newPage.ListItem["BaseName"] = $fileName
$newPage.ListItem["Title"] = $title
$newPage.ListItem["PublishingPageLayout"] = $pubPageLayout
$newPage.Update() #Must update here so we can access our custom columns
$newPage.ListItem["Contact"] = $contact
$newPage.ListItem["Page Content"] = $pagecontent
$newPage.Update()
$newPage.CheckIn("")
$newPage.ListItem.File.Publish("")
Write-Host "Published"
Write-Host "Completed!"
# Dispose
$web.Dispose()
$site.Dispose()
Pages.xml
<?xml version="1.0" encoding="utf-8"?>
<Pages>
<Page>
<FileName>Teampaintballcomp1</FileName>
<Title>Team paintball comp1</Title>
<PubPageLayout>http://sharepoint.contoso.com/sites/testsite/_catalogs/masterpage/CustomWikiPage.aspx</PubPageLayout>
<Contact>AD-Ent\TestAccount</Contact>
<PageContent>
This is some text.
This is another line of text.
</PageContent>
</Page>
<Page>
<FileName>Teampaintballcomp2</FileName>
<Title>Team paintball comp2</Title>
<PubPageLayout>http://sharepoint.contoso.com/sites/testsite/_catalogs/masterpage/CustomWikiPage.aspx</PubPageLayout>
<Contact>AD-Ent\TestAccount</Contact>
<PageContent>
This is some text.
This is another line of text.
</PageContent>
</Page>
<Page>
<FileName>Teampaintballcomp3</FileName>
<Title>Team paintball comp3</Title>
<PubPageLayout>http://sharepoint.contoso.com/sites/testsite/_catalogs/masterpage/CustomWikiPage.aspx</PubPageLayout>
<Contact>AD-Ent\TestAccount</Contact>
<PageContent>
This is some text.
This is another line of text.
</PageContent>
</Page>
<Page>
<FileName>Teampaintballcomp4</FileName>
<Title>Team paintball comp4</Title>
<PubPageLayout>http://sharepoint.contoso.com/sites/testsite/_catalogs/masterpage/CustomWikiPage.aspx</PubPageLayout>
<Contact>AD-Ent\TestAccount</Contact>
<PageContent>
This is some text.
This is another line of text.
</PageContent>
</Page>
</Pages>If i just fill the .txt file that is linked to the CEWP the web part div scales fine, but adding a nested div or an image and it doesn't scale down.
-
Can not open Build page in the visualstudio online
On attempt to open BUILD page error appears:
TF50309: The following account does not have sufficient permissions to complete the operation: Kateryna Chistyakova. The following permissions are needed
to perform this operation: View project-level information.
In same time it`s possible to build builds from desktop version with same accountUninstall the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and Firefox that prevents new tabs from being opened.
There are a couple of places to check for the Ask toolbar:
* Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
* Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons -
Application Builder page ORA-06502
I'm having the same problem as described in this old thread that doesn't seem to have been resolved:
application builder page error ORA-06502
After logging in, I click Application Builder and get this error message three times:
report error:
ORA-06502: PL/SQL: numeric or value error: NULL index table key value
On the main part of the page where there should be a bunch of icons for each of the applications, and also on the right in the boxes labeled "Recent" and "Application Groups". The URL states that I'm in application 4000, page 1500. Using info from the old thread I tried changing the view option of the report from "Icons" to "Details" and find I am able to see the list of applications this way. I am worried that eventually even this method of reaching my application will become compromised. Anyone know how to fix this issue yet?
My versions are:
Application Express 3.2.1.00.12
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining optionsSo after a while the problem went away by itself, but it's back again and I've noticed another section of APEX that becomes affected when this error starts happening. When I click the icon for Copy Region, instead of a list of region names I get the error message.
-
Application builder page error ORA-06502
We get an intermittent error with the application builder page of application express. The report that normally shows the icons or rows for each application returns the error "report error:
ORA-06502: PL/SQL: numeric or value error: NULL index table key value". is this a know issue? is there anything we can do to fix it?
TomScott,
Thanks for the reply.
I will try my best to explain, following is the navigation:
1. After logging into my workspace --> Click on Application Builder --> Click either on a custom application or sample application --> I get report error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value (Default View of the pages is set to Details)
2. If I change the page[s] View to Icons then there is no error.
3. We bounced the web but still having the error, did not try flushing the shared pool on the server.
HTH
Thanks
Pradeep
PS: How can I upload a screenshot? -
Template or Stationery? Which is better to use for building pages?
I'm going to start building my tier 2 and tier 3 pages, and want the nav bar on every page to update with the new tier 2 pages that I add.
Will a template or stationery page update the nav bar? The content will change on each page, but as I add the tier 2 pages, those will become part of the navigation bar throughout the site. How do I do this, or maybe the better question is...which should I use, a template or stationery?
I'm using GoLive 6.
Thanks,
Kirstyn SierraNAVIGATION AS A COMPONENT:
Basically, you build your navigation into a separate file that only has the navigation links and save it as a Component. Then, in your site pages, you drop in the Component into the page where needed. Later, if you add a page, you add the link to your Component, which then goes through all the pages you dropped the Component into and updates them to match what you just saved. You then re-upload all your modified files so the copy online matches.
SITE TEMPLATE:
You build the entire page design template structure, putting everything where you want. You define "editable" regions in the template for the content that changes with every page (the main body content - basically everything except the basic structure and navigation) and save it into GoLive's Templates folder. You make new pages based on the template, and everything's locked except the part(s) that change on every page. You add the page-specific content to the editable region and save. Later, if you make a change on the master Template file, those changes are copied by GoLive into any page based on that template, but it ignores the "editable" regions so as not to override the page-specific content.
Either way you go, you'd need to read the manual for your version of GoLive for the specifics on how to set up Templates or Components (and post back here if you run into questions). I don't have a copy of GoLive 6 installed, so can't spout the details off the top of my head :-) -
Build page with screen definition in XML using XSLT in ADF 11.1.1.x
Hi folks,
I'm figuring out how best integrating Oracle Policy Automation/Webdeterminations in ADF. My idea is that in a ADF Taskflow I first call a Init-session webservice on OPA to initiate a session with facts queried from ADF Components.
Then I would query a Determinations Server Webservice to get the next interview-screen definition. This gives me an xml with the definition of a screen to present. I could create an xslt that transform this to an HTML form. Then I would show a page with this (x)html form included in a container. The user could fill in the question-fields. Then on a command button I would read the values from the HTTP request and feed it into a webservice call to the Determinations Service.
Is a scenario like this possible in ADF? And could you give me some hints to get me on track? Or would you suggest otherwise?
The recommendation from OPA is to use data-adapters. But that are then java-classes based on an java-interface that are to be custom build on a datamodel. And I could imagine several security implications on that.
Thanks in advance.
Regards,
MartienCan you use JAXB to unmarshall the XML document to a Java Class (and create a POJO data control out of the java class) and use it in the ADF pages as form or table or tree table?
Take a look at the following sample how an XML document having a schema associated can be converted to a Java class and used in the UI:
http://adftree.googlecode.com/svn/trunk/TreeSample.zip
Thanks,
Navaneeth -
I need to build a Query Builder tool into my app for end users. I wanted to look at the page source of the Query Builder tool built into APEX. Looking at the URL below I can see that it is calling application: 4500 page: 1002
ref="f?p=4500:1002:1230793305485584::NO:1002::" title="Query Builder"
Is there any way for me to bring this page up in the builder or does someone have a similar app already built?
Thanks,
BobYou can install into your own workspace any of the applications we ship. They're in the builder directory. Just change the application alias in the file before you do. You'll then be able to see the application in your Builder. You won't be able to run it, of course.
Scott -
Building pages to use dbms_scheduler like in OEM, is it a good idea?
In OEM, there's already full featured web pages to administrate scheduler objects, sometimes, OEM is very heavy in load, during my first testing, it even make my db server hang, run out of swap. But I try to build a simple page to submit jobs using dbms_scheduler, it works file and quite light weighted.
So is it a good idea to build scheduler administration pages in Apex? will it be like reinvent a wheel?This is what I am trying to do but have run into the 'insufficient privileges' problem. I am actually trying to give our users the ability to schedule some of the jobs associated with their application. I've been able to submit a job through Toad under the schema used by the application. But I'm not sure whether I need to grant the appropriate privileges to run the scheduler package to the flows schema as well. I have also been able to schedule the job through the SQL Workshop in the APEX application builder, but I can't do it through the application. Any suggestions?
Sue
Edited by: suewia on Jan 6, 2010 7:14 AM -
Automaticaly building pages from XML input?
Hello, folks
First: I am not sure if this is the right forum to ask this question, if so bear with me, please.
We want to make an iPad application with a very tight deadline. For that we would need to process real fast about 70-90 pieces of news in InDesign with the less human intervention as possible (desired aim:none).
Each piece of news would have 1-3 pages of content with one or two pictures. We have build a set of templates with master pages for all of them (About 6-7 very simple variants).
We would like to define a workflow that would satisfy our needs and I believe something as I will describe next would serve them. What I would like from you, please, is telling me if that would be feasible, and if it is a good approach and, if so, what would we need to accomplish it:
We can place our content formatted as XML into a folder or set of folders.
This folders would act as hot folders, detected by InDesign (InDesign Server? Enfocus Switch?)
The software (ID server?) detects the presence of new content and then places the XML into the InDesing template assigned to that folder.
As we would have used XML-tagged frames in the templates (using InCopy or the content collector), the template would include vertical and horizontal versions (alternative layouts). So, InDesign would be doing automatically what a human would do by hand: Pick template, insert XML, save as ID document.
The software (enfocus switch? InDesign server?) would then place each appropriated final InDesign document in an oputput folder.
If we could manage to achieve the assignation of an article AND its upload and inclusion into an Adobe DPS folio in our account that would be SWEEEEEEET... But maybe that would be asking too much.
The human intervention would be then limited just to sieve the unwanted pieces of news and tweak minor things here and there.
So the question is: How does it sound? Whacky? Feasible? Way too expensive/complex? Any better/simpler idea?
Thank you
Gustavo (Posting from Madrid)Hi Gustavo,
maybe you already got help on this question. Production of iPad publications for several languages and/or formats can be challenging, I totally agree. And I think you have found a good way to solve the workflow. And I think this would be possibly to build aswell. We are you our own software, Ctrl InDesign Application Server (CIDAS) to build workflows around InDesign Server. And we have done some near what you descreib here. So if you need software to watch folders and trigger scripts on one or more instances of InDesign Server, and if you need coding help, contact me and we can give you some pricing.
Regards
Tobias -
Cannot load ipage drag and drop site builder page
The only thing that loads is the header. ipage help thought it was a problem with adobe flash player. Plugins manager indicated I had Shockwave player, no Adobe Flash listed. Tried downloading Adobe Flash, appeared to download and install, but did not show up in plug in manager, even after rebooting. Uninstalled Shockwave, rebooted and downloaded Adobe Flash. Shockwave player showed up again in plug in manager, not Adobe Flash. Not sure if they are now one and the same. Checked permissions for the page and allowed everything, still no help. Tried clearing the cache and cookies, no change. The page is fully functional in Explorer. Could use some help, please. Running version 9.01. Thanks
Do you mean that you want to be able to drag and drop between sections within the page, drag and drop within the same section, or drag and drop across to a different page?
-
Question about best way to build page
I built a site by first designing it in Photoshop and then
slicing it up, leaving an area for the main text for each
individual page. I then brought the html and images into
Dreamweaver and built a template, making an editable region in the
table cell where the main text for each page will go. Here's a
screenshot to give you a better idea...
Screenshot
Originally I set it up so that the editable region had a
scroll bar to accomodate the amount of text for the page (I used
overflow set to auto in the CSS). The problem is, the client
doesn't want scrollbars and wants the page to dynamically expand
vertically based on the amount of text for the page (with the
woman's picture top aligned with the text and her bio link under
the nav bar, and the 2 magazine photos along with her blurb and
copyright pushed down to the bottom below the main text).
If I don't use scrollbars and try to put more text than will
fit into the cell of the editable region, it breaks the table and
the nav bar gets all screwed up and looks like this...
Screenshot
2
I'm at a loss, how can I set this up so the page will
dynamically expand vertically with the text? Any suggestions? Is a
table not the way to go? What's the best way of doing it?
I'm open to anything at this point, I've been trying things
on my own for hours with no results, any help is appreciated,
thanks!xslamx wrote:
> The Photoshop design is what the client approved and is
expecting, so I'm kind
> of stuck with it and can't really simplify it. Is that
what you meant by
> "start in Dreamweaver", changing the layout to make it
simpler?
>
Its quite simple to recreate directly from within
Dreamweaver. Below is
the main html/css structure you require. Just a simple two
column, one
row table will do the job. Cut code below, paste into a new
Dreamweaver
document....add content and tweak a bit.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
font-family: verdana, arial, helvetica, snas-serif;
font-size: 65%;
background-color: #000;
color: #fff;
line-height: 140%;
#mainTable {
width: 800px;
margin-left: auto;
margin-right: auto;
#leftCol {
width: 600px;
vertical-align: top;
#leftCol h1 {
font-size: 120%;
padding: 12px 0 0 0;
#leftCol h2 {
font-size: 110%;
padding: 12px 0 9px 0;
border-bottom: 1px solid #ccc;
#leftCol h3 {
font-size: 100%;
#leftCol h1, #leftCol h2, #leftCol h3 {
margin: 0 0 5px 70px;
width: 350px;
#leftCol p {
padding: 0 0 5px 0;
margin: 0 0 0 70px;
width: 350px;
#mindyImage {
float: right;
margin: 12px 12px 0 0;
border: 1px solid #fff;
#list {
margin-left: 70px;
padding: 0 0 0 15px;
width: 335px;
#leftCol ul {
margin: 0;
padding: 0;
#leftCol li {
margin: 0;
padding: 0;
#rightCol {
vertical-align: top;
padding: 20px 0 0 0;
#rightCol ul {
margin: 0;
padding: 0;
list-style: none;
width: 120px;
#rightCol li {
margin: 0;
padding: 0;
list-style: none;
#rightCol a {
text-decoration: none;
color: #8b7d6b;
background-color: #eedfcc;
display: block;
text-align: right;
padding: 4px 5px 4px 0;
</style>
</head>
<body>
<table id="mainTable" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td id="leftCol">
<img src="makeUpStudioLogo.gif" alt="The Make Up Studio
Inc."
width="600" height="125">
<img src="mindy.gif" id="mindyImage" alt="Mindy - the
make-up artist"
width="150" height="250">
<h1>Introduction to make up Artistry for the aspiring
Makeup Artist.</h1>
<p>Having worked with students and clients for years,
Mindy now offers
a workshop-style lesson for the aspiring Makeup Artist.
You'll get hands-on instruction to suits your needs and
learn beauty
bascics to give you the knowledge needed to start a
progfessional
career. The course will include:
</p>
<div id="list">
<ul>
<li>Kit supply basics, informational</li>
<li>Introduction to brushes and tools</li>
<li>Introduction to color theory</li>
<li>Lighting basics</li>
<li>Skincare and prep</li>
<li>Basic beauty and corrective makeup</li>
<li>Sculpting the perfect brow....tools and
techniques</li>
<li>Applying false eyeleashes</li>
<li>Overview of all makeup uses</li>
<li>Concealer and foundation techniques</li>
</ul>
</div>
<h2>2-day beginner course-$600 (includes all materials
needed)</h2>
<h3>Career & Portfolio Development</h3>
<p>This workshop covers the basics necessary for a
carerr in makeup -
including resumes, business cards, making and keeping
contacts and
portfolio development. The first
few days will be devoted to technique. You'll then be
supplied with
models to create two distinct looks for your portfolio. Both
of your
designs will be photographed by one of the city's
to fashion photographers. Each student will choose two
photos from the
shoot to promote themselves. This workshop is an exciting
environment
for the Makeup Artist to express their creativity
for the purpose of promoting themselves.</p><br>
<p><strong>This course is limited to working
makeup
artists.</strong></p></td>
<td id="rightCol">
<ul>
<li><img src="curvetop.gif" alt="" width="120"
height="12"></li>
<li><a href="#">About us</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">In
Philadelphia</a></li>
<li><a
href="#">Testimonials</a></li>
<li><a href="#">Press
Awards</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Links</a></li>
<li><img src="curveBottom.gif" alt="" width="120"
height="12"></li>
</ul>
</td>
</tr>
</table>
</body>
</html> -
Best Way to Build Page/Form Logic - Adobe Muse
Hello! I would like to build a simple site with some basic logic to get customer reviews, please see example of how a site similar to what we would like to build is set up: http://www.loveringnashuareviews.com/leave-review
Can anyone recommend the best way to accomplish this in Adobe Muse? Would you use the Adobe Muse Form widget or imbed form HTML from a form builder?
I'd love to do it all within Adobe Muse to avoid having to sign up for a separate form building vendor, but I'm open to any and all suggestions:)Hi Reaver74,
In the example site, the form is an interactive form where next option is offered based on the selection. This kind of form can't be created in Muse at the moment. You need to get the code for such form from some external source and embed it in Muse.
Cheers!
Aish -
Is it possible to hide page numbering starting from a specific based on a condition on that page?
for example is there is no records in specific table then we need to hide the page numbering for rest of the pages except the pages above that table.
Can you assist me?
hussainHi Hussain,
Per my understanding that you have add page number on the report and want to conditional hide some of the page numbers based on the one of the tablix ,right?
I have tested on my local environment and you can use expression in the PageNumber Properties window like below to hide and show the page number:
Expression:
=IIF(count(Fields!Test.Value, "DataSet1")=0 and Globals!PageNumber>=2, true, false)
Note: If the "DataSet1" returns no data and the page number after the tablix is >=2 then they will be hidden.
You can add page break in every tablix's properties to make them display on a single page.
If you still have any problem, please try to provide more details information.
Regards
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support -
Can not build a template based page with customized page type.
I built a customized page type (with persepective attribute) and wanted to build pages with this type. If the new pages do not based on any template, it works fine. However, if I wanted to use a template, the page type was set back to "standard"!
Steps to reproduce it:
1. create a new page type - test page type.
2. create a new template = test template.
3. create a new page - test page.
3.1 choose the page type to be "test page type"
3.2 fill in the form including the new attribute info.
3.2 choose the page template to be 'test template"
3.3 click finish
4. click the properties of "test page", it shows that the page type is "standard" and the new attribute information is gone!
If in step 3.2, no template is chosen, the properties of the new page shows the page type is "test page type".
I tried to find a workaround.
1. create a page with "test page type".
2. covert the new page to template.
I got this error message:
Error while copying page. (WWC-44262)
(WWC-00000)
Looks like customized page type and template can not coexist. Is this a bug?How long should the upgrade take? And should it be attempted on a production (infrastructure on machine 1/middle-tier on machine 2) Windows 2000 architecture? Or should be wait for 9.0.4? Or ... should I ask this in a TAR? Thanks!
Mike
Maybe you are looking for
-
Installing HP Photosmart 7520 all in one printer software
My new HP Photosmart 7520 will not install on my Dell PC. I have the 32-bit Windows Vista OS. When installation begins I immediately get the error message: "Key not valid for use in specified state". I've tried installing the CD and the software f
-
Movie Purchases and 5.1 Surround
Recently I've been noticing some movies (such as Casino Royale and the just released Australia) come with 5.1 Surround Sound. When these are downloaded through iTunes, will they play in Surround on a Machine (given a proper system of course) or is it
-
Is there any BAPI or RFC to delete only the ITEMS of the BOM. Please help.Its urgent.
-
How do I send an email answer when there is no "send" command?
this problem occurs when I use a 'reply" email address and only with firefox, never with internet explorer
-
Premiere Elements 11 not working on a networked system
Could someone please confirm to me that Premiere Elements 11 does not work with redirected My Documents folders? Is this something Adobe will look to change?