• kutts18
  • NEWBIE
  • 50 Points
  • Member since 2009

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 10
    Replies

I want to upload file through my flex client to force.com databasethrough my webservice class.

Flex treats files as FileReference object, while force platform treat files as Document object.

 

Can anybody guide me how to bridge this gap between my flex client and my force webservice class?

 

1. How can i implement a sortable grid in VF page?

   (ie a table with sort buttons in the header)

 

 

We are going to start our first project in Force.com platform,

and coming from j2ee/.net background we are facing

some problems with development. So if anybody

could give some suggestions/advice regarding the following

it would really help us.

 

1. Whats the differences between a developer edition license and a platform edition license?

2. For team development which license is better?

 

3. How do you put the classes/pages in a organised way? (i mean like packages in java)

4. How do you actually debug an apex class?

 

5. Is there any coding convention document avialable for VF/Apex?

6. Though i have updated my eclipse force plugin, its still doesnt have code assist.

     How can i get code assist support in the Eclipse IDE?

 

Thanks

I have a vbscript code inside my VF page,

which reads an excel file and displays the content

in a textarea.

 

Its not working at all. ie if you click the Read button

nothing happens.

 

Does VF pages support vbscript code?

 

Here is my code

 

<apex:page showHeader="false">
<apex:messages />

<script type="text/vbscript">

Sub readBtn_OnClick

Dim fileUrl
Dim rowIndex
Dim colIndex
Dim oldContent
Dim newContent
Dim cellContent

fileUrl = document.form.userFile.value
Set objExcel = CreateObject("Excel.Application")
MsgBox "Excel Obj Created"
Set objWorkbook = objExcel.Workbooks.Open(fileUrl)
MsgBox "Excel Workbook Created"

rowIndex = 1
colIndex = 1
Do Until objExcel.Cells(rowIndex ,colIndex).Value = ""
oldContent = document.form.excelContent.value
newContent = oldContent & objExcel.Cells(rowIndex , colIndex).Value & vbCr & vbLf
document.form.excelContent.value = newContent
rowIndex = rowIndex + 1
Loop
objExcel.Workbooks(1).Close
objExcel.Quit
End Sub

</script>

<form name="form">
<input type="file" name="userFile"/>
<input type="button" value="Read" name="readBtn"/>
<p><textarea rows="10" cols="44" name="excelContent"></textarea></p>
</form>

</apex:page>

 

 

I have created a site, and in one of the VF page i have link like this

<a class="title" href="/apex/newBlogEdit?id={!post.Id}" target="_top">
{!post.Name}</a>
This link takes the user to edit page.

But when the link is clicked it shows the message

 

 http://xxxxxx-developer-edition.na6.force.com/xxxxx/ is under construction
 Stay tuned. Please email us if you need to get in touch.

 

 

I have observed that, when page transition is done through

controller using PageReference, the page transits correctly

but if we call the page directly without using controller

method, then native page is getting displayed saying

"under construction". 

 

1. What will the possible cause?

2. Is a page never meant to call another page directly without controller?

 

I have a requirement where through VF page, user will upload an Excel file.

Controller has to read this excel file and display the values in the same page.

 

Now my question would be

 

1. Is it possible to read the excel content in controller class?

2. If it is possible, can you explain me with some sample code?

 

My site home page has a button, onclick of which it should goto my custom login screen.

The problem is when i click the button, instead of going to my custom login page, it goes

to native error page saying.

 

Authorization Required 

ou must first log in or register before accessing this page.
If you have forgotten your password, click Forgot Password to reset it. 

 

Below is the code i am using

 

VF

---

 

<apex:page showHeader="false" controller="SanjuCntrl">

 <apex:form >
                <apex:commandButton action="{!loginPage}" value="Enter" id="theButton" image="{!$Resource.mylogo}"/>
            </apex:form>

</apex:page>

 

 

 

Controller

-----------

 

public class SanjuCntrl{

public PageReference loginPage() {
PageReference pr = Page.SanjuLogin;
pr.setredirect(true);
return pr;
}

}

 

 

 I want to authorise user only in the secon page (ie My custom login screen).

 

Thanks

Sanju

Hello,

 

After login to force.com, using 'SETUP' area you can define the 'ROLES' , 'USERS' ,'WORKFLOW RULES' and 'APPROVAL PROCESS' (found on the left-hand side menu of setup). 

 

The problem is all the screens are native force.com screens, which i cannot use unfortunately. I have to build a custom screen/GUI where i should provide above said workflow related functionalities.

 

So in short my query will be

 

1. Can i build a custom gui ( entirely different from current native screens )for  defining the 'ROLES' , 'USERS' ,'WORKFLOW RULES' and 'APPROVAL PROCESS' for workflow setup? If yes, can you shed more light on the way of doing it!

 

Thanks in advance for all the help provided.

Sanju

 

 

I want to upload file through my flex client to force.com databasethrough my webservice class.

Flex treats files as FileReference object, while force platform treat files as Document object.

 

Can anybody guide me how to bridge this gap between my flex client and my force webservice class?

I have a vbscript code inside my VF page,

which reads an excel file and displays the content

in a textarea.

 

Its not working at all. ie if you click the Read button

nothing happens.

 

Does VF pages support vbscript code?

 

Here is my code

 

<apex:page showHeader="false">
<apex:messages />

<script type="text/vbscript">

Sub readBtn_OnClick

Dim fileUrl
Dim rowIndex
Dim colIndex
Dim oldContent
Dim newContent
Dim cellContent

fileUrl = document.form.userFile.value
Set objExcel = CreateObject("Excel.Application")
MsgBox "Excel Obj Created"
Set objWorkbook = objExcel.Workbooks.Open(fileUrl)
MsgBox "Excel Workbook Created"

rowIndex = 1
colIndex = 1
Do Until objExcel.Cells(rowIndex ,colIndex).Value = ""
oldContent = document.form.excelContent.value
newContent = oldContent & objExcel.Cells(rowIndex , colIndex).Value & vbCr & vbLf
document.form.excelContent.value = newContent
rowIndex = rowIndex + 1
Loop
objExcel.Workbooks(1).Close
objExcel.Quit
End Sub

</script>

<form name="form">
<input type="file" name="userFile"/>
<input type="button" value="Read" name="readBtn"/>
<p><textarea rows="10" cols="44" name="excelContent"></textarea></p>
</form>

</apex:page>

 

 

I have created a site, and in one of the VF page i have link like this

<a class="title" href="/apex/newBlogEdit?id={!post.Id}" target="_top">
{!post.Name}</a>
This link takes the user to edit page.

But when the link is clicked it shows the message

 

 http://xxxxxx-developer-edition.na6.force.com/xxxxx/ is under construction
 Stay tuned. Please email us if you need to get in touch.

 

 

I have observed that, when page transition is done through

controller using PageReference, the page transits correctly

but if we call the page directly without using controller

method, then native page is getting displayed saying

"under construction". 

 

1. What will the possible cause?

2. Is a page never meant to call another page directly without controller?

 

I have a requirement where through VF page, user will upload an Excel file.

Controller has to read this excel file and display the values in the same page.

 

Now my question would be

 

1. Is it possible to read the excel content in controller class?

2. If it is possible, can you explain me with some sample code?

 

My site home page has a button, onclick of which it should goto my custom login screen.

The problem is when i click the button, instead of going to my custom login page, it goes

to native error page saying.

 

Authorization Required 

ou must first log in or register before accessing this page.
If you have forgotten your password, click Forgot Password to reset it. 

 

Below is the code i am using

 

VF

---

 

<apex:page showHeader="false" controller="SanjuCntrl">

 <apex:form >
                <apex:commandButton action="{!loginPage}" value="Enter" id="theButton" image="{!$Resource.mylogo}"/>
            </apex:form>

</apex:page>

 

 

 

Controller

-----------

 

public class SanjuCntrl{

public PageReference loginPage() {
PageReference pr = Page.SanjuLogin;
pr.setredirect(true);
return pr;
}

}

 

 

 I want to authorise user only in the secon page (ie My custom login screen).

 

Thanks

Sanju