• dafunk
  • NEWBIE
  • 30 Points
  • Member since 2013

  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 4
    Replies
My company has a very extensive app (call it app1) being built in an enterprise org. Another department wants its own app (call it app2)  and also this app2 would need read only access to objects in app1. Would it be possible to build app2 as a managed package (we don't need to share code just data). If app2 somehow has to be merged with app1 then builds and release management becomes quite complex and I would like to avoid that. Any help here would be appreciated. 
  • March 11, 2015
  • Like
  • 1

I am querying a list of attachmens and displaying the list below the file upload section of the page. 

In the list I want a URL to view the file in a new window. (The built in RelatedList does not perform the same).

On the controller I attempt to get the URL with :

@RemoteAction
global static String getFileURL(String id){
try {
                   fileURL = URL.getFileFieldURL( id ,'AttachmentBody');
                   return fileURL;
}catch(Exception ex){
                   fileURL = ex.getMessage();
                   return fileURL;
}

}

The call to URL.getFileFieldURL fails with an Invalid Parameter value for the fieldName - this is exactly as per the documentation code

Any ideas would be helpful

thanks

Joe

 

  • August 12, 2013
  • Like
  • 0

I am trying to access a tab through getElementById the path is $Component.page.TabPanel.tabTwo

This returns a null - here is the test page - any ideas...

thanks Joe

 

 

<apex:page standardController="Account" showHeader="true" id="page">
<!-- Define Tab panel .css styles -->
<style>
.activeTab {background-color: #236FBD; color:white; background-image:none}
.inactiveTab { background-color: lightgrey; color:black; background-image:none}
</style>

<!-- Create Tab panel -->
<apex:tabPanel switchType="client" selectedTab="name2" id="TabPanel"
tabClass="activeTab" inactiveTabClass="inactiveTab">
<apex:tab label="One" name="name1" id="tabOne">
content for tab one</apex:tab>
<apex:tab label="Two" name="name2" id="tabTwo">
content for tab two</apex:tab>
</apex:tabPanel>
<input type="button" onclick="testPath()" value="Show Path"></input>
<script>
function testPath(){
try{
var s = document.getElementById('{!$Component.page.TabPanel.tabTwo}');
alert('Component:' + s.id);
}catch(error){
alert('Error:' + error.message);
}
}
</script>
</apex:page>

 

  • August 06, 2013
  • Like
  • 0

The page I am going to from the controller code works everytime if I remove the controller attribute of the <apex:page

the Controller code is  :

public PageReference step3() {
return Page.adCrawl3;
}

 

adCrawl3 page displays with the controller removed. Any ideas ?

thanks

Joe

 

  • February 07, 2013
  • Like
  • 0
My company has a very extensive app (call it app1) being built in an enterprise org. Another department wants its own app (call it app2)  and also this app2 would need read only access to objects in app1. Would it be possible to build app2 as a managed package (we don't need to share code just data). If app2 somehow has to be merged with app1 then builds and release management becomes quite complex and I would like to avoid that. Any help here would be appreciated. 
  • March 11, 2015
  • Like
  • 1
My company has a very extensive app (call it app1) being built in an enterprise org. Another department wants its own app (call it app2)  and also this app2 would need read only access to objects in app1. Would it be possible to build app2 as a managed package (we don't need to share code just data). If app2 somehow has to be merged with app1 then builds and release management becomes quite complex and I would like to avoid that. Any help here would be appreciated. 
  • March 11, 2015
  • Like
  • 1

I am querying a list of attachmens and displaying the list below the file upload section of the page. 

In the list I want a URL to view the file in a new window. (The built in RelatedList does not perform the same).

On the controller I attempt to get the URL with :

@RemoteAction
global static String getFileURL(String id){
try {
                   fileURL = URL.getFileFieldURL( id ,'AttachmentBody');
                   return fileURL;
}catch(Exception ex){
                   fileURL = ex.getMessage();
                   return fileURL;
}

}

The call to URL.getFileFieldURL fails with an Invalid Parameter value for the fieldName - this is exactly as per the documentation code

Any ideas would be helpful

thanks

Joe

 

  • August 12, 2013
  • Like
  • 0

The page I am going to from the controller code works everytime if I remove the controller attribute of the <apex:page

the Controller code is  :

public PageReference step3() {
return Page.adCrawl3;
}

 

adCrawl3 page displays with the controller removed. Any ideas ?

thanks

Joe

 

  • February 07, 2013
  • Like
  • 0