/    Sign up×
Community /Pin to ProfileBookmark

Help needed in simple javascript code

Hi ,
I am a pro at plsql but have been given to code in javascript for a small requirement which is as follows.
[B]Name of the report[/B] ?pen Calls report
[B]PARAMETERS [/B]Country code, Date Range , Incident Status and Incident Type

For the report .If we are not filtering out certain parameters the parameters page should just have ‘All’ instead of listing all the values. For example, if we run the report and don’t choose a country, it will run the report for all countries. The parameters page should say all “Country Code: ALL” and not Country Code: CA,CH,CZ,FR,DE,US etc.

I need to add the above req in following code :

[code]
function AddValueToSelectedList(p_LimitVal, p_BHasCodeCol, p_SectionObj)
{
var l_LimitVal = p_LimitVal;

if(p_BHasCodeCol)
{
var l_StartIdxOfCode = l_LimitVal.lastIndexOf(” “) + 1;
l_LimitVal = l_LimitVal.substr(l_StartIdxOfCode);
}

with(p_SectionObj)
{
Limits[Limits.Count].SelectedValues.Add(l_LimitVal);
}
}
[/code]

How to achieve this ?
Thanks

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KorMay 26.2010 — Insufficient data. Either post the whole code, HTML included (it is essential, as JavaScript acts over HTML elements) or better post a link to a test page. And give us, please, more details.
×

Success!

Help @pikku24 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...