-
Recently active
Hello, I have a table that contains the document id and some document metadata. I want to display a grid with these data and a link to the document but all documents are not accessible by the logged in user. I want to display only row that refer to a document accessible by the user. I try something like this: if (isnull(todocument(fv!row.docid)), /* do not display */, /display the row */ ) I also test if (todocument(fv!row.docid)="[NO PERMISSION]" but it doesn't work. How can I tests if the user have access to a specific document ? Thanks for your help
Short of creating a constant that contains all valid icons and richTextIcons (which is suboptimal given that icons are updated between Appian versions), is there a way to make icons "invalid icon"-safe? i.e. Checking if an icon is in the list of supported icons on a given appian version before passing it into icon or richTextIcon? Context We have a (larger, complex) application that dynamically determines which icon to use in a richTextDisplayField. One can be thorough and investigate the root cause of why invalid values are being populated but I would like to be thorough and double-check. Thanks!
Hi, Could you tell me how a filtered RecordType grid (placed inside an interface) can be refreshed please ? My RecordType data are retrieved from the a!recordData() function, and is filtered on the field "deleted" (all rows are visible if delete = "false"). I have a button that calls an Expression Rule to update the underlying table to set the "deleted" field of the selected row to "true". (I use the WriteToDataStoreEntity Smartservice). After the table is updated in database, I have click to click on the "refresh" icon of the RecordType to see that all is working fine : the lines are hidded. How would you refresh the RecordType, without a manual user action please ? (I intentionnaly do not use any process model for this example)
load( local!carriers: rule!CAS_getPayeesAndCarriers( getOnlyCarriers: true ), a!gridField_19r1( totalCount: ri!processData.totalCount, columns: { a!gridTextColumn( label: "Last Updated", field: "c12", data: a!forEach( items: index(ri!processData.data, "c12", {}), expression: todate(fv!item) ) ), a!gridTextColumn( label: "Assignee", field: "c13", data: a!forEach( items: index(ri!processData.data, "c13", {}), expression: if( isusernametaken(tostring(index(fv!item, 2, null))), rule!CAS_formatUserName(userName: index(fv!item, 2, null)), null ) ) ), a!gridTextColumn( label: "Carrier Policy ID", field: "c6", data: index(ri!processData.data, "c6", {}), links: a!forEach( items: index(ri!processData.data, "c5", {}), expression: a!processTaskLink( task: fv!item ) ) )
Hi, I've created a simple RecordType based on a MySQL table, and when editing the grid list (tab List), I have added a new column that does not exist is the underlying table (ex : "total" that is the sum of fields "nb1" and "nb2"). When using this colum in a Grid of an interface, why does the "Recordtype!Vehicles.Fields.total" is not available ? Does the Fields object contain only the fields that exist in the underlying table ?
Hi Team, I have a grid Layout which is having couple of fields. But one search field "Classification" is not working as expected. Please find my below code. Code: a!gridLayout( label: "Legal Entity Overview", totalCount: local!entitySize, headercells: { a!gridLayoutHeaderCell( label: "Name" ), a!gridLayoutHeaderCell( label: "Tax Identifier" ), a!gridLayoutHeaderCell( label: "LOB" ), a!gridLayoutHeaderCell( label: "Classification" ), a!gridLayoutHeaderCell( label: "Region" ), a!gridLayoutHeaderCell( label: "Country" ), a!gridLayoutHeaderCell( label: "Reporting Type" ), a!gridLayoutHeaderCell( label: "Client Institution ID" ), a!gridLayoutHeaderCell( label: "Milestone" ), a!gridLayoutHeaderCell( label: "Deadline" ), a!gridLayoutHeaderCell( label: "Completion Date" ), a!gridLayoutHeaderCell( label: "Reportable Status" ) }, columnconfigs: { a!gridLayo
Hi, I would like to remove an item from a list, depending on a field (here, the condition is : when the "checked" field is false, I need to remove the item) : /* Set to null the unchecked Vehicles items */ a!forEach( items: ri!vehicles, expression: if (rule!SHARED_IsFalse(fv!item.checked), a!save(fv!item, null), a!save(fv!item, fv!item) ) ), /* Remove the null items */ a!save(ri!vehicles, reject(fn!isnull, ri!vehicles)), 1/ How would you code it in a single instruction please ? (with a foreach and a remove ?)2/ From a SaveInto of an interface the code above works fine, but now I'm trying to execute it from an Expression Rule. So, how would you code this instruction "a!save(fv!item, null)", as a!save cannot be used in ER ? I've tried to use the function updateDictionary(), but I do not see how to set an item to null (I can just set some fields to a null value). I'm sure the answer of the first question can make the
We are using out of the box task notification emails and one of the influential users doesn't like the GMT origin time zone on the notification email. I've looked in regional settings per user, looked at the emailheader.html and emailfooter.html system objects, and in admin console, but cannot find a way to localize time per user on these notifications. I'm concerned the only alternative is to eat the system task message and pass along a custom email to the group. Is this true, or is there something I have overlooked? Thanks for any insight!
I have a customer requirement to allow the users of the application to individually control which columns of information they see on the screen for a given interface. The application will have a default column sequence and that's what every user gets initially. Then each user will have the ability to: Reorder the columns Hide columns from the display Add columns back into the grid that were previously hidden Reset the grid back to the default columns in sequence Anyone have some example code to try and deal with this situation? I'm open to any approaches.
I have a read-only grid in interface A, and one of the columns populates more than one value. The functionality also includes an expander and each value is linked to its respective record. Below is the code for that particular column. I would like to replicate this functionality in an existing interface B. My concern is that the interface B I am working in has a Paging Grid / Text Column and Interface A has a read-only grid/grid column. Interface A column code: a!gridColumn( label: "Transit Agency", sortField: "transit_agency_name", value: a!localVariables( local!rowTransitAgencies: index( local!vanpoolTransitAgencies, wherecontains( fv!row.vanpool_id, index( local!vanpoolTransitAgencies, "vanpool_id", {} ) ), {} ), local!rowTrasitAgencyCount: count(local!rowTransitAgencies), local!showPartial: if(local!rowTrasitAgencyCount > 1, true, false), if( local!showPartial, a!richTextDisplayField( value: { a!richTextItem( text: left(fv!row.transit_agency_n
I have a Payment screen where lot of calculations are done on the basis of some input and logic. The payment amount can not have more than 2 decimal precision. It is getting handled on UI .But while doing calculation some times values are giving exponential value or some invalid value which should not be the output. How to handle that, Should round function should be used or not. ?
Hello All, I have 2 table, All fields from Table2 automatically populated from Table1 but if any changes made in Table2 fields the data should Display in Table2. Can Anyone help me with? Thanks in Advance
Team, I have a date component in editable grid and on that i an using validation to check if same data exist in DB for a country when user changes the existing date in grid. After changing i am seeing that all date component in the entire grid is getting validation message rather the one updated . Any idea why ?
a!localVariables( local!Leave: 'type!{urn:com:appian:types}HN_AS_LeaveDetails'(), { a!gridLayout( label: "Leave Details", labelPosition: "ABOVE", instructions:"Please add the records", headerCells: { a!gridLayoutHeaderCell(label: "Employee Number"), a!gridLayoutHeaderCell( label: "Leave Type" ), a!gridLayoutHeaderCell( label: "From Date" ), a!gridLayoutHeaderCell( label: "To Date" ), a!gridLayoutHeaderCell( label: "No Of Hours" ), a!gridLayoutHeaderCell( label: "" ) }, columnConfigs: { a!gridLayoutColumnConfig( width: "NARROW" ), a!gridLayoutColumnConfig( width: "DISTRIBUTE" ), a!gridLayoutColumnConfig( width: "DISTRIBUTE" ), a!gridLayoutColumnConfig( width: "DISTRIBUTE" ), a!gridLayoutColumnConfig( width: "NARROW" ), a!gridLayoutColumnConfig( width: "ICON" ) }, rows: { a!forEach( items: ri!AS_LeaveDetails, expression:a!gridRowLay
Hi All, i have written an interface code , which calls an query entity multiple time , because of which sometimes am facing Query timeout issue, Please help me in Optimizing the code with( a!localVariables( local!dcSelectedrole : ri!dcSelectedRole, /*super admin variables starts*/ local!superadminPOCdata: if (rule!APN_isBlank(ri!programId), {}, rule!CMP_getChartDataprogramLevel( roleType: "SuperAdmin", programId: ri!programId, type: "POC", typeValue: "1" ).data ), local!superadminNonPOCdata: if (rule!APN_isBlank(ri!programId), {}, rule!CMP_getChartDataprogramLevel( roleType: "SuperAdmin", programId: ri!programId, type: "POC", typeValue: "2", pagingInfo: ri!paginginfo ).data), local!superadminGenderFdata: if (rule!APN_isBlank(ri!programId), {}, rule!CMP_getChartDataprogramLevel( roleType: "SuperAdmin", programId: ri!programId, type: "GENDER", typeValue: "1", pagingInfo: ri!pag
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.