jose luis gonzalez clua

1

votes
3

answer
312

views

Xamarin Forms displaying simple lists

I have a list of an object and I just want to display a couple of labels for each item. In the asp.net days I would use a repeater with the labels inside. I realized there is no repeater in Xamarin Forms, or is there? I tried using a Listview but it doesn't work because in IOS it creates empty rows...
1

votes
1

answer
169

views

SQLite is not able to save DateTimeOffSet value

In our app the same update is executed in a SQL Server and a SQLite database. The issue is that SQL Server works as expected however SQLite somehow is getting always 1/1/0001. This is the update command: UPDATE ReviewSow SET SowingDate = '7/1/2016 12:00:00 AM -03:00' WHERE ReviewSowId = 3366; Any...
1

votes
1

answer
1k

views

Visual Studio can't launch app in IOS simulator

I have a MacOS High Sierra 10.13.3 Visual Studio 15.6.4 running in a Windows 10 Parallels VM. I create a new Cross platform Xamarin Forms Standard app My Mac is paired (connected) successfully I choose a simulator Iphone 8 iOS 11.2 for example When I run the app ========== Deploy: 0 succeeded, 0 fa...
1

votes
0

answer
23

views

With VB.Net and .Net 2.0, How to query AD to check if user exists or not?

I have found this code but it is for .Net 3.5+ ' set up domain context Dim ctx As New PrincipalContext(ContextType.Domain) ' find a user Dim user As UserPrincipal = UserPrincipal.FindByIdentity(ctx, 'SomeUserName') If user IsNot Nothing Then ' user exists - do something here.... E...
1

votes
1

answer
348

views

cucumber: command not found (in Mac OS)

I've tried installing Cucumber using: npm install -g cucumber and brew install cucumber-cpp In both cases it looks as it is installed successfully but when I try to run cucumber command I get: -bash: cucumber: command not found I say be missing something. Please help!
1

votes
1

answer
97

views

Using Appium / Python, how can I check if the Keyboard is showing or not?

I have seen the Appium doc for IsKeyboardShown method in this link: http://appium.io/docs/en/commands/device/keys/is-keyboard-shown/ And it says # Not supported for Python Maybe there could be a workaround? Thanks
1

votes
2

answer
280

views

In Xamarin Forms how to make every custom picker preselect the only option if there is only one?

We have hundreds dropdowns that are using the same ui control (ContentView) that by its turn uses a bindable picker class. The business wants that every dropdown comes pre-filled if there is only one item in the list. It makes no sense making the user choose from only one option. Now, we could do th...
1

votes
3

answer
1.1k

views

How to hyperlink part of a label text in Xamarin Forms?

In HTML5 I could accomplish this by doing something like: lblTxt.Text = 'For more info click here, for contact send an email'; Tks
1

votes
2

answer
1.3k

views

Can't iterate over ListView Items in Xamarin Forms

When I write this code: ListView lv = new ListView(); foreach (ListViewDataItem item in lv.Items) { } I get 'the type or name ListViewDataItem could not be found' Items is also not found under the lv object. Basically I need to iterate through each row of the ListView and set a checkbox added using...
1

votes
4

answer
0

views

Not able to find element by XPATH using Appium / Python

I am automating a flow that consists in tapping in the Product Name from a Product List which is a Xamarin ListView to go into de Product Details Page. I have set in my ListView: AutomationProperties.IsInAccessibleTree='false' And in the Product Name Label: AutomationId='ProductName' The funny thing...
0

votes
0

answer
5

views

AbsoluteLayout with proportional height and with minimum and maximum heights

We need a banner, called bannerView in the code bellow, to shrink or expand according to the device height. However this banner height: cannot be smaller than 60 pixels cannot be bigger than 146 pixels code: Note: We need the outer AbsoluteLayout to add a gradient effect on the screen
1

votes
4

answer
150

views

How can I refactor a JAVA method that returns a nested MAP?

public Map getServiceInterval( Contract pContract, BillCycle pBillCycle) { Map returnMap = new HashMap(); List productList = getAllproducts(pContract); for (product product : productList) { Date billingDate = getBillingDate(product); createReturnMap( product, returnMap, billingDate, pBillCycle); } r...
3

votes
1

answer
878

views

Polygon area calculation using Latitude and Longitude

I am using a solution I've found in this post: Polygon area calculation using Latitude and Longitude generated from Cartesian space and a world file There is something wrong because the values I am getting are not real. For example we know a football field should have around 5,300.00 square meters,...
2

votes
2

answer
86

views

In LINQ expression how to get FirstOrDefault with better performance?

In our Xamarin Forms app this code: return database.GetAllWithChildren(x => x.ProductId == prodId, true).OrderByDescending(x => x.ReviewId).FirstOrDefault(); is having performance issues and it takes more time the more reviews exist for that product. With a product with 7 reviews it took about 17 se...
1

votes
1

answer
2.5k

views

GDB Remote Debug with CLion not working

Here is my scenario: I am able to debug using terminal with these commands: gdb myprog break myprog.c:4115 run --myarg the breakpoint works and I can step in the program I try the remote debug using CLion 16.2.2 in Fedora System: in server I run: gdbserver localhost:8080 myprog --myarg I get this: P...