How to implement language selector in Oracle APEX App - oracle

I have an application with 3 pages. The primary language is English (AppID 123) and the second lang is German (AppID 124). Now I want to implement a selector list which works as language selector.
I know that the item has to set the FSP_LANGUAGE_PREFERENCE but I have no idea how and how the select item can show the active language.
Thanks in advance!

First navigate to shared components -> globalization and change the Application Language Derived From to Item Preference. While you're there take a look at the Application Primary Language select list and note down the short codes of the languages you are interested in (e.g. en-us for English United States).
Next create an application item called FSP_LANGUAGE_PREFERENCE, and a select list on the relevant page (or on desktop navigation menu) which displays the languages and returns the language short code. Then have a plsql process which sets FSP_LANGUAGE_PREFERENCE (you could have this as a dynamic action on change if it's on a particular page), e.g.
:FSP LANGUAGE PREFERENCE := :P1_ITEM ;
This will update your language setting effective from next page load.

Related

Oracle Apex : Showing SQL Count beside Navigation Menu Icon and Text

I want a dynamic number (an output of SQL query) to be shown besides page link text and icon in the navigation menu of my Oracle Apex application (Just the way it has been done in Oracle Apex Opportunity Tracker sample application).
Editing the static text of link is really simple and can be done by going to *Application123\Shared Components\Lists* and editing Application Menu but what I don't know is that how can I display a count there besides the Text and icon.
This is the desired output
This is where I know, I can edit the text (static) and change/select the icon for the link
but where to write SQL query and get its result instead of [&Leads.] , that's is not in my knowledge. Really appreciate help on this !!!!
select count(mycolumnname)
from mytablename
where anotherdatecolumn = trunc(current_date) and (referid='1' or referid='12' or referidD='18');
DEALS should be an application item (declared in Shared Components)
query should be then used in application computations (also in Shared Components)

Problems with a bilingual joomla 3.2 site

I have a custom made Joomla 3.2 template and am now trying to make it bilingual. Let's start with the modules:
I have one language switcher module, set to position "language". This position is referenced in the xml file and in the index file using the jdoc:include statement.
I have two menu modules, one for each language, both are set to be on the same position.
Menu's:
I have one menu with one menu item that is set to default and the language is set to all. The menu item's access is set to public and it is not published.
The other two menu's I have are the English and German menu. The menu item's of both menu's are set to the corresponding language, linked to an article and associated with the corresponding menu item of the other language.
All I get on the front end is the English site, the language switcher module is showing, however, I can only ever see the British flag. The German one does not appear.
Trying to change the URL's ending from index.php/en/ to index.php/de/ does not work either.
Found the problem, I had a small mistake in the German language tag. What I had was "de - DE" what I should have had was: "de-DE". Without spaces.
Note that by changing the language tag in the language manager, all articles and menu items that you set to that particular language will disappear. Just make sure that after you change the language tag you also check your menu items and article. If you don't they will not show up on the front end.

2 menus in different language points to same menu in main language

I've created 2 menus in joomla (login page in English and Lithuanian) then I visit login page in lithuanian it points to e.g lt/pages/loginas and in english language it points to en/pages/loginas, however I've created in english language link like /pages/loginasEN. So I want for english language the link /pages/loginasEN not /pages/loginas, the reason is that I have some custom settings in menu link, so in both languages I have the same text(lithuanian).
I did the same thing in the last week.
You should have something like this:
Two articles in different languages, or one common article. Then you choose in menu the type (e.g. single article) and set the title of the first menu item to loginasEN, and the second to loginas. Both are child of pages menu.
For each submenu you choose the article in the specific language (en/lt), or the same article (e.g in your case english) to both sub-menus of pages.
This is the common procedure. And it works perfectly. Joomfish is a great help.

Remove legal entity check from some forms

There are some forms which exist in only certain legal entities, I want to remove this check somehow, and make these forms available in some other legal entity as well, any idea?
You use country and region specific functionality to help meet the legal, regulatory, and business needs of individual geographies. A geography is any country or region that is identified by an ISO country or region code. In Microsoft Dynamics AX, you use country region context for this process.
To set the CountryRegionCodes property
In the AOT, expand the Forms node.
Find and expand the form that contains the control you wish to make
country-specific. Expand Designs, expand Design, and then add or
find the control.
Right-click the control, and then click Properties. Use the
Properties window to set the CountryRegionCodes property. You can
add as many ISO codes as required via a comma-separated list.
If the ISO code value of the CountryRegionCodes property does not match the ISO code value of the controlling party, the control is not displayed. If the values match, the control is displayed.
Right-click the form and click Save.
More can be find here.

Dynamic menu table in inner pages

I want to add dynamic menu table in inner pages based upon the tabs on the home page.
how to do that in joomla,please help me.
It sounds like you are trying to create a split menu where the link you click at the top determines the menu that shows up in a column/below. This is the native behavior for Joomla menus simply by setting the start and end levels in the menu module. Here is a good tutorial -
http://www.theartofjoomla.com/magazine/article/27-more-menu-tricks-the-split-menu-technique.html
Beware:: The split level menu feature in Joomla only works when the split equals TWO levels. If you want to build your site with a single master menu that spans 3 or more levels, this does not work. It looks like the internals of Joomla do not know how to track the parent properly (not really sure) when the menus are generated (probably an overstatement). Level 1:1 works, Level 2:2 works but then when you try to specify a menu starting at level 3, it breaks. In my case, I hacked the menu to check the pathways (breadcrumbs) list and derive what I wanted from it so I could determine the real parent of the items at level 3 (or other). Then I could get the items to generate proper. This was a disappointment in Joomla (v1.7). And then on top of this, you would then have to hack further to ensure that each menu item instance starting at 1 is highlighted proper. Perhaps the menus should be more closely coupled to the breadcrumbs pathway list.

Resources