iPhone settings bundle - iphone

I want to allow the user to enter a valid date using the iPhone’s settings application.
I have experimented with many of the PreferenceSpecifiers data node types including date.
I have two issues:
When I specify date as the type, my app within the settings app crashes. Working examples would be greatly appreciated.
Since this approach hasn’t worked for me yet, will I programmatically be able to validate the date that the user enters?

The answer to number 2 is no. The only time you can validate the data entered is the next time your app is launched. None of your app's code is run via the Settings app.
You might consider pulling this setting into your app.

Have you read this guide and this section of the App guide? They describe in detail how the settings like this work.
You won't be able to validate anything a user sets through the Settings application. Also, I don't see Date as a valid setting type anywhere, so I don't even think this is possible through the Settings application.
I would simply create a settings view within the application. That way you can control your custom logic as you see fit.

Related

SAP Fiori: Show 'My Leave Requests' in days instead of hours

When requesting a leave in Fiori the pop up shows the away time in hours instead of days:
Is there a possiblity that instead of for example 15,00 hours the pop-up shows 2 days?
Beware that many stuff in Fiori applications can also be customized by customizing your default SAP application. If your default in leave request is in hours, then that is what this Fiori app will show. Change it to days and that will be what Fiori will show.
In case you have a specific requirement to make this deviate solely in the app, then indeed you need either an extension point or create a custom implementation.
Here some additional links:
Preffered method
Old-fashioned
From what it looks like, you are asking to change a standard, delivered app?
If so, it is only possible to change it, if an Extension Point is provided at the desired place and then adapt the extended code. Check the documentation for App Extensibility: My Leave Requests.
In any case, if you haven't gone through the documentation for the app itself, with the possible customizations, check the My Leave Requests Fiori app documentation

OwnCloud enhance core features with App (eg. user registration)

I started looking into OwnCloud app development to add some capabilities I would like to my server. To me it seems like Apps can't modify anything like the Login page or User Management page. Is this the case?
I want to build a user registration app and would love to integrate it into the user management page (if not and it has to exist as its own app page not a big deal). The one big problem I see so far is not being able to add a "Register" link to the login page. I could just go in and add it to the source manually, but I would like to keep the App self contained so others can use it too.
If this is not possible to do in an App I may just need to modify the core application and then see if they will accept my feature addition in a pull request.
Thanks to anyone who can shed some light on this for me. I don't want to waste my time trying to figure out how to do it with an App on the platform if it wont be doable.
After a lot of digging around I did figure out a way to do this.
In the App's app.php file, you can force a script to be loaded if the plugin is enabled:
$api->addScript('script_name'); // without .js
In that script jQuery can be used to add the elements to the page where you need them.
This was a good solution for me since I only needed to add a single button to the login page. I can see this being a bad idea if you want to make vast modifications. At that point you might as well just create a separate page that you have full control over.

What is the different between setting Facebook settings problematically in the run time and statically in the web config?

The question is when I need to set the Facebook settings in the web config and setting it dynamically in the run time, will it be different or just another way of setting the Facebook settings?
I'm using Facebook C# SDK.
well there is no big different ,but the most important one is when you put your settings inside the web config then you are sure that you use only one Facebook application that uses you solution ,then it is ok to set it there because it is only one application
but when more than one application uses the same solution and you have to store the Facebook application setting within your database then you need to obtain the appid in the run time within the Facebook context then load your application settings and set in in the run time ,I ask a lot of questions about that topic before look to my posts it may help you :)
and yes you can make that by creatin class that implemint IFacebookApplication and in the global.asax inthe application start do the folowing :
FacebookApplication.SetApplication(new
myclassname());

Settings bundle, want to show dynamic data from web-service

Hi I am stuck please help me...
Is it possible to load dynamic data in the settings bundle, exactly what i need is when user sets a value for a preference, i need to display a list for the next preference, this list should be drawn from an online database. I have seen some thing similar in iPhone's default settings. Can anybody please give a solution for this as i am really screwed now. If it is not possible then i will include the settings in the app itself.
Thanks in advance
It is not possible to have dynamic values in Apple's settings application; they need to be specified in Settings.bundle before compilation. I recommend you implement a custom settings screen.

Dates in iPhone Settings Bundle

I'm working on a very simple iPhone app, that in the end will have maybe 3 or 4 settings.
Ideally I'd like to use the Settings app provided for free in the SDK.
One of the settings I'd like the user to be able to enter is their date of birth, however there doesn't seem to be a way to prompt the user for a date in the Settings app.
Aside from writing a custom settings page within my app, is there any other options?
Take a look at UIPickerView to allow the user to "dial in" values that correspond to a day, month, and year.
EDIT: Okay, thanks for clarifying. Perhaps take a look at the PSMultiValueSpecifier key and use its multi-value selectors for day, month and year selections.
Look at the tutorial section of the Application Preferences document for help on this, specifically the "Experience Level" portion.
The only way using the default settings is to use one or more textfields, and to parse the user's input to build a NSDate object.