You need to sign in to do that
Don't have an account?
Kalyani Jagdale 1
How can we create input window after clicking on the command button?
How can we create input window after clicking on the command button?
Can anyone help me?
Can anyone help me?
<apex:commandButton value="Show PopUp" action="{!ShowPopup}" reRender="pop" )}" />
Now in apex
public void ShowPopup(){
Popup = true;
}
And the window you want to display
<apex:outputPanel id = "pop" rendered="{!Popup }"/>
Inside this you can write your code
<apex:outputPanel>
Hi Ayush.
Thanks for your reply.
I have tried now, it's working.
I have one more querry..Can you help me.
When i Create an input window,and if Ispecify some amount. then it should split that amount and create a child record on that object.
How we can achieve this.
Thanks in advance.
Thanks & Regards,
Kalyani Jagdale
Please give some more detail. For my thinking, you are trying to insert amount into the child record. Can you make a new post for it with detailed explanation and can close this post if it is solved.
Hi Ayush,
There is one field on parent Object i.e. Field1 and one field on child object i.e. Field2
i need to subtract Field1- Field2 (Subtract field 2 from field1) and populate the subrated result into the Input window field.
How can we achieve this.
Can you please help me.
Sorry, i have not closed this post. as it is related to the above requirement.
Waiting for you reply at the earliest.
Thank you in advance
I have written some code for this but the problem which you might face will be
How will you handle if there are more than 1 child record for parent Object. If you are sure that you will have only one record then you can use Limit 1. I have done it by taking the example of Account and Contact and by HardCoding the Id. Further you cannot use inputField for this. So you have to use input:text.
There will be multiple child record.