Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with Tabs loading using Case Overview Example #21

Closed
ritzying opened this issue Apr 17, 2015 · 3 comments
Closed

Problems with Tabs loading using Case Overview Example #21

ritzying opened this issue Apr 17, 2015 · 3 comments

Comments

@ritzying
Copy link

Hi there,

I am just learning some of these technologies, but just wondering if you can help me figure out 2 things.
#1 -- why the tabs aren't switching using your wonderful case overview example.

Here is my code:

<apex:page standardController="Deal__c" sidebar="false" docType="html-5.0" showHeader="false" >
<apex:stylesheet value="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/0.16.1/css/semantic.css"/>
<apex:stylesheet value="/sCSS/25.0/sprites/1342034628000/Theme3/default/gc/versioning.css" />
<apex:stylesheet value="/sCSS/25.0/sprites/1342034628000/Theme3/default/gc/extended.css" />

<style> #container { margin: 45px; font-weight: 100; } </style>

<apex:include pageName="DealDetailView"/>

<apex:tab label="History" name="ActivityHistory"
id="tabActHist" >
<apex:relatedList subject="{!Deal__c}"
list="ActivityHistories" pageSize="15" />
</apex:tab>
<apex:tab label="Attachments" name="CombinedAttachments"
id="tabCombinedAtt" >
<apex:relatedList subject="{!Deal__c}"
list="CombinedAttachments" pageSize="15" />
</apex:tab>
<apex:tab label="Email Delivery" name="EmailDelivery" id="tabEmailDel" >
</apex:tab>
<apex:tab label="Feed" name="feed" id="tabfeed" >


<chatter:feed entityId="{!Deal__c.id}" feedItemType="TextPost" showpublisher="True"></chatter:feed>

</apex:tab>
</apex:tabPanel>

/apex:page #2

I am using the dashboard and it works great, except the number of items return in my query is limited to 3 even though I have set a limit in the controller to 10. I also ran the query in workbench and it returned more than 3 records... but I can't get it to show more.

Thanks!

@Avinava
Copy link
Owner

Avinava commented Apr 19, 2015

Well can you try to attach the code again ?
Issue with records not been shown on the page seems to be related to query that you are doing. Visualstrap is a set of css and JS that doesnt modify actual data, but just lets you present them using bootstrap styles

@Avinava
Copy link
Owner

Avinava commented Apr 19, 2015

Sorry for the late reply. Looks like this is issue with Jquery that visualstrap uses. You can try something like this

<apex:page >
    <c:importvisualstrap />
    <script>
        $j = jQuery.noConflict();
    </script>
    <c:visualstrapblock >
        <apex:form >
            <apex:tabPanel >
                <apex:tab label="TEST TAB 1">
                    Tab content 1
                </apex:tab>
                <apex:tab label="TEST TAB 2">
                    Tab content 2
                </apex:tab>
            </apex:tabPanel>
        </apex:form>
    </c:visualstrapblock>
</apex:page>

@ritzying
Copy link
Author

Hi there...

Ok... so here's the code for the query that is only returning 3 records total in each of the blocks on the dashboard.

public without sharing class VSDashBoard_Con2 {
public String deadline { get; set; }

public List<Tasks__c> getTasks(){
return [SELECT Id,Reminder_Task__c,Due_Date__c, Contract__c FROM Tasks__c WHERE Due_Date__c >= TODAY AND Status__c != 'Completed' limit 10];
}
public List<Deadlines__c> getDeadlines(){
return [SELECT Contract__c,Due_Date_Selection__c,Due_Date__c,Status__c,Type__c FROM Deadlines__c WHERE Status__c = 'Binding' AND Due_Date__c >= TODAY ORDER BY Due_Date__c ASC NULLS LAST LIMIT 10];
}
public List<Contract__c> getContracts(){
return [SELECT Address__c,ContractDate__c, Name,Id FROM Contract__c WHERE Status__c = 'Binding' ORDER BY ContractDate__c ASC limit 10];
}
public List<Client__c> getBuyers(){
return [SELECT Address__c,Binding_Date__c,Contract_Date__c,Id,Name__c,Status__c FROM Client__c WHERE Status__c = 'Binding' ORDER BY Name__c ASC NULLS FIRST limit 5 ];
}
public List<Client__c> getSellers(){
return [SELECT Address__c,Binding_Date__c,Contract_DateFormula__c,Id,Status__c FROM Client__c WHERE Status__c = 'Binding' ORDER BY Contract_Date__c ASC NULLS FIRST limit 5 ];
}
}

I have adjusted the limits up and down and ran the query in Workbench and get more results. Can you tell what I'm doing wrong?

@Avinava Avinava closed this as completed May 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants