JS select2 . trigger solo me toma el ultimo valor de array

tengo una query la cual me trae datos de mi BD , extrae las id y a traves de de jquery le asigno los daos seleccioandos a un select multiple ,

JS

     resultados = data.resultados;           console.log(resultados)                 for (let i = 0; i < data.resultados.length; i++) {                     var res = resultados[i].valor                     console.log(res)                   }                 $  ("#slcApp").select2().val(res).trigger('change'); 

Asi me muestra los datos del resultado traidos de la consola

introducir la descripción de la imagen aquí

el el resultado del valor le asigno una variable RES y eso se lo asigno al val de mi jquery , pero solo me toma el valor 6 , cuando me deberia mostrar 2 valores .

MULTISELECT

introducir la descripción de la imagen aquí

How to ise javascript to trigger SSO with AD in order to sign in and access a page yould normally need creds for to streamline the user experience

Hey Team, Apologies i’m somewhat of a new learner to programming. I have a problem that i’m trying to solve. A user has logged onto a terminal, they want to access a particular page within a cloud based software. To get into the platform of the cloud based software (before accessing the desired page above) they need to click on a link that simultaneously authenticates via AD and opens the platform page (due to the fact the have already signed onto the terminal). Then from the platform page they would navigate to the desired page.

The issue here is that they need to open the platform page first before they can click on a link that accesses the actual page they want to use.

From a user experience in certain instances, i want to bypass the platform homepage and send them straight to the relevant page (inside of this cloud based application) to streamline for efficiency purposes for a better user experience (say if clicking on a link from the work intranet that takes them to the cloud based applications desired page without having to open the platform window).

I hope that makes sense. Really appreciate your help here team.

Which HTTP verb should I use to trigger an action in a REST web service?

I am implementing a RESTful web service and one of the available actions will be reload. It will be used to reload configurations, cache, etc.

We started with a simple GET to an URI like this: $ {path}/cache/reload (no parameters are passed, only the URI is called). I am aware that data should not be modified with a GET request.

Which is the correct verb to use to invoke an action/command in a RESTful web service?

EDIT: The reload is a command of the REST web service that reload its own cache/configuration/etc. It is not a method that returns information to the client.

FINAL EDIT: Probably what I am trying to do isn’t REST, but it is still something that need to be done this way. The reload method was only a real example that makes sense in the scope of the application and most answers focused on it, but in fact, I just needed to know which verb to trigger an action that doesn’t do CRUD, but still changes data/state.

I found this detailed asnwer on Stack Overflow abot the subject: https://stackoverflow.com/questions/16877968/

How to skip Jenkins CI trigger on specific file changes in Gitlab?

I am using Jenkins pipeline project for running my CI. Gitlab is my source control repo. I want to skip Jenkins build trigger when change is pushed on a specific files. Is there a way to do so?

Example:

These are the files in my source code repo

– Jenkinsfile – file1.txt – file2.txt – file3.txt – file4.txt

I do not want build to be triggered when there is a change in file4.txt.
Is there a way I can achieve it?

Why does my Sharepoint workflow not trigger for other users when they submit a form? (SP 2013)

I created a custom form and on my permissions when I click submit, it adds to the list and then the workflow fires and I’m emailed the details. When a user in my custom permissions group does it, it adds to the list but does not trigger the workflow. Permissions they have:

Add Item View Item View Pages Use Remote Interfaces Open

Yongnuo YN720: Can I use master and slave without a trigger attached?

I bought two flash YN720 with the understanding that I didn’t need a trigger to fire both master and slave flashes. Not sure how to set them up? I have two RF 630N triggers but I would rather not use them. Is it possible?

This is the blurb from manufacturer: ‘Built into it is a 2.4 GHz wireless transceiver, allowing it to be fired remotely at distances of up to 328’ or used as a master to directly control the mode and output of compatible flashes. Additionally, it can also be used as an optical slave for multi-flash setups without radio transmission. ‘

Does Wild Magic Surge trigger off of spells on the Sorcerer spell list, if I learned them from another class?

Let’s say I am a Bard, and I have 1 level in Sorcerer, giving me a Sorcerous Origin, and I choose Wild Magic. Does Wild Magic Surge trigger off of any spell I cast that just so happens to be on the Sorcerer spell list?

Example:
If I cast Charm Person, a spell obtainable by Sorcerers and Bards, but I obtained that spell by leveling up as a Bard, does that count as a Sorcerer spell when I cast it? Or are the only spells that count as Sorcerer spells the ones I gain when I take the level of sorcerer or gain levels in the sorcerer class?

How do I trigger a modal from a template that points to a controller returning an AJAX response

I am trying to trigger a modal from a twig. The path of the modal is a controller that returns an AJAX response as below:

Routing code

usgbc_myaccount.get_badges_evidence_controller: path: '/account/get-badges-evidence/{badge_type}' defaults: _controller:  '\Drupal\usgbc_myaccount\Controller\GetBadgesEvidenceController::getEvidence' _title: ''  requirements: _permission: 'access content' _format: 'html' 

Controller code

namespace Drupal\usgbc_myaccount\Controller;    class GetBadgesEvidenceController extends ControllerBase  {    /** * @return AjaxResponse */ public function getEvidence($  badge_type)  {         $  options = [       'width' => '50%',     ];      $  response = new AjaxResponse();     $  response->addCommand(new OpenModalDialogCommand(t('Modal title'),   $  badge_type , $  options));      return $  response; } } 

Call to router from twig template

<a class="use-ajax popup-dialog-class" data-type="modal" href="{{  path('usgbc_myaccount.get_badges_evidence_controller', {'badge_type':  result.badge_type}) }}" data-dialog-type="modal">{{ 'Read more'|t }}</a> 

When I click on the link I get the response in JSON in text area on another page. What is missing? It the approach correct? Any help will be appreciated.

Thanks