This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// return true is the specified user is in any of the roles in the roleNames container. | |
/// </summary> | |
/// <param name="axUserId"> | |
/// AX user id, e.g. curUserId() | |
/// </param> | |
/// <param name="roleNames"> | |
/// container of role names to check. (use role NAME, not label.) | |
/// </param> | |
/// <returns> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// return true is the specified user is in any of the roles in the roleNames container. | |
/// </summary> | |
/// <param name="axUserId"> | |
/// AX user id, e.g. curUserId() | |
/// </param> | |
/// <param name="roleNames"> | |
/// container of role names to check. (use role NAME, not label.) | |
/// </param> | |
/// <returns> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void AjhBase36Test(Args _args) | |
{ | |
// ajh 2014-05-07: 611.23 | |
// adapted from http://en.wikipedia.org/wiki/Base_36. | |
// note: handles non-negative integers only. | |
#define.NBASE(36) | |
#define.CLIST("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ") | |
int64 base36_decode(str base36_input) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Globalization; | |
namespace MySuit.MySuitV2.BLL | |
{ | |
public class Utility | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void AjhTestRSL(Args _args) | |
{ | |
CustTable custTable; | |
RecordSortedList myList = new RecordSortedList(tableNum(CustTable)); | |
boolean moreRecs; | |
myList.sortOrder(fieldNum(CustTable, AccountNum)); | |
// create a list | |
while select firstOnly10 * from custTable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Given AX project #, return ID. | |
param ( | |
[string]$projno = $( Read-Host "Enter project # (e.g. 123.4)" ) | |
) | |
[string]$tfpt = "C:\Program Files (x86)\Microsoft Team Foundation Server 2012 Power Tools\TFPT.EXE" | |
[string]$svr = "http://myTfsServer:8080/tfs/defaultcollection" | |
[string]$projname = "myProjName" | |
[string]$query = "SELECT [System.Id], [System.Title] FROM WorkItems " + | |
"WHERE [System.TeamProject] = '$projname' " + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* implements hook_query_alter(). | |
*/ | |
function MY_MODULE_query_alter(QueryAlterableInterface $query) { | |
if ($query->hasAllTags('views', 'views_university_search')) { | |
$ord =& $query->getOrderBy(); | |
if (array_key_exists('location_country', $ord)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static AjhDevLaunchStartupProjects construct() | |
{ | |
return new AjhDevLaunchStartupProjects(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void openAllProjects() | |
{ | |
// get the project list, and open all projects. | |
Array projects; | |
int i; | |
ProjectNode sharedProjects, privateProjects, projectNode; | |
projects = this.getProjectList(); | |
sharedProjects = Infolog.projectRootNode().AOTfindChild('Shared'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ajh 2013-04-03: my own startup project thing... | |
case menuitemActionStr(AjhDevStartupProjectAdd): | |
case menuitemActionStr(AjhDevStartupProjectRemove): | |
if (firstNode.handle() != classNum(ProjectNode) || !match(#pathProjects, firstNode.treeNodePath())) | |
{ | |
return 0; | |
} | |
return 1; |
OlderNewer