Change visible property of iView assigned to page
Hi,
When we add an iView to a page, we have some properties like visible, fixed,etc. mentioned along with each iView. Now, I want to change the visible property dynamically using pdk development. How can we achieve this?
Regards,
Khushboo
Hello Mittal,
As per my understanding you want a way to dynamically edit the property of the PCD objetcs using PDK. SAP provides an API for the same puspose. Please refer to this link for more details
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401
Regards,
Raju Bonagiri
Similar Messages
-
How I can change visible property of an af:table with an af:selectOneRadio?
How I can change visible property of an af:table with an af:selectOneRadio? Anyone can help me with a tutorial, example or link?
Thanks in advance.After you add the required libraries to your classpath
you can do your use case as explained in this sample
page source
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<af:document title="untitled2.jsf" id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:selectOneRadio label="radio" id="sor1" autoSubmit="true"
valueChangeListener="#{ControlVisibilty.onRadioSelected}">
<af:selectItem label="0" value="0" id="si1"/>
<af:selectItem label="1" value="1" id="si2"/>
</af:selectOneRadio>
<af:table value="#{bindings.DepartmentsView1.collectionModel}" var="row"
rows="#{bindings.DepartmentsView1.rangeSize}"
emptyText="#{bindings.DepartmentsView1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.DepartmentsView1.rangeSize}" rowBandingInterval="0"
selectedRowKeys="#{bindings.DepartmentsView1.collectionModel.selectedRow}"
selectionListener="#{bindings.DepartmentsView1.collectionModel.makeCurrent}" rowSelection="single"
id="t1" partialTriggers="::sor1" visible="#{ControlVisibilty.table}">
<af:column sortProperty="#{bindings.DepartmentsView1.hints.DepartmentId.name}" sortable="false"
headerText="#{bindings.DepartmentsView1.hints.DepartmentId.label}" id="c1">
<af:inputText value="#{row.bindings.DepartmentId.inputValue}"
label="#{bindings.DepartmentsView1.hints.DepartmentId.label}"
required="#{bindings.DepartmentsView1.hints.DepartmentId.mandatory}"
columns="#{bindings.DepartmentsView1.hints.DepartmentId.displayWidth}"
maximumLength="#{bindings.DepartmentsView1.hints.DepartmentId.precision}"
shortDesc="#{bindings.DepartmentsView1.hints.DepartmentId.tooltip}" id="it1">
<f:validator binding="#{row.bindings.DepartmentId.validator}"/>
<af:convertNumber groupingUsed="false"
pattern="#{bindings.DepartmentsView1.hints.DepartmentId.format}"/>
</af:inputText>
</af:column>
<af:column sortProperty="#{bindings.DepartmentsView1.hints.DepartmentName.name}" sortable="false"
headerText="#{bindings.DepartmentsView1.hints.DepartmentName.label}" id="c2">
<af:inputText value="#{row.bindings.DepartmentName.inputValue}"
label="#{bindings.DepartmentsView1.hints.DepartmentName.label}"
required="#{bindings.DepartmentsView1.hints.DepartmentName.mandatory}"
columns="#{bindings.DepartmentsView1.hints.DepartmentName.displayWidth}"
maximumLength="#{bindings.DepartmentsView1.hints.DepartmentName.precision}"
shortDesc="#{bindings.DepartmentsView1.hints.DepartmentName.tooltip}" id="it2">
<f:validator binding="#{row.bindings.DepartmentName.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="#{bindings.DepartmentsView1.hints.ManagerId.name}" sortable="false"
headerText="#{bindings.DepartmentsView1.hints.ManagerId.label}" id="c3">
<af:inputText value="#{row.bindings.ManagerId.inputValue}"
label="#{bindings.DepartmentsView1.hints.ManagerId.label}"
required="#{bindings.DepartmentsView1.hints.ManagerId.mandatory}"
columns="#{bindings.DepartmentsView1.hints.ManagerId.displayWidth}"
maximumLength="#{bindings.DepartmentsView1.hints.ManagerId.precision}"
shortDesc="#{bindings.DepartmentsView1.hints.ManagerId.tooltip}" id="it3">
<f:validator binding="#{row.bindings.ManagerId.validator}"/>
<af:convertNumber groupingUsed="false"
pattern="#{bindings.DepartmentsView1.hints.ManagerId.format}"/>
</af:inputText>
</af:column>
<af:column sortProperty="#{bindings.DepartmentsView1.hints.LocationId.name}" sortable="false"
headerText="#{bindings.DepartmentsView1.hints.LocationId.label}" id="c4">
<af:inputText value="#{row.bindings.LocationId.inputValue}"
label="#{bindings.DepartmentsView1.hints.LocationId.label}"
required="#{bindings.DepartmentsView1.hints.LocationId.mandatory}"
columns="#{bindings.DepartmentsView1.hints.LocationId.displayWidth}"
maximumLength="#{bindings.DepartmentsView1.hints.LocationId.precision}"
shortDesc="#{bindings.DepartmentsView1.hints.LocationId.tooltip}" id="it4">
<f:validator binding="#{row.bindings.LocationId.validator}"/>
<af:convertNumber groupingUsed="false"
pattern="#{bindings.DepartmentsView1.hints.LocationId.format}"/>
</af:inputText>
</af:column>
</af:table>
</af:form>
</af:document>
</f:view>The managed bean code is
import javax.faces.event.ValueChangeEvent;
public class ControlVisibilty {
private boolean table;
public ControlVisibilty() {
setTable(false);
public void onRadioSelected(ValueChangeEvent valueChangeEvent) {
// Add event code here...
if(valueChangeEvent.getNewValue().toString().equals("1"))
setTable(true);
else
setTable(false);
public void setTable(boolean table) {
this.table = table;
public boolean isTable() {
return table;
} -
How to change visibility property of a VC iView by clicking of a BI iView?
Hi all!
I have created four iViews: two speedometers with web application designer and two iViews with visual composer. I added the speedometers and a visual composer iView #1 to a portal page (default view). The requirement is that by clicking the speedometer #2, the visual composer iView #2 would replace visual composer iView #1 on the portal page. If the user then would select the speedometer #1 again by clicking it, visual composer iView #2 would replace #1 again and so on.
I have read article http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b65a5d-f397-2910-a78a-f5544f21c33b?quicklink=index&overridelayout=true, but it is more about filtering VC iView values with BI web items. I don't need to filter anything, just to change one iView to another in a portal view by clicking a third one. How can I check what values my web application with Z_SERVICEOUTBOUND template is transfering to VC?
One solution might be¨to transfer any value to VC by clicking a speedometer and to change the visibility of the VC iViews according to that value (the speedometer #1 should in that case transfer other value to VC than speedometer #2). I don't know if that is possible with speedometers - you can't reference any characteristics or variables with it.
If you have an idea, what would be the best way to accomplish this requirement, I would be very glad to hear about it! We are in VC 7.0.
Points garanteed!
Regards
SariHi
Since you are accesing the node containing the 'VISIBILITY' attribute you can use the following method to set the value
lo_el_visible->set_attribute(
exporting
name = `VISIBILITY`
value = 01 ). ""01 - none,02-visible
and remove this code
wd_context->set_attribute( EXPORTING name = 'VISIBILITY' value =
abap_false ).
Regards
Tamil
Edited by: Tamilselvan K on Aug 6, 2008 2:40 PM -
Iviews in home page not visible when I assign eu_role to portal users
Hey guys,
For the tool area search, I had access denied error. So I have assigned eu_role to the portal users and I am able to search now in the tool area.. But the problem is when I assign this eu_role to the portal users I am not able to see some iviews in my home page.. Like I had webdynpro iview and km document iview which are not visible now. And in place of KM document iview its showing me with this message:
Links :There are no items to display (Organize Entries)
Suggest me with some help.
Regards
PPHi Priyanka,
Just refer these helps for getting idea on PCD Repository Manager.
http://help.sap.com/saphelp_nw04/helpdata/en/76/a8934259a5cc6ae10000000a155106/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/b2/d59a4271c80a31e10000000a1550b0/content.htm
It is clearly mentioned in this document that ,
<i>To index the PCD repository, always choose the Portal Roles Search service. Do not choose the services TREX Search or TREX Search and Classification, because these services index the entire PCD. Thus, the search results would also contain iViews and portal pages that are not part of the role of the logged-on user. This ensures error-free navigation.</i>
Regards,
Kishor Gopinathan -
Assigning iViews to the Page through Program
Hi,
I have a page, which is already contains few iViews and set the layout. These all iViews are visible.
Now I have assigned one more iView and aligned but it is invisible.
Now I would like to change the property of this iView to make it visible and at the same time i have to make invisible for another iView.
This I need to implement through program. Please let me know how to achive this .
ThanksThanks for your reply.
This page will be visible for all users and all users having this role.
The present requirement is that the content manager should able to decide which iView has to be displayed for the user.
I hope it is clear
Thanks -
Webdynpro for ABAP, Enhancement and change of standard "visible" property
Hi
Is it possible to change the standard Webdynpro element (in cProjects application), so that the original control "Input" from visible property "Visible" is changed to mine Context variable? How to change that default "Visible" flag in standard element?
thank youHi Phani,
Thanks for the info.
I am able to see if it is not interactive.
Displaytype is native only.
Let me explain you the issue in detail:
Currently Client is calling ZFORM thro Java. They have some issues with JAVA so they want to use Webdynpro to call that ZFORM and the form is ABAP Dic based.
For Templete source I gave ZFORM name, and it automatically created a 'NODE' wrt the context in the ZFORM.
Now I have to pass data from difft node attributes to that 'NODE'.
Thanks in advance,
GG -
How to change the ESS objects, iViews and Pages, translation in the portal?
Hello everyone,
I'd like to change the standard SAP translation for iView and Pages in the Portal level. Does anybody knows how to do this?
My landscape is NW2004s and ESS for ECC 6.0
Regards
Lucianoyou can change the standard SAP iViews and Pages using the Portal Content Translation feature of the Portal ( go to Content Administration->Portal Content Translation. Follow the instructions at
http://help.sap.com/saphelp_nw04/helpdata/en/25/08174082fe1961e10000000a155106/frameset.htm
all ESS iviews and pages have their content "ready for translation" and you can use the instructions above to translate that content.
Tiberiu
please award points if response was useful. -
How to make an iview in a page programmatorically (in)visible
Hi All,
Does somone know how the code to set an iview in a page visibe/invisible.
(like you can do it manually)
I do not want to remove the iview and then add the iview again,
Thanks to help me out on this one,
NicolasHi,
Thanks for your answer, but I already found this on SDN.
But I think it does not fit my needs. (hiding or unhiding it is not depending on roles or language or any other parameter)
This is the scenario I want to do.
I have made webdynpro banner with a message.
At certain moments in time this banner should appear iin the portal.
Because the team that decides if the banner should be visible or not, has no portal knowledge. So I want it to make easy for them
I want to program another webdynpro, where they can decide to show the banner or not. (and tthey can also give the banner text in).
So I just want to know how to hide programmatorically an iview in page. -
Changing the Position of iview in Detailed Navigation
Hi,
I want to change the position of the iview in detailled navigation, Ex i have 4 iviews in detailed navigation as
1
2
3
4
now i want to bring 4 up, in the sense between 2 & 3.
One option is by setting the Sort Priority and i'am trying with other option on role level. I'am editing the role which has this 4 iviews assigned, right click on iview 4 and using option Move-->Up. Does this method work, please let me know.
Regards,
PradeepHi Pradeep,
You can try below options -
1) Go to content Administration. Locate your Default Framework Page assigned to your Desktop .Double click it, a new window opens on right side. Out of various iviews, Check Desktop Innerpage and select Open tab. It will display 6 iviews. From the Page Content List of the Desktop Innerpage, select the Detailed Navigation iView (com.sap.portal.detailedNavigationTree) and click Properties. In the displayed Property Editor, check, set, and change the properties of the Detailed Navigation iView, as necessary.
2) You'll get a bak file for detailed navigation area.The par file is com.sap.portal.navigation.detailedtree.par.bak. You can get this par file from server System Admin>>Support>>Portal Runtime>>Browse deployment>>WEB-INF>>Deployment>>pcd. Import this par file into ur NWDS and edit it accordingly.
Regards,
Sen -
Change visibility of table in interactive form through scripting
Hi all,
I am designing an interactive form in wd java. I used a table to display records in the interactive form.I want to make the table invisible if there is no data in the node. The table is wrapped in a subform . What scripting I need to do to make the table invisible if there is no data in the table node.
Thanks,
Satish KumarDear Sathish,
I dont think there is direct way to control the visibility property in the Interactive form. Instead, you can create a table inside a subform and change the Subform Content Property to "Flowed".
You will be having a node assigned to the table. Instantiate the node twice, say first time for the heading row and the second time for the table content. and do this under the ciondition if the table is not enpty. This way you can control the visibility of the table and it is so simple.
if(<tablevalues> == null)
<Dont create any nodes>
else
//For Table Heading
IPrivate<>.ITestNode tn = wdcontext.nodeTest();
IPrivate<>.ITestElement tne = wdcontext.createTestElement());
tn.add(tne);
//For Table content
IPrivate<>.ITestNode tn1 = wdcontext.nodeTest();
IPrivate<>.ITestElement tne1 = wdcontext.createTestElement());
tn1.add(tne1);
Thanks,
Vivek. -
"Merge"/combine different iViews on a page
Hello,
I wish to realise the following requirement:
Imagine 2 users A and B.
We have 3 iViews i1, i2 and i3.
i1 is assigned to role1, i2 is assigned to role2, i3 is assigned to role3.
User A has role1 and role3, user B has role2 and role3.
If user A is logged in, he should see one page with iView i1 and i3.
If user B is logged in, he should see one page with iView i2 and i3.
So I have to combine different iViews on a page depending on the roles.
Is this possible?
Kind regards.Hi,
Try This
1.Apply Role merging Concept with R1andR3 and Assign to User 1
now user 1 can see iview1 andiview3
2.same as above Assign R2andR3 roles to User2 with merging role concept
Merging role Concept:
Suppose For User one
Role1 - Iview1,
Role3- Iview3
set the MergeID property of the 2 Roles with Common Id(like id should be "p" for both roles)
set the Merge priority Ex for role1 is 5 and for role3 is 2
then the role with less priority will be displayed to the particular user and both the iviews will be displayed
Hope this will hep you
Thanks
parameshwari
Edited by: parameshwari on Feb 15, 2012 11:26 AM -
Problem in EP while changing the layout of the default portal page
i am working with EP7.in this i encountered a problem when i tried to change the layout of the default framework page.
i created a new layout in NWDS and uploaded it to portal.then i copied the default framework page to separate folder (my personal) and assigned the newly created layout and set that page as my default framework page.
but whenever i log into the portal or refreshes the page the top level navigation iview merges (overlaps) with the masthead iview and comes back to the assigned position after some time.i tried many ways to solve this problem but i couldnt.
if anybody have any idea about it please share.....
regards,
karthickHi tamilventhan K
Please have a look at SAP Note No. 687485.
Hopefully this should solve your problem.
Cheers.
Award points for helpful answers:-) -
A gap between iViews in a page
Hello all,
Usually the topLevelNavigation is in the framWorkPage as an iView.
We created a new page (wide:narrow)
in the wide column inserted the topLevelNavigation iView, in the narrow column: our company logo.
The problem: there is a gap around both iViews in the page.
<b>How can we get rid of this gap?</b>
Here is a picture of the new page:
<a href="http://www.badongo.com/pic/290211">a picture</a>
By the way:
in the iViews and the page: the property 'Add padding inside tray' is checked as NO.
In the theme --> Portal body --> we changed all the paddings and margins to 0 px. we think it didn't help cause this page is not a part of the portal inner page and therefore not part of the body (?)
Thanks for any help, Adi.Hi Adi,
the reason you see the gap is the PageLayout you use. The standard PageLayout "wide:narrow" defines a gap between the two columsn. I think 2px.
To solve the problem download the par file, which contains the standard "wide:narrow" layout and make a copy. Use your own namespace for the copy of the par file.
Edit the layout and upload the edited copy.
In PCD you have to create the new layout in the portal layout folder (cannot remember the path). In the portal layout folder you will find all the standard layouts. Once you have created the new layout in the layout folder open the page object (in PCD), that contains the TopLevelNavigation iView and choose the new layout as the default layout.
Hope I could help,
Martin -
Placing iViews into Web Page Composer Web Page
Has anyone got this work?
I have unhidden the PCD so that it is visible in the KM directory.
I have created the entry point for iviews.
When trying to add iviews to a page, I could not navigate to the "pcd" folder in KM, so I went to KM and copied my iviews to the folder I created for the entry point (as the SP12 document suggests "/wpccontent/iviews").
I can then select them to add to a page, but in preview or runtime, the iviews do not appear on the web page.
I realize that the WPC is just a ramp-up/beta, but has anyone else made this work?
RegardsSuccess!
I think the solution (somehow) is configuring the initial permissions in the Security Zones.
The only problem is that the documentation is incorrect. The correction is in an SAP Note.
Below is the configuration (correction is bolded!):
Documentation says:
Defining Permissions for Security Zones
1. Navigate to Security Zones → com.sap.nw.wpc → wpc (not pagebuilder!). (The documenation says com.sap.nw.pagebuilder. This is incorrect!)
2. Define permissions for Web site owners and, if necessary, for authors.
a. From the context menu of the medium_safety folder, choose Open Permissions.
b. Give the wpc_editor_role role - or a user group - the permission End User.
You can leave the default entry for the Administrator column as None.
c. Choose Reset Child Permissions.
d. Choose Save.
3. Define permissions for users.
a. From the context menu of the no_safety folder, choose Open Permissions.
b. Give the everyone group - or another user group - the permission End User.
You can leave the default entry for the Administrator column as None.
c. Choose Reset Child Permissions.
d. Choose Save.
I made this change, and now I can see iviews in the page. I won't swear this is the solution, but that is the only change I have made lately. -
How can i display my iviews in anonymous page
hi experts,
I have created some iviews and I have created a role for all these i views and assigned this role to anonymous user group.
when i access the anonymous page,i get the info"contents not exsits or not enabled",well how can i display my iviews in anonymous page
best regards,
zlfThis page may help
http://help.sap.com/saphelp_nw04s/helpdata/en/1e/e19f58136e654d9709befa464314f2/content.htm
Maybe you are looking for
-
hi experts, in script, in text editor, when we are writing some text, n if space is not sufficient, we take continuous text or extended line, so that that will be displayed continuosly in output. in case when we r writing a command we take /: , here
-
Visual C++, CMap object save to blob column
I have a MFC CMap object, each object stores 160K~ entries of long data. I need to store it on Oracle SQL. we decided to save it as a blob. since we do not want to make additional table. we also thought about saving it as local file and point the SQL
-
Connecting an iBook to Verizon EVDO
My brother has just bought an iBook G4 at CompUSA. He is interested in getting Verizon EVDO Internet. Given that he has 10.4 Tiger, and bluetooth installed, what would he need to get/do in order to make this work. It is my understanding that Verizon
-
Picture size is too small on iWeb
When I visit my web site and click on the "Play Slideshow' button, all I get are small (say 3R size in the world of printed photos) images. How can I get my photos to display a "full screen" mode? It seems viewers of our iWeb pages have to strain the
-
How to trigger a BPM from an outside WSDL
Hello, I've always used the option "Service Interface" in the Start Step of the process before updgrading to SP05 (CE7.2). Now I see that I don't have that option, now I have a trigger option and the wsdl I've manually created isn't an option of the