Git Product home page Git Product logo

compositeaddress_pcf's People

Contributors

andrewbutenko avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

xairrick

compositeaddress_pcf's Issues

Address Formatting

Hi Andrew,

I am not able to understand what value is required for Address Pattern, Is it a regex expression or something else ?

Address Composite field showing up after exiting screen

Address

Hello,
When I open up the composite address field and then exit out of the form without clicking the composite address field a 2nd time, the address field continues to show up despite no longer being in the form (See screenshot). Is there a way to avoid this?

Thanks!

Composite Address PDF issue

The "Bind to a value on a field" drop-down for the Composite Address control does not work. When attempted to choose "Address 1: Street 1" for binding the "Street 1" control setup, the "Address 1: Street 1" field is not available to choose.
Composite Address Control issue1
Composite Address Control issue2

Per MS, Control is causing View Name to not fully render when going back to a view from a record that has the Control

We were having issues with view names not displaying correctly, we didn't know what was causing it so we just submitted a ticket with MS.

image

MS came back with results from their product team as follows:

This issue is caused by Composite Address Control in the field Address 1 in the contact form.
Removing or selecting Text Box(default) resolve the issue
Is Composite Address Control a 3rd party control?

I have tested in your organization, and it seems to be resolved the issue.

Here are the repro steps

1- Navigate to Customization > customize the system
2- Expand entities and select Contact
3- Select the contact form
4- Dclick the field Address1
5- Select control
6- Either remove Composite Address Control or select the default text box

So if you have this Composite Address Control added in any other entity it will behave the same.

We Recommend contact the 3rd party control developers so they can modify the CSS for their AB.ConpositeAddress
The CSS attribute that causing the issue is this below

image

Anyone else experienced this before?

MultiLine Composite Address Field

Hi Andrew,

In learning PCF controls, I chose to rebuild your solution to familiarize myself with PCF underpinnings and tailor the solution to meet 3 needs. The latter 2 are not part of the issue, but are related and included for context.

1. Support a multiline composite address field:
While your github support issue #2 indicates multiline is supported, we couldn't bind it to a multiline composite address field. I noted in the manifest that the value property is limited to singleline.Text, and does not allow for SingleLine.TextArea. So, I added a type-group to allow binding to either. If this was the only change, I'd have gladly just confirmed it works in a live system, packaged it up and sent you a pull request + thank you.

But, in the code, I've also noticed this replacement of newlines with commas:

this.currentValues.value = formattedAddress;
this.mainAddressField.value = formattedAddress.replace(/\n/gm, ', '); 

In the harness, I find that newline (/n) characters are showing on the console log, but don't render as a multiline on a field rendered in the control itself. Can you clarify the difference between these two lines and why the mainAddressField.value is being reformatted with commas? How do I get the control to render multiline?

2. Eliminate extraneous newlines & commas if any values were null,
If we include an addressline2, but the value is null, we'd end up with either an extra newline or comma. Rather than using the formatAddress method (which is very cool, BTW), I wrote a less flexible, but more specific method to format for US addresses which only adds line breaks and commas if the relevant values were present. It would be awesome if there were a way to merge it with the flexibility of your format string based approach, but that is a bit beyond me.

3. Add an separate zipcode extension field: Easy enough. Done.

You are a stellar leader in the community. I'm aware of some training videos you've put together and will be carving out some time to review them.

Can't build a solution

I am trying to buid a solution from the code I have downloaded but I am getting the following error.
C:\Users\sanket\Desktop\pcf\onepcf\onepcf.cdsproj" (build target) (1:7) ->
(ProcessCdsProjectReferencesOutputs target) ->
C:\Users\sanket.nuget\packages\microsoft.powerapps.msbuild.solution\1.0.6\build\Microsoft.PowerApps.MSBuild.Solution
.targets(98,5): error : Project Reference with output path 0, is not a valid PowerApps Component Type [C:\Users\sanket
\Desktop\pcf\onepcf\onepcf.cdsproj]
C:\Users\sanket.nuget\packages\microsoft.powerapps.msbuild.solution\1.0.6\build\Microsoft.PowerApps.MSBuild.Solution
.targets(98,5): error : Cds component type not supported [C:\Users\sanket\Desktop\pcf\onepcf\onepcf.cdsproj]

I am following this tutorial to build the solution:
https://www.youtube.com/watch?v=2uO2L2xTPkc

If there is any other way to install this component to PowerApps please let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.