Script
To use the component link plugin, add the following script to your scope.
To do this, follow the steps below:
- Go to the admin console,
- Open the
Display > Scriptssection, - Click on the
+button to start creation, - Enter a name for the script,
Add the following content in the text editor:
var suggestOfferLabels = [ { name: "suggestOfferTitle", FR: "Consultez l'offre", EN: "Consult offer" }, { name: "suggestOfferDescription", FR: "Accéder aux détails de l'offre d'emploi publiée.", EN: "Access to published job offer's details." } ] var labelsAPI = JSAPI.get().getLabelsAPI(); labelsAPI.setLabels(suggestOfferLabels); var plugin = new LinkFreeListPlugin({ toPopulate: 'RH_OfferLink', category: 'TASK', classId: 'JobOffer', tagsToDisplay: ['RH_Service', 'RH_Job'], title: labelsAPI.getLabel("suggestOfferTitle"), description: labelsAPI.getLabel("suggestOfferDescription") }); plugin.bind();
Results
To begin with, create a job offer with a department and a position for our applicant to apply for.
Then create an application: In the indexing form, the
HR_OfferLinktag contains the job offer created previously, and the values entered for itsHR_ServiceandHR_Jobtags are displayed. You can select the offer and confirm the creation of the application.
Open the application you have created, and you will see that an icon has appeared next to the HR_OfferLink tag. Clicking on this icon opens a popup displaying the tags of the referenced (or linked) job offer.
The Open button takes you to the job offer consultation screen, where you can view both the tags and attachments for this job.