• mits430x
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 11
    Replies

お世話になっております。

 

Visualforce上で画面の切り替えを行いたいと思っており、outputPanelのrendered属性を

使おうと思っています。

 

【Visualforce】

 

<apex:commandButton reRender="page1,page2" value="検索"/>
    <br/><br/>
    
    <apex:outputPanel id="page1" rendered="{!IF(bool != 0,true,false)}">
    <apex:pageBlock title="1">
       ~省略~
    </apex:pageBlock>
    </apex:outputPanel>
    
    <apex:outputPanel id="page2" rendered="{!IF(bool == 0,true,false)}">
    <apex:pageBlock title="2">
       ~省略~
    </apex:pageBlock>
    </apex:outputPanel>
【コントローラ】
public Integer getBool(){
        Integer num = [select count() from Contract where Name like :'%' + 検索したい文字列+ '%'];
                
        if ( num == 0 ){
            return 0;
        }else{
            return 1;
        }
    }
コントローラの戻り値が0であれば、page2を表示したいと思っており、
1であれば、page1を表示させたいです。
ところが、ボタンを押してもpage2だけしか表示されません。
どのように修正すればいいのかご教授頂けると幸いです。
宜しくお願いいたします。

 

Hi all,

Can we estimate how much heap memory Apex may use?
We want to avoid exceeding governor limits as much as possible.
Therefore, we're wondering how to calculate required heap memory before we execute them...

 

 

Does anyone have any idea?

Does anyone know, how long do I need to wait at most until scheduled Apex job is invoked?

We are evaluating "Scheduled Apex Job" function for using continual batch jobs like cron on public web-site.
In that time, I got info that the scheduled job execution relys on server availability.
I think that is useless and sorry, if it has possibilities that delay an hour...
Please tell me why Sites guest profile isn't displayed on Profiles setting?
I'm not sure what difference is in between guest profiles and usual profiles.
Is there any deep reason?

I have a little wonder about the Apex security settings on Force.com Sites.

I had created VF page and it's controller, and I've published the page with "Sites Visualforce Pages".
I didn't set "Enabled Apex Classes" settings on Force.com Sites guest profile.
Then, I've checked out Sites URL, the published page was displayed successfully.
Therefore, I think there is no involvement between "Enabled Apex Classes" and Apex security restriction.

What happens if I set "Enabled Apex Classes" settings on Force.com Sites guest profile?
Could anyone explain to me?

 

 (Sorry to trouble you, but if you couldn't understand what I said, please ask to me.)

 

 

Regards.

I'd like to ask you ridiculous question about one word...
Does anyone know, what acronym is Apex based on? Or does Apex only mean "Apex"?

お世話になっております。

 

Visualforce上で画面の切り替えを行いたいと思っており、outputPanelのrendered属性を

使おうと思っています。

 

【Visualforce】

 

<apex:commandButton reRender="page1,page2" value="検索"/>
    <br/><br/>
    
    <apex:outputPanel id="page1" rendered="{!IF(bool != 0,true,false)}">
    <apex:pageBlock title="1">
       ~省略~
    </apex:pageBlock>
    </apex:outputPanel>
    
    <apex:outputPanel id="page2" rendered="{!IF(bool == 0,true,false)}">
    <apex:pageBlock title="2">
       ~省略~
    </apex:pageBlock>
    </apex:outputPanel>
【コントローラ】
public Integer getBool(){
        Integer num = [select count() from Contract where Name like :'%' + 検索したい文字列+ '%'];
                
        if ( num == 0 ){
            return 0;
        }else{
            return 1;
        }
    }
コントローラの戻り値が0であれば、page2を表示したいと思っており、
1であれば、page1を表示させたいです。
ところが、ボタンを押してもpage2だけしか表示されません。
どのように修正すればいいのかご教授頂けると幸いです。
宜しくお願いいたします。

 

セールスフォースの標準画面において、

ヘッダーを非表示にすることはできるのでしょうか?

 

 

カスタム画面であればshouheader = 'false'でできますが、

標準画面では手法はあるのでしょうか?

 

 

よろしくお願いいたします。

  • January 17, 2011
  • Like
  • 0

Hi all,

Can we estimate how much heap memory Apex may use?
We want to avoid exceeding governor limits as much as possible.
Therefore, we're wondering how to calculate required heap memory before we execute them...

 

 

Does anyone have any idea?

Does anyone know, how long do I need to wait at most until scheduled Apex job is invoked?

We are evaluating "Scheduled Apex Job" function for using continual batch jobs like cron on public web-site.
In that time, I got info that the scheduled job execution relys on server availability.
I think that is useless and sorry, if it has possibilities that delay an hour...
Please tell me why Sites guest profile isn't displayed on Profiles setting?
I'm not sure what difference is in between guest profiles and usual profiles.
Is there any deep reason?

I have a little wonder about the Apex security settings on Force.com Sites.

I had created VF page and it's controller, and I've published the page with "Sites Visualforce Pages".
I didn't set "Enabled Apex Classes" settings on Force.com Sites guest profile.
Then, I've checked out Sites URL, the published page was displayed successfully.
Therefore, I think there is no involvement between "Enabled Apex Classes" and Apex security restriction.

What happens if I set "Enabled Apex Classes" settings on Force.com Sites guest profile?
Could anyone explain to me?

 

 (Sorry to trouble you, but if you couldn't understand what I said, please ask to me.)

 

 

Regards.

Hi,

I am checking few of the sites example and I see them completely different from the salesforce portal.

The UI is completely different than the salesforce portal UI.

 

I am planning to build a Site and Portal which uses my css and be different from the normal salesforce UI.

I read in this below link that we can customize the UI using the CSS

http://docs.google.com/present/view?id=agqxwgjz4qr3_301gvp3srdk

 

Is there any way I can get the details of customizing the portal UI using CSS? Are there template CSS which I can apply to my Site and modify them accordingly?

 

Thanks in advance.

  • February 26, 2010
  • Like
  • 0
I'd like to ask you ridiculous question about one word...
Does anyone know, what acronym is Apex based on? Or does Apex only mean "Apex"?

I've heard that the single emails created via Apex are no longer counted against the mass email limit, is this true?

 

-Rob

Message Edited by rcraven on 01-19-2010 04:06 PM
Hi. This is the problem I'm having:

- I'm in the Connector.

- I select Sforce Table Query Wizard

- I select "Account":as the table to query

- The custom field I want to select for "Account" shows up twice

- Even if I only select it once in the wizard, the Connector adds it twice to my worksheet

- If I try to run the query with this custom field added twice, I get an error about dupicate fields (exception code 5077)

- If I don't use this custom field but rather any other native or custom fields, the Connector pulls the data without error

Does anyone know what the cause of this duplicate field in the wizard is? As far as I can tell, and I created it, it's a regular custom text field. One possible clue is that this custom field is visible in the wizard next to all of the other custom fields for Account as it should be. But the duplicate of this custom field is right underneath "Account ID" in the field list.

A second clue is that when I mouse over the cell with the column header for this custom field, its name has an underscore "c" appended to it - like so: "Identification_c." However, if I mouse over the other field names in the spreadsheet, it's only the field label (e.g., "Identification).

And this reminds me that I did do one unique thing to this custom field when I set it up that I didn't do to its brothers. I made it a required field in order to save the record.

Anyway, suggestions on how to include it in the query are appreciated because it is a critical field.

Thanks,
Brooks
  • February 15, 2007
  • Like
  • 0