How to retrieve request or locale within an entity instance?

For some translation purpose, I need to retrieve the request or the locale in my entities. I tried to do what is written here but it’s not working with entities. /** * AccessoryType constructor. * * @param RequestStack $requestStack */ public function __construct(RequestStack $requestStack) { $this->request=$requestStack->getCurrentRequest(); } I get the following error message (which is…

Details

suitelet with order parameter

i need to create suitelet in sitescript 1.0 suitlet with url parameter: order_no GET: return the order status POST: onfirm the order (change the status from pending to pending fulfillment/billing )? function gettingStartedSuitelet(request, response) { // Define search filters var filters = new Array(); filters[0] = new nlobjSearchFilter(‘mainline’, null, ‘is’, ‘T’); filters[1] = new nlobjSearchFilter(‘tranid’,…

Details

div didn’t open as a link when i prefer to “modal”

i want to develop image gallery. i want to present each image and its description under it and when i click on an image or text or white space got “modal” i write this for an element in gallery <div class=”m-4 img99″> <a href=”#ml”> <img src=”https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png” class=”simg ” alt=”…” data-toggle=”modal” data-target=”#ml”> <div class=””> <h5 class=””>test</h5>…

Details