Screen Question
I have a basic requirement to show certain sections of a web page only to users of specific role types. What is the best way of doing that using ofbiz. Can we include-screen on basis of some role type checks? Thanks Regards, Deepa
Re: Screen Question
Yes, you should look at https://cwiki.apache.org/confluence/display/OFBTECH/OFBiz+security Jacques From: Deepa Priolkar dee...@techmahindra.com I have a basic requirement to show certain sections of a web page only to users of specific role types. What is the best way of doing that using ofbiz. Can we include-screen on basis of some role type checks? Thanks Regards, Deepa
Re: Screen Question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/11/2010 08:24 PM, Deepa Priolkar wrote: I have a basic requirement to show certain sections of a web page only to users of specific role types. What is the best way of doing that using ofbiz. Can we include-screen on basis of some role type checks? Thanks Regards, Deepa First have a look at: http://www.opensourcestrategies.com/ofbiz/security.php https://cwiki.apache.org/OFBTECH/ofbiz-security.html For restricting sections of a page see some examples below. In Freemarker (.ftl files): (set a hasPermission variable in an action script before) #if security.hasEntityPermission(SOME_PERMISSION, _VIEW, session) form.../form #else h3${uiLabelMap.PagePermissionError}/h3 /#if In Screens: screen name=... section condition if-has-permission permission=SOME_PERMISSION action=_VIEW/ /condition widgets include-screen name=SomethingYouWantToShow location=.../ /widgets fail-widgets include-screen name=NoPermission location=.../ /fail-widgets /section /screen Cheers, René - -- René Scheibe * rene.sche...@tngtech.com TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock Sitz: Unterföhring * Amtsgericht München * HRB 135082 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyzY8gACgkQUXs9EHvIuCrOUwCeP7BnUeQ+wKzFew4jShaSyHDg xe8An0K9Ja55uVxtUrtN7rd/UkBZDhsW =jDlG -END PGP SIGNATURE-
Re: pos screen question
There are already 2 Jira issues opended for this https://issues.apache.org/jira/browse/OFBIZ-1427 Sorry not a priority for me, at least for now... Jacques From: Christopher L [EMAIL PROTECTED] [...] I would love a comments section on the receipt. There could be something usable in the framework already. I don't know if there is a comments section during checkout in ofbiz, but it's not an uncommon feature in many online storefronts, so it may also be in ofbiz. If so, it would likely be pretty easy to add a dialog to fill the field and print on the receipt. Yes, I guess we could use the shipping instructions field. Please see on the ecommerce side (check out) ... Jacques Christopher From: [EMAIL PROTECTED] JacquesOr anyone that may know! If I wanted to add a numeric keyboard, or alpha numaric keyboard (qwerty keyboard) to that screen, so I don't have to include a physical keyboard, how would I add that? Here is what I've tried. I took a quick minute to add the entries of /pos/includes/numeric.xml to /pos/includes/savesale.xml I tried clicking in the bar where the text is, and enter a number or two...but the input obviously goes somewhere else. How would I go about adding numbers and/or alpha numeric buttons to a random screen? I'm looking at also adding the ability to use some sort of button to add a text based area to the receipt dialog so that servers can add custom requests to the order. I know I'll have to do a bit of modifying for this, but with a bit of help, I'd love to add this to the main trunk. I think people would get great benefit from this. Comments? Help? Thanks! Branden Strickland
Re: pos screen question
Yes there is a special instructions field already in the ordering system (visible during ecommerce checkout) so you could just use that for the receipt message. Ray Christopher L wrote: The handlers are in pos/src/.../pos/screen/NumericKeypad.java. It should show you how to add buttons and tie events to them. I believe you can see the dialog in action from a button on the main POS page. My thinking was to have the numeric dialog pop when you touch an edit box. The dialog then returns the appropriate number back to the edit box. That would make the dialogs easy to add through a click event on the edit box. It also means you don't have to redesign screens around QWERTY and a numeric keypad, as these can take up a LOT of screen space. With a dialog, you can also have consistent positioning for the keyboard dialog, increasing speed of entry. That said, I'm not a UI guy. I would love a comments section on the receipt. There could be something usable in the framework already. I don't know if there is a comments section during checkout in ofbiz, but it's not an uncommon feature in many online storefronts, so it may also be in ofbiz. If so, it would likely be pretty easy to add a dialog to fill the field and print on the receipt. Christopher Date: Tue, 27 May 2008 23:37:05 -0400 From: [EMAIL PROTECTED] To: user@ofbiz.apache.org Subject: pos screen question JacquesOr anyone that may know! If I wanted to add a numeric keyboard, or alpha numaric keyboard (qwerty keyboard) to that screen, so I don't have to include a physical keyboard, how would I add that? Here is what I've tried. I took a quick minute to add the entries of /pos/includes/numeric.xml to /pos/includes/savesale.xml I tried clicking in the bar where the text is, and enter a number or two...but the input obviously goes somewhere else. How would I go about adding numbers and/or alpha numeric buttons to a random screen? I'm looking at also adding the ability to use some sort of button to add a text based area to the receipt dialog so that servers can add custom requests to the order. I know I'll have to do a bit of modifying for this, but with a bit of help, I'd love to add this to the main trunk. I think people would get great benefit from this. Comments? Help? Thanks! Branden Strickland
pos screen question
JacquesOr anyone that may know! If I wanted to add a numeric keyboard, or alpha numaric keyboard (qwerty keyboard) to that screen, so I don't have to include a physical keyboard, how would I add that? Here is what I've tried. I took a quick minute to add the entries of /pos/includes/numeric.xml to /pos/includes/savesale.xml I tried clicking in the bar where the text is, and enter a number or two...but the input obviously goes somewhere else. How would I go about adding numbers and/or alpha numeric buttons to a random screen? I'm looking at also adding the ability to use some sort of button to add a text based area to the receipt dialog so that servers can add custom requests to the order. I know I'll have to do a bit of modifying for this, but with a bit of help, I'd love to add this to the main trunk. I think people would get great benefit from this. Comments? Help? Thanks! Branden Strickland