SEARCH THE COMMUNITY

Find an existing answer

71 results for “x++”

CommunityHow do I refresh a form datasource after updating a record in X++?I’m updating a record in X++ outside of the form datasource. The update is saved to the database, but the form continues to show the old value until I manually refresh it. What is the correct way to refresh the datasource after the update? I’ve seen refresh(), reread(), researCommunityHow do I see the SQL generated by an X++ select statement?I have an X++ select statement and want to see the actual SQL that D365FO generates behind it. Is there a way to get the generated SQL without actually running the query?CommunityHow do I use `select firstOnly` in X++?How do I use select firstOnly in X++?CommunityHow do I join two tables in an X++ select statement?How do I join two tables in an X++ select statement?CommunityHow do I use multiple joins in an X++ select statement?How do I use multiple joins in an X++ select statement?CommunityWhat is the difference between `join`, `outer join`, `exists join`, and `notexists join` in X++?What is the difference between join, outer join, exists join, and notexists join in X++?CommunityHow do I use `exists join` in X++?How do I use exists join in X++?CommunityHow do I use `notexists join` in X++?How do I use notexists join in X++?CommunityHow do I use `outer join` in X++?How do I use outer join in X++?CommunityHow do I add an OR condition to an X++ select statement?How do I add an OR condition to an X++ select statement?CommunityHow do I use multiple where conditions in X++?How do I use multiple where conditions in X++?CommunityHow do I use `order by` in an X++ select statement?How do I use order by in an X++ select statement?CommunityHow do I use `group by` in X++?How do I use group by in X++?CommunityHow do I use `sum`, `count`, `avg`, `min`, and `max` in X++?How do I use sum, count, avg, min, and max in X++?CommunityHow do I select records between two dates in X++?How do I select records between two dates in X++?CommunityHow do I check if a record exists in X++?How do I check if a record exists in X++?CommunityHow do I get the first matching record in X++?How do I get the first matching record in X++?CommunityHow do I update multiple records using `update_recordset` in X++?How do I update multiple records using update_recordset in X++?CommunityHow do I delete multiple records using `delete_from` in X++?How do I delete multiple records using delete_from in X++?CommunityWhat is the difference between `while select` and `QueryRun` in X++?What is the difference between while select and QueryRun in X++?CommunityHow do I convert an X++ select statement into a Query object?How do I convert an X++ select statement into a Query object?CommunityHow do I get the SQL statement generated by an X++ query?How do I get the SQL statement generated by an X++ query?CommunityHow do I create a query dynamically in X++?How do I create a query dynamically in X++?CommunityHow do I add a range to a QueryBuildDataSource in X++?How do I add a range to a QueryBuildDataSource in X++?CommunityHow do I add multiple ranges to a query in X++?How do I add multiple ranges to a query in X++?CommunityHow do I add an OR range to a query in X++?How do I add an OR range to a query in X++?CommunityHow do I use `SysQuery::value()` in X++?How do I use SysQuery::value() in X++?CommunityHow do I clear a query range in X++?How do I clear a query range in X++?CommunityHow do I get records from a QueryRun in X++?How do I get records from a QueryRun in X++?CommunityHow do I refresh a form datasource after updating a record in X++?How do I refresh a form datasource after updating a record in X++?CommunityHow do I get the current record from a form datasource in X++?How do I get the current record from a form datasource in X++?CommunityHow do I refresh a form control in X++?How do I refresh a form control in X++?CommunityHow do I enable or disable a form control in X++?How do I enable or disable a form control in X++?CommunityHow do I hide a form control in X++?How do I hide a form control in X++?CommunityHow do I filter a form datasource in X++?How do I filter a form datasource in X++?CommunityHow do I create a lookup in X++?How do I create a lookup in X++?CommunityHow do I hide enum values from a combo box in X++?How do I hide enum values from a combo box in X++?CommunityWhat is the difference between `insert()`, `doInsert()`, and `insert_recordset` in X++?What is the difference between insert(), doInsert(), and insert_recordset in X++?CommunityWhat is the difference between `update()` and `doUpdate()` in X++?What is the difference between update() and doUpdate() in X++?CommunityWhat is the difference between `delete()` and `doDelete()` in X++?What is the difference between delete() and doDelete() in X++?ArticleCollections (List, Map, Set)Learn how List, Map, and Set collections work in X++ and when to use each one.ArticleMacros in X++Learn what macros are in X++, when they're useful, and why they should be used carefully.ArticleD365FO Visual Studio Extension for X++ DevelopmentXppForge is a Visual Studio extension for D365FO developers that helps generate X++ classes, SysOperation frameworks, Chain of Command extensions, forms, security objects, and more.ArticleHow to Debug Standard D365FO Code and Find Which X++ Method Is RunningLearn how to find and debug the standard X++ code running behind D365FO processes using breakpoints, Find References, the Call Stack, table methods, and Trace Parser.ArticleHow to safely refresh a D365FO form datasource after you update data in X++A practical guide to the difference between refresh(), reread(), research(), and executeQuery() on form datasources, and how to choose the right one after an X++ update.ArticleD365FO X++: Why `firstOnly` can still return the wrong row unless you make the ordering explicit`firstOnly` is a common shortcut in D365FO, but it does not by itself make the returned row deterministic. This article shows how to combine `firstOnly`, `order by`, and the right query shape so you get the record you actually meant to fetch.ArticleX++ update_recordset vs update() vs doUpdate(): when each one is safe in D365FOA practical guide to choosing the right D365FO update pattern. Learn when set-based updates are appropriate, when table logic still runs, and why doUpdate is usually the wrong escape hatch.ArticleD365FO form datasource refresh(): when to use refresh, reread, research, and executeQueryIf a D365FO form shows stale data after an X++ update, the fix is usually not to call refresh() by itself. This article explains when to use refresh(), reread(), research(), and executeQuery(), why each one behaves differently, and the practical pattern that avoids empty grids, stale fields, and lost filters.ArticleHow to see the SQL generated by an X++ query in D365FOWhen an X++ query returns unexpected rows, duplicates, or slow performance, the fastest way to debug it is to inspect the SQL that D365FO actually generates. This article shows the practical ways to print the query text and why the result is not always the same as the SQL you would write by hand.ArticleHow to refresh a D365FO form after updating data in X++ without losing filtersWhen you update a record in X++ and the form still shows old values, the problem is usually not the database update itself — it’s choosing the wrong form datasource method. Learn when to use refresh(), reread(), research(), and executeQuery() so the grid updates correctly without wiping user filters.ArticleWhy a D365FO form filter disappears after `executeQuery()` in a datasource extensionIf you add or rebuild a form datasource query in X++ and the user’s filter suddenly disappears, the problem is usually that `executeQuery()` reran the datasource query instead of preserving the current search state. This article shows when that happens, why it happens, and how to keep user filters intact without breaking the form.ArticleX++ refresh(), reread(), research(), and executeQuery(): when to use each on a form datasourceUse the right form datasource method in D365FO. `reread()` reloads the current record, `refresh()` redraws the cached record, `research()` reruns the query without rebuilding it, and `executeQuery()` rebuilds the datasource query and can drop user filters if you are not careful.ToolX++ FormatterSyntax-aware X++ formatting that preserves comments, strings, directives, and executable meaning.ToolX++ Syntax CheckerValidate balanced X++ tokens and surface actionable structural errors.ToolX++ Best-Practice AnalyzerDeterministic best-practice findings with severity and correction guidance.ToolX++ Complexity AnalyzerMeasure methods, branches, lines, and a cyclomatic-complexity estimate.ToolX++ Naming Convention ValidatorReview identifiers against practical X++ naming conventions.ToolX++ Code ComparisonCompare two X++ versions with a structured line-level summary.ToolX++ Code ExplainerExplain recognized transactions, queries, extensions, and database patterns locally.ToolX++ Performance Pattern AnalyzerFlag unbounded selects, wide reads, and common N+1 access patterns.ToolX++ Security Pattern AnalyzerFlag direct SQL, asserted permissions, and constructed-query risks.ToolX++ Transaction Scope CheckerReview ttsBegin, ttsCommit, ttsAbort, and transaction-sensitive writes.ToolSQL to X++Convert a documented SQL SELECT subset into classic X++ and QueryBuildDataSource code.ToolX++ Select to SQLTranslate a documented basic X++ select subset into reviewable SQL.ToolX++ Query BuilderBuild ranges, joins, fields, sorting, and QueryBuildDataSource scaffolding.ToolCSV to X++ Test DataConvert explicit CSV rows into X++ test-buffer assignment scaffolding.ToolJSON to X++ ClassGenerate a DataContract class from a JSON object.ToolXML to X++ ClassGenerate a DataContract class from simple XML elements.ToolX++ Map to JSONGenerate deterministic Map-to-JSON serialization scaffolding.ToolX++ Parm Method GeneratorGenerate a typed backing field and conventional parm method.ToolX++ Unit Test GeneratorCreate SysTestCase scaffolding with Arrange, Act, and Assert sections.