You need to sign in to do that
Don't have an account?
Ravi Prabhu
Visualforce InputText and Date value not passing to controller
Hi,
This looks simple but not able to find the issue.
I have 2 pageblocks in a visualforce page. The 1st page block is for data entry contains date and name columns. The user will input the date and name which will insert in the object. This is working fine.
The 2nd page block is for selecting the date and name (dropdown). Based on the selection of 2 fields display the records in the table.
The problem is when I select the date (from date picker - JS code) and name, the page does not do anything. Also by looking at debug log it shows the SOQL query is returning SQL 100 i.e. no rows for the selected values.
The requirement in 2nd page block
-- display the records
-- once displayed, the user should be able to select the records -- delete the selected records
Please help.
This looks simple but not able to find the issue.
I have 2 pageblocks in a visualforce page. The 1st page block is for data entry contains date and name columns. The user will input the date and name which will insert in the object. This is working fine.
The 2nd page block is for selecting the date and name (dropdown). Based on the selection of 2 fields display the records in the table.
The problem is when I select the date (from date picker - JS code) and name, the page does not do anything. Also by looking at debug log it shows the SOQL query is returning SQL 100 i.e. no rows for the selected values.
The requirement in 2nd page block
-- display the records
-- once displayed, the user should be able to select the records -- delete the selected records
Please help.
//used for data entry for 1st pageblock public Ticket_Effort_Category__c tktRecord{set;get;} //date selected from 2nd pageblock public Date selectedDate {get;set;} //need to send the records to display in visualforce in 2nd pageblock public list<Ticket_Effort_Category__c> fetchList{get;set;} //gives list of users in drop down in 2nd page block public list<Ticket_Effort_Category__c> userList{get;set;} List<SelectOption> selectOptions{get;set;} public void getsummarylist(){ fetchList = [select id, Date__c, ticket_number__c, Division__c, Application__c, Responsible__c, Effort__c from Ticket_Effort_Category__c where Responsible__c = :selecteduserId and Date__c = :selectedDate]; <apex:actionRegion > <!--Summary section --> <apex:pageBlock id="pgblock2" title="Summary" > <apex:pageBlockSection id="pgblocksection2" > <apex:OutputPanel > <apex:panelGrid columns="5"> <apex:outputLabel style="font-style:regular; font-weight:bold; font-size:11px; font-family:Helvetica;" > Date </apex:outputLabel> <apex:inputText id="Date" value="{!SelectedDate}" onfocus="DynamicDatePicker(this);" onchange="checkDateFormatt(this.id);" size="10" disabled="false" style="width:90px; margin-right:10px;" /> <apex:outputLabel style="font-style:regular; font-weight:bold; font-size:11px; font-family:Helvetica;" > Select Assigned Person </apex:outputLabel> <apex:selectList id="selectedlist" value="{!selecteduserId}" size="1" multiselect="false" style="margin-right:10px;" > <apex:selectOptions value="{!ListOfUser}" /> </apex:selectList> <apex:commandButton action = "{!getsummarylist}" value="Go" immediate="true" onclick="validatechk();" rerender="msgsS" /> </apex:panelGrid> </apex:OutputPanel> </apex:pageBlockSection> <!--Summary--> <apex:pageBlockTable value="{!fetchlist}" var="I" id="msgsS" > <apex:column headervalue="Date" > <apex:outputField value="{!I.Date__c}"/> </apex:column> <apex:column headervalue="Ticket Number"> <apex:outputField value="{!I.Ticket_Number__c}"/> </apex:column> <apex:column headervalue="Division" > <apex:outputField value="{!I.Division__c}"/> </apex:column> <apex:column headervalue="Application" > <apex:outputField value="{!I.Application__c}"/> </apex:column> <apex:column headervalue="Responsible" > <apex:outputField value="{!I.Responsible__c}"/> </apex:column> <apex:column headervalue="Effort" > <apex:outputField value="{!I.Effort__c}"/> </apex:column> </apex:pageBlockTable> </apex:pageBlock> </apex:actionRegion>
All Answers