Nintex Automation K2: Back to basics
Access resources, discussions, and troubleshooting tips to build custom applications and streamline workflows with Skuid NLX, SFX, & EXP.
Recently active
one more question would you know how to close the popup from the javascript snippet? Note: This topic was created from a reply on the loop through rows in a model topic.
i’d like the user to be able to view a popup with additional information on the field. is this possible?
Using something similar to the code below how can I write a javascript snippet to loop through all the data in a Model displayed in a table.Basically I have 3 columns and one of the columns contains checkboxes.The user can check any of the checkboxes for each row.Once they click on the button, it calls the snippet, which should then loop through and get the Id’s of the rows that have been checked.(NB when looping through to check each row, to see what has been checked if the data has not been saved yet, can we still get the Id’s of the checkboxes that have been checked?)var params = arguments[0], $ = skuid.$;var OutstandingItemModel = skuid.model.getModel(‘OutstandingItem’);var allOutstandingItemData = ;allOutstandingItemData = OutstandingItemModel.data;var i = 0;for(i=0;i<allOutstandingItemData.length;i++){var itemRow = itemData[i];}
We have a job detail page built which has a table listing the users associated with the job thru a junction object job_users. In the list of users we want to add a row action which will clock the user in and one for out. To “clock in” the row action sequence need to add a new log entry to the log entry with the following fields:type = timecreated by = logged in user (log entry object)user = the user listed in the row (log entry object)time in = current date/time (log entry object)job = the job you are on the detail page of (log entry object)user status = true (for clock in) (user object)save and update the rowfor clock outfind the last log entry for the current job that had a clock in time and a blank clock out time for that user and jobupdate that log entry setting the time out field to the current time.set user status to falsesave and update the row.Can you help me thru this? How do I get the data from the current row and job to feed these fields?
what i need is a way to say, when the page loads, fire the event for the first tab that would be fired if the user clicked on iti have the code for responding when a tab is clicked on… but when the page first loads it does not run
I having a table wit 2 fields(field1 and field2) with a row action in a table which performs search functionality. In row action i kept redirect url and passed names(which i selected in 2 fields) of both fields into url. In redirect url i specified conditions and added Grouping Logic. If 1 field is entered it is working fine in case when i click on row action. But if i enter both fields and click on row action then i am not getting actual records with same field values in redirected page. I had written 2 conditions in redirected page and grouping logic ((1 or 2)or (2 or 1)). How can i achieve this in row action.
We have a requirement to render a reference field as a picklist on ‘edit’ mode and remove hyperlink on ‘read’/ ‘readonly’ mode. We used following snippet to achieve this. skuid.snippet.registerSnippet(‘removeHyperlink’, function () { var field = arguments[0], value = arguments[1], $ = skuid.$; //If we are in edit mode render the reference field as pick list if(field.mode === ‘edit’) { // temporarily set to REFPICK so we get the stock reference picklist functionality field.options.type = ‘REFPICK’; // render away skuid.ui.fieldRenderers[field.metadata.displaytype][field.mode](field, value); } // If we’re in read mode, then remove hyperlink if (field.mode !== ‘edit’) { skuid.ui.fieldRenderers[field.metadata.displaytype][field.mode](field, value); var linkTag = $(‘a’, field.element); if(linkTag.length){ var output = $(‘’); output.append(linkTag.html()); } linkTag.replaceWith(output); } }); The snippet above worked fine if you edit a record (inline edit) and save it. However, the hyperli
Need to do approval process in skuid. I am able to send email on approval process but if record is send for approval i am unable to lock the record. How can i lock the record if record is send for approval process. How can i build locked screen same as salesforce standard functionality in skuid. Thanks in advance.
I have some remoting calls that tend to take a bit of time to complete. I would like to display the same blocking ui message that is used by actions. How would I do that using javascript?Just for some background I have to do some additional processing after the response that I need to perform which could result in additional remoting calls so I can’t simply just use a button and action to make the call. I need control over when to start showing the message and when to hide it.
Is there a way to trigger a required field check without invoking a model save/cancel?Here’s the use case - Custom button with action sequence that contains a “validate” snippet that performs checks on data on the models to be saved. If validation occurs, a save models is performed. The save models, prior to save, runs through the required field checks and only saves if all required fields contain a value. What I’d like to be able to do is perform the required field check first, then the custom validate snippet and then the save. This ensures that all fields have a value when the custom validate snippet runs. Without this, the validate snippet needs to account for fields that don’t have values but are marked as required.Thank you!
I have a File Component that displays an image from a custom field (Lookup). The image loads fine, but when the user changes the lookup field, the image does not update. I have tried adding the following code as an in-line snippet, but it isn’t working. Any suggestions?skuid.component.getById(‘imgColorRef’).Render();also tried:skuid.component.getById(‘imgColorRef’).conditionallyRender();
I have a popup form for a “contact availability” record. The contact has a custom field “is teacher”. I want to show a “room” field on the popup only if the contact is a teacher. This works find on records that have already been saved. I can set the visiblity condition to only show the room field with the related contact has the “is teacher” field checked.But on a new record, the related contact’s “is teacher” field shows up as unchecked… so the visiblity condition hides the room instead of showing itI assume that the true state of the related contact’s is teacher field is only available after the record has been saved.So as a way around this… is there any way to decide in javascript which of 2 custom popups to open ?
Would it be possible to apply CSS to a single Table Filter, leaving the others with default settings? I couldn’t find anywhere to apply a UniqueID to a single filter. In the attached image, I have a filter on the left which turns all the other conditions off. It would be good to make this one stand out from the rest to draw the User’s attention to it.
I have a page that has lots of references in page titles and templates to “Teacher”. I need another page that is identical, but with all the “Teacher” references changed to “Contact”. I tried setting up a top level javascript variable and then referring to it with {{}} in the title… but it does not render. Is there a way I can do this?
Or do we have to do it manually for 60 users?
I have a calender and a few events. The events show up fine when I don’t have lanes. But if i add lanes they don’t show up. So I think I may be missing some sort of a relationship. Thanks.
Hello, I am following the Map Component tutorial to create my own custom component in Skuid. I can get HTML to render in the Builder just fine, but for some reason this HTML is not rendering on the Skuid page to which I added the custom component. I am also not seeing the Header or the Save/Cancel sections, even though I set the flags to ‘true’ on the editor. I am using the code below for the custom component. Is there something I’ve left out, or have I done something wrong in the self.draw method? Thanks. (function(skuid) { var $ = skuid.$; // Register a new Skuid Component Type skuid.componentType.register(‘spdocumentviewer’, function(domElement, xmlConfig) { // Establish a shorthand for the DOM element we will be building to, // (actually a jQuery object wrapper around that domElement) var self = domElement; // Get the name of the model we want to work with from our component definition, // as well as the Latitude and Longitude fields we want to work with. var modelName = xmlConfig.
I am having problems understanding how to setup the Calendar Component.Simple Use Case: Setup a Weekly view with available appointments. Need the available appointments to display in an available appointment color. The User should be able to schedule an appointment when there is an available time slot. Scheduled time slots should change to scheduled color.I am using the Event object.I am having problems understanding how to setup the model(s).Questions:* Should I create a separate Object for the Available Appointments?* There seems to be many different models I need to setup. For example: Valid Date Range Model, Event Source Model, Week View Group Model… [[ are all of these models suppose to be different objects. Not sure what they all mean.]]I’ve read the Calendar tutorials already, it helped, but I think I need to understand the questions above in order to implement what is needed.Thank you in advance.
A customer object have ‘number of items’ field,and based on the number of items i need to create records in item model by using the action framework…
I’m trying to update some of my pages to use the new page option “Warn users if page has unsaved changes”, but am running into some issues. On my opportunity page, I have a field editor that lets the user create a task for the purpose of logging a call at the same time as updating an opportunity. Our current business rules are that a user is only going to update an opportunity if they have spoken to the customer on the phone.However, when I enable the option “Warn users if page has unsaved changes”, it warns me about unsaved changes when I try to leave the page, even if I haven’t touched anything; that is, if I open an opportunity and then immediately try to leave the page, the warning pops up. As best as I can tell, this is because I have the task model creating a new row on page load. Are there any guidelines/tutorials on how to use the new unsaved changes warning in conjunction with creating new rows (that may or may not be utilized)? I have a few other pages that create new rows in
Do all users in my org need a Skuid license to view pages or just the admins or anyone else in charge of creating Skuid pages? I’ve searched around and checked out your pricing page and minimums but didn’t find an answer to the above. Forgive the simple question.
Looking for something similar to the “remember user’s last tab” tab set property but for the filters and sorting applied to a table. Right now, if I activate table filters then refresh the page, the filters are all reset.
I use page load snippet very often to warn users of pertinent information on the page. In this example we want to warn users when they get to a Utility Account where the “Do Not Enroll” checkbox is checked. It looks something like this:(function(skuid){ var $ = skuid.$; $(function(){ var uaRow = skuid.model.getModel(‘UtilityAccount’).getFirstRow(); var pageTitle = $(‘#MyPageTitle’); var editor = pageTitle.data(‘object’).editor; if(uaRow.Do_Not_Enroll__c){ editor.handleMessages([{message:‘Utility Account is set to “Do Not Enroll”’, severity:‘WARNING’}]); } });})(skuid);It works great however in this exapmle if the user changes the checkbox to false, the page does not reflect that change and the warning stays at the top of the page until the user reloads. I understand that obviously it is a page load snippet and therefore is not dynamic, however… It would be great if there was a way to rerun it after an update to the field that it is based off of. Is there a way to have t
I have a use case where the user wants to be able to schedule appointments using a mobile phone and calendar. Is there a Calendar component I can use in Skuid Mobile?If not, what do you all suggest. I will need to tie it up to the models and be interactive.Thanks
Hi, has anyone been able to create a row action that opens a popup window that allows the user to add a Note to the corresponding row?
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.