magento2 – Magento 2 change Ship button in Order functionality

I’m trying to change the functionality of Ship button when you choose an order.

The only thing that I have found so far is this file under /vendor/magento/module-sales/Block/Adminhtml/Order/View.php:

I see this part where the button has an onclick method:

 $this->addButton(
                'order_ship',
                (
                    'label' => __('Ship'),
                    'onclick' => 'setLocation('' . $this->getShipUrl() . '')',
                    'class' => 'ship'
                )
            );

and then this is the URL

public function getShipUrl()
    {
        return $this->getUrl('adminhtml/order_shipment/start');
    }

I don’t know if that url is a controller, I have not found a route with that id nor that exactly path. Or maybe it’s an api? This is the url that is shown on backend when I inspect

admin/order_shipment/start/order_id/60/key/ec0160f0fda15ac0271c4a0e1e2115471f7535673cc0e69f5c3af11deaba9ddf/'

Hope someone can give me a hint!

thanks

html – (Accessibility) – Back button placement on the page in SPA

I am working with an SPA with Angular and the designs indicates that there is a back button and it is before the Page level heading usually the H1. For SPA, it is a general practice that we place the initial focus on load on the H1 heading, since only the main page contents reload.

From an Accessibility perspective, I feel that placing the Back button before the heading violates 2.4.7 – Focus Order as there is an interactive element that may be missed after initial focus in the page. Do you think it is an Accessibility violation if there is a back button placed before the heading in the DOM order. Thoughts?

Back button placement

gui design – Which button is better when you want to load results from a filter?

I am redesigning an application and, one of our tasks is to redesign the UI and clarify/connect UI with the action intended.
I noticed we are using different buttons for the same target action which is basically:

1 – Get results on a screen by submitting a button (after you choose which filters you want on).

Which option would be more user friendly and why and what are the advantages and main differences in-between these buttons?

Nowadays, on the web age, people got used to the same function applied to software and web applications. Would simply “Search” be the best option?

Search

update

go

reload

apply

Load Results

html – How can I scale down a website without changing every single font-size, image-size, button, etc

So I’m working on a website for training purposes and just expanding my skill in general. I’ve got a fully fleshed out site, looks fantastic, however — a few people have noted that it seems just a little too….big. Not sure how else to put it other than this: It looks like it’s SUPPOSED to look like when the browser is at 80% zoom. But at 100% zoom it looks a little too big. Is there anyway to kind of just scale down the site as a whole?

I’ve tried using transform: scale(x); in the body but that is just absolutely terrible and not what I wanted, and I honestly don’t know a whole lot about HTML/CSS to know what to look for / what to use and how to use it to really tackle this problem.

And when I say that going through the website and manually resizing all the fonts, images, buttons, and literally anything else is NOT possible, I mean that it is seriously not possible with the time given to me to do.

Anyone have any ideas?

sharepoint rest api – how to add value in document library look up column when button is clicked

function UpdateDocsDetails() {
  var def = jQuery.Deferred();
  var itemPayload = "";
  var restSource = _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getByTitle('DMSDocs')/Items(" + lastItem + ")";
  itemPayload = { "__metadata": { "type": "SP.Data.DMSDocsItem" }, "RequestID": _reqID};
  var dfd = jQuery.Deferred();
  jQuery.ajax(
    {
      url: restSource,
      method: "POST",
      contentType: "application/json;odata=verbose",
      data: JSON.stringify(itemPayload),
      headers:
      {
        "Accept": "application/json;odata=verbose",
        "X-RequestDigest": jQuery('#__REQUESTDIGEST').val(),
        "X-HTTP-Method": "MERGE",
        "If-Match": "*"
      },
      success: function (data) {
        // alert("Success");
        dfd.resolve(data);
      },
      error: function (err) {
        dfd.reject(err);
        // alert("Error:");
      }
    });
  return dfd.promise();
}

this function is need to update the lookup column RequestID

function SaveDeferred(action) {
    var dialog = bootbox.dialog({
      title: 'Saving.......',
      message: '<p>Saving... <i class="fa fa-spin fa-spinner"></i></p>',
      closeButton: false
    });
    var c = CheckForAttachment();
    if (c == true) {
      var p = createItem(action);
      p.done(function (res) {
        if (UpdateFlag == 0) {
          _reqID = res.get_id();
        }
        var d = UpdateDocsDetails();
        d.done(function (_reqID) {
          console.log('Item created successfully!');
          if (UpdateFlag == 0) {
            var _nextNo = GetNextNumber();
            _nextNo.done(function (result___nextNo) {
              console.log(result___nextNo);
              var Series = result___nextNo.d.results(0).Series;
              var StartingValue = result___nextNo.d.results(0).StartingValue;
              var LastUsedValue = parseInt(result___nextNo.d.results(0).LastUsedValue);
              if (LastUsedValue == 0) {
                LastUsedValue = LastUsedValue + 1;
              } else {
                LastUsedValue = LastUsedValue + 1;
              }
              var _update_Title = UpdateTitle(_reqID, Series, LastUsedValue);
              _update_Title.done(function (result__updated) {
                console.log(result__updated);
                var _udp_NoSeries = UpdateNextNumber(Series, LastUsedValue);
                _udp_NoSeries.done(function (result___udp_NoSeries) {
                  dialog.modal('hide');
                  var msg = "Your request Submitted successfully!!";
                  bootbox.alert(msg + " Your request No is " + result__updated, function () {
                    window.location.replace("/sites/" + siteName + "/SitePages/DMSApprovedRequests.aspx");
                  });
                });
                _udp_NoSeries.fail(function (result__udp_NoSeries) {
                  console.log(result__udp_NoSeries);
                });
                console.log("Your request sent successfully!! Your request No is " + result__updated);
              });
              _update_Title.fail(function (result__updated) {
                console.log(result__updated);
              });
            });
            _nextNo.fail(function (result___nextNo) {
              console.log(result___nextNo);
            });
          }
          else {
            dialog.modal('hide');
            bootbox.alert("Your request sent successfully!!", function () {
              window.location.replace("/sites/" + siteName + "/SitePages/DMSApprovedRequests.aspx");
            });
          }
        });
      });
      p.fail(function (ex, error) {
        console.log(ex + " " + error);
      });
    }
    else {
      dialog.modal('hide');
      return false;
    }
}

this function when item saved in SharePoint list but my Page is stuck on saving dialog after UpdateDocs Details() called but not going further to next number update in function

recovery mode – Htc u11 didn’t any reaction to press button ony to see the computer the com port and phone flash

Stack Exchange Network


Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

unity – Change Text – Inside A button, inside a Canvas, inside a GameObject: Access all the texts inside of hierchy?

//....
Gameobject tile;
int count = 1;
float posX = 0;
float posY = 0;
....//

GameObject blueTile = (GameObject)Instantiate(Resources.Load("block_blue"));
tile = (GameObject)Instantiate(blueTile, transform);

for loop {
   ...
   ...
   tile.GetComponent().GetComponentInChildren().text = count.ToString();
   tile.transform.position = new Vector2((float)posX, (float)posY);
   count++;
}

enter image description here
enter image description here

As you can see by the image.
My line of thinking goes like this; I used to create Flash/AS3 Applications and Games. I have used a number of API’s and they usually have a lot in common. Unix, however, is very different and I may have not grasped the key concepts.

I want to access my PreFab, named in Assets/Resources (the root path)

“block_blue”

All I wan to do is set up a row and columns of a box with a number inside of it.

Before you go and ask, why the complicated mix of Objects? Well, Adobe had MovieClip and use of layers and also use of a timeline. Unix doesn’t seem to have this in setting up a Scene (the Stage in Flash).

So, I set up a block that looks like this (right of main image 66):
It’s a Canvas, to hold a Button, the button has a text. To move the Canvas, I put the Canvas inside a GameObject. This, to me, is like a MovieClip in Flash API.

**GameObject > ButtonLight, Button > TextBlack, Text**

I need to access TextBlack and also Text. Pretty easy right? I’ve been at this for 4 days, many many hours.

EDIT: It seems that it is working, somewhat.

Looking at the reference photo and the Hierarchy reference, it looks like the blackText behind the blueText is changing as expected. But I cannot access the top BlueText. The Blue Text is also a child of type Text, but it’s a second (layer?) copy of the text inside of the Button. So, it’s getting the first Child Text, but how to access the second Text?