You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/developer/model-driven-apps/clientapi/reference/events/grid-onrecordselect.md
+3-17Lines changed: 3 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -23,24 +23,10 @@ There might be situations where you don't want the table record to open (which i
23
23
24
24
### Step 1: Create a web resource
25
25
26
-
Create a web resource to change the default behavior. In the following example, if you want to open a URL instead of displaying the record, you create a JavaScript web resource to perform that action.
27
-
28
-
1. Sign in to [Power Apps](https://make.powerapps.com) and select **Solutions** from the left pane.
29
-
1. Select **New solution**, and then complete the required columns for the solution.
30
-
31
-
|Column|Description|
32
-
|-----------|-----------------|
33
-
|**Display Name**|The name shown in the list of solutions. You can change this later.|
34
-
|**Name**|The unique name of the solution. This is generated by using the value you enter in the **Display Name** column. You can edit this before you save the solution, but after you save the solution, you can't change it.|
35
-
|**Publisher**|You can select the default publisher or create a new publisher. We recommend that you create a publisher for your organization to use consistently across the environments where you'll use the solution.|
36
-
|**Version**|Enter a number for the version of your solution. This is only important if you export your solution. The version number will be included in the file name when you export the solution.|
37
-
1. Select **Save**.
38
-
1. Open the solution, and then select **New** > **Other** > **Web resource**.
39
-
1. Enter the name of the web resource, and select the **Type** as **JavaScript (JS)**.
40
-
1. Select **Text Editor**, copy the code shown below, paste it into the text editor, and enter the value of the URL you want to open:
26
+
Create, save and publish a JavaScript (JS) web resource that contains the following code:
41
27
42
28
```JavaScript
43
-
functionChangeBehavior(){
29
+
functionChangeBehavior(){
44
30
45
31
// Enter the url
46
32
var url ="Enter the URL";
@@ -49,7 +35,7 @@ Create a web resource to change the default behavior. In the following example,
49
35
}
50
36
```
51
37
52
-
1. Save and publish the web resource.
38
+
More information: [Create or edit model-driven app web resources ](../../../../../maker/model-driven-apps/create-edit-web-resources.md)
0 commit comments