• Swathi Jain
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 6
    Replies

i am newto code, 

I have this code 

<apex:page standardController="Custom_Object__c" extensions="attachmentsample">

.

.Somecode here

.

.

<apex:pageblockSection title="Attach Documents" collapsible="false">

<apex:inputfile value="{!myfile.body}" filename="{!myfile.Name}" />
<apex:commandbutton value="Attachfiles" action="{!Savedoc}"/>
</apex:pageblockSection>

 

</apex:page>

 

public class attachmentsample {

public attachmentsample(ApexPages.StandardController controller) {

}
Public Attachment myfile;
Public Attachment getmyfile()
{
myfile = new Attachment();

return myfile;
}

Public Pagereference Savedoc()
{
String ldid = System.currentPagereference().getParameters().get('id');
Attachment a = new Attachment(parentId = ldid, name=myfile.name, body = myfile.body );
insert a;
return NULL;
}

}

The above code is working for Editing the custom object page not for New page, please help me for this.

I want to use when creating the custom object and editing the custom object. 

I have a vf page with the pannel bar 

<apex:page>

<apex:panelbar>

<apex:panelbaritem> item1 </apex:panelbaritem>

<apex:panelbaritem> item2 </apex:panelbaritem>

<apex:panelbaritem> item3 </apex:panelbaritem>

</apex:panelbar>

</apex:page>

When i reload the page 1 is open and 2 and 3 close 

but i need  all panel bar items are to be close .

I want to change the background color 

all these panel baritems are in green , i want to change these colors. 

How to hide Home tab ?

How to chnage color of the standard tabs ?

How to side for particular objects (ideas) ?

How to create libraries under Libreies ?

Please answer me if posible 

Hi,

This is swathi,

i want to put some links in vf page with respect to different pageblocksections 

If user put the mouse on pageblock section , i want to show the links in side of the side bar and , if user clicks the links it need to be open in iframe ,

I am new to force , please help me asap

 

I have page like this 

<apex:page>

<apex:pageblock>

<apex:pageblocksection title="PG1">

<apex:commandlink src="www.google.com"/>

<apex:commandlink src="www.facebook.com"/>

</apex:pageblocksection>

</apex:pageblock>

</apex:page>

If i put the mouse on the PG1 section all the links need to visible and if i clicks the links these need to visible in iframe

Can you please reply me asap . Please.\\

 

I am trying by this way but not easily getting 

Pls refer the following code :

 

<apex:page>


<script>
function test()
{
document.getElementById('{!$Component.pb.pbs.pan}').style.display='block';
</script>


<apex:pageBlock id="pb">
<apex:pageBlockSection title="PG1" onmouseover="test();"  id="pbs">


<apex:outputPanel id="pan" style="display:none;">
<a href="www.google.com" target="_blank">Hi</a>
<a href="www.facebook.com" target="_blank">Hii</a>
</apex:outputPanel>


</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>

which is not easily getting in my environment..

please answer me 

I  am  trying for this pusrpose by using link but it is not working for me , can you please help me 

http://boards.developerforce.com/t5/Visualforce-Development/How-do-I-callapse-PageBlockSection-by-default-on-Page-or-by/m-p/96140

 

 

 

My code is 

<apex:page id="thePage" sidebar="false">
<apex:pageBlock >
<apex:pageBlockSection title="PG1" collapsible="true" id="CollapseDefault">
abccccccccccccc

</apex:pageBlockSection>
</apex:pageBlock>

<script language="javascript">
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}

function dotest() {
twistSection(document.getElementById('j_id0:form9:j_id189:CollapseDefault').childNodes[0].childNodes[0]);
}

addLoadEvent(dotest);
</script>


</apex:page>

Can you please suggest methe possiblibity 

Hi,

This is swathi,

i want to put some links in vf page with respect to different pageblocksections 

If user put the mouse on pageblock section , i want to show the links in side of the side bar and , if user clicks the links it need to be open in iframe ,

I am new to force , please help me asap

 

I have page like this 

<apex:page>

<apex:pageblock>

<apex:pageblocksection title="PG1">

<apex:commandlink src="www.google.com"/>

<apex:commandlink src="www.facebook.com"/>

</apex:pageblocksection>

</apex:pageblock>

</apex:page>

If i put the mouse on the PG1 section all the links need to visible and if i clicks the links these need to visible in iframe

Can you please reply me asap . Please.

 


i am newto code, 

I have this code 

<apex:page standardController="Custom_Object__c" extensions="attachmentsample">

.

.Somecode here

.

.

<apex:pageblockSection title="Attach Documents" collapsible="false">

<apex:inputfile value="{!myfile.body}" filename="{!myfile.Name}" />
<apex:commandbutton value="Attachfiles" action="{!Savedoc}"/>
</apex:pageblockSection>

 

</apex:page>

 

public class attachmentsample {

public attachmentsample(ApexPages.StandardController controller) {

}
Public Attachment myfile;
Public Attachment getmyfile()
{
myfile = new Attachment();

return myfile;
}

Public Pagereference Savedoc()
{
String ldid = System.currentPagereference().getParameters().get('id');
Attachment a = new Attachment(parentId = ldid, name=myfile.name, body = myfile.body );
insert a;
return NULL;
}

}

The above code is working for Editing the custom object page not for New page, please help me for this.

I want to use when creating the custom object and editing the custom object. 

How to hide Home tab ?

How to chnage color of the standard tabs ?

How to side for particular objects (ideas) ?

How to create libraries under Libreies ?

Please answer me if posible 

Hi,

This is swathi,

i want to put some links in vf page with respect to different pageblocksections 

If user put the mouse on pageblock section , i want to show the links in side of the side bar and , if user clicks the links it need to be open in iframe ,

I am new to force , please help me asap

 

I have page like this 

<apex:page>

<apex:pageblock>

<apex:pageblocksection title="PG1">

<apex:commandlink src="www.google.com"/>

<apex:commandlink src="www.facebook.com"/>

</apex:pageblocksection>

</apex:pageblock>

</apex:page>

If i put the mouse on the PG1 section all the links need to visible and if i clicks the links these need to visible in iframe

Can you please reply me asap . Please.\\

 

I am trying by this way but not easily getting 

Pls refer the following code :

 

<apex:page>


<script>
function test()
{
document.getElementById('{!$Component.pb.pbs.pan}').style.display='block';
</script>


<apex:pageBlock id="pb">
<apex:pageBlockSection title="PG1" onmouseover="test();"  id="pbs">


<apex:outputPanel id="pan" style="display:none;">
<a href="www.google.com" target="_blank">Hi</a>
<a href="www.facebook.com" target="_blank">Hii</a>
</apex:outputPanel>


</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>

which is not easily getting in my environment..

please answer me 

I  am  trying for this pusrpose by using link but it is not working for me , can you please help me 

http://boards.developerforce.com/t5/Visualforce-Development/How-do-I-callapse-PageBlockSection-by-default-on-Page-or-by/m-p/96140

 

 

 

My code is 

<apex:page id="thePage" sidebar="false">
<apex:pageBlock >
<apex:pageBlockSection title="PG1" collapsible="true" id="CollapseDefault">
abccccccccccccc

</apex:pageBlockSection>
</apex:pageBlock>

<script language="javascript">
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}

function dotest() {
twistSection(document.getElementById('j_id0:form9:j_id189:CollapseDefault').childNodes[0].childNodes[0]);
}

addLoadEvent(dotest);
</script>


</apex:page>

Can you please suggest methe possiblibity 

I have a visual force page assigned to tab 

when user opened the vf page ,all sections need to collapsed. We need to give chance to user expand the sections?