function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Igor StosicIgor Stosic 

Hello,i need help! I want to do something like it is on image. If record is existing i want to use him if it is not i want to make new. Can someone help pls?

User-added image
Jai ChaturvediJai Chaturvedi
Hi,
  1. Create class with Object variable (getter;setter).
  2. Create form in vf page using inputField and put that in outputpanel/pageblock.
  3. Create a page with input text and search button which will search record in the system. If record exists then assign the variable (created in step 1) and reRender the outputpanel/pageblock (created in step 2). This will automatically fill the inputField with the record values.
  4. If record not found then field will be blank and then show New button to create new record.

Hope this will help.


Thanks
Jai
Jai ChaturvediJai Chaturvedi
Hi,

Also you send me the requirement detail to jai.chaturvedi@gmail.com. Will help you to write code.

Thanks
Jai
Prashant WayalPrashant Wayal
Hi Igor,

I can help you to complete this. Please contact me on below details to discuss further:

Email: prashantwayal15@gmail.com
Mobile: +91 9975022535
Skype: prashantwayal
LinkedIn: https://in.linkedin.com/pub/prashant-wayal/64/232/141

Thanks & Regards,
Prashant