So i love how with standard field types, if i want to get a value I can do this, and it gets picked up by vs code:
this._value = context.parameters.INPUTFIELDNAME.raw;
With datasets though I need to do this:
valuePara.textContent = gridParam.records[currentRecordId].getFormattedValue("INPUTFIELDNAMESTR");It would be nice if the API allowed me to do this:
context.dataset[i].INPUTFIELDNAME.raw
I know it's a minor thing, but if you look at that dataset example.. there's alot of code just to sort columns, then grab a record, then build a grid:
https://docs.microsoft.com/en-us/powerapps/developer/component-framework/sample-controls/data-set-grid-control
I'm thinking we can probably replace several functions and achieve the same with a single method that looks like this:
/** pseudocode **/
context.dataset.sort(sortonthiscolumn);
for(int i=0; i<dataset.length; i++){
console.log (context.dataset[i].columnname.value);
}
Does that make sense or am I just being lazy? 😄