Fetch territory name from API by using Transaction Qualifiers value
Hi All,
I want to get territory name from API by using Transaction Qualifiers value. But I am unable to find any suitable API.
Is there any standard API available?
Its urgent issue. Please any one help me.
Thanks in advance
Subhas Samanta
There is no such API available. But, I can give you a query based on the qualifier. The query changes from qualifier to qualifier.
Thanks,
Similar Messages
-
Fetching network name from a mobile through MIDlet
Hi All,
Friends can we fetching network name from a mobile through Midlet programming ? I mean the network tower it currently used.
if anyone has the concept about that then please help me about that.
Thanks........
Edited by: javalearner83 on Sep 26, 2007 4:58 AMsory to tell u that i dont know whether it is possible in j2me or not??
but surely it is possible in Symbian c++
in my company my collegue has worked in same application about which u are talking -
How can i get all java class names from a package using reflection?
hi,
can i get all classes name from a package using reflection or any other way?
If possible plz give the code with example.You can't, because the package doesn't have to be on the local machine. It could be ANYWHERE.
For example, via a URLClassLoader (ie from the internet) I could load a class called:
com.paperstack.NobodyExpectsTheSpanishInquisitionI haven't written it yet. But I might tomorrow. How are you going to determine if that class is in the package?
This subject comes up a lot. If you want to do something a bit like what you're asking for (but not quite) there are plenty of threads on the subject. Use google and/or the forum search facility to find them.
But the answer to your question, as you asked it, is "you can't do that". -
Fetching session names from repository using Informatica SDK
Hi guys, I'm using the Informatica SDK to create a java application that accesses the Informatica repository. I'm having a bit of an issue while trying to fetch the names of already created sessions from the Informatica Repository. I'm able to connect to the repo without any issues and have been able to add sources, targets, mappings, sessions, workflows, etc... and save them directly afterwards. However, when I try to fetch the session names from a folder in the repository, I get the following error: Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Running the pmrep process in the working directory: [C:\Informatica\9.6.1\clients\PowerCenterClient\client\bin].Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Running the command [listobjects -o session -f "TechOps" -s .].Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Running the command [exit].Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Parsing the output of the ListObjects command for each folder.Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 The following errors occurred while running the ListObjects command: [Failed to read repository connection information. Please first connect to the repository using the connect command.Failed to execute listobjects.].The following errors occurred while running the ListObjects command: [Failed to read repository connection information. Please first connect to the repository using the connect command.Failed to execute listobjects.].com.informatica.powercenter.sdk.mapfwk.exception.RepoOperationException: The following errors occurred while running the ListObjects command: [Failed to read repository connection information. Please first connect to the repository using the connect command.Failed to execute listobjects.].at com.informatica.powercenter.sdk.mapfwk.core.Folder.fetchSessionNamesFromRepository(Unknown Source)at com.informatica.powercenter.sdk.mapfwk.core.Folder.fetchSessionNamesFromRepository(Unknown Source)at com.mars.Main.main(Main.java:170) This doesn't really make sense to me as I'm able to connect to the repo fine to add and save changes. Here's my code for fetching: // Create a list of session names and store the namesList<String> sessionNames = null;try { sessionNames = folder.fetchSessionNamesFromRepository();} catch (RepoOperationException e) { // TODO Auto-generated catch block e.printStackTrace();} catch (MapFwkReaderException e) { // TODO Auto-generated catch block e.printStackTrace();} // Print the list of session namesfor (int i = 0; i < sessionNames.size(); i++) {System.out.println("Session " + i + " is " + sessionNames.get(i));} I've confirmed that the folder object works fine as I can add and save other objects to that folder in the repo. The other thing is that if I go to the Informatica path on my drive and run the pmrep command followed by the command for fetching session names, it works fine. Any help on this would be greatly appreciated. Thanks
Hi Shruti,
Instead of doing the following when setting the font attributes:
FontImpl fnt = (FontImpl)res.getFont();
fnt.getDecoration().setTextColor(c1);
res.setFont(fnt);
Try doing this instead:
res.getAttributes().setForeground(c1);
res.getFont().setSize(10);
Hope this helps.
Regards,
Dan -
Program name to post document using transaction KB33N.
Could you tell me the Program name to post FI document using transaction KB33N.
Also before document is posted it should appear in SM35
Edited by: mukesh mahajan on Oct 20, 2009 12:39 PMThe program name of the T-code is not required.
I require a standard program which is used to post document in KB33N with data from input file from presentation or application server.
example is like program RFBIBL00 is used to post document in FB01, FBS1 etc.
Could any one suggest the name of program for KB33N posting. -
How to persist data in the object n memory after fetching it once from database and use it with linq
Hi,
I have some data from the database around 8 to 10 records .
These records are interrelated and I need to show cascade drop down.
I want to get the records from the database using c#.
And then based on certain events on the page want to use linq over the same data without having to get the data from the data base again.
i.e
ProductName
Product Plan
Product type
Monthly
Annually
pordA
Gold
Individual
1
5
pordA
Gold
Spouse
2
6
pordA
Silver
Individual
3
7
pordA
Silver
Spouse
4
8
Prod B
Platinum
Individual
5
9
Prod B
Platinum
Spouse
6
10
Prod B
Gold
Individual
1
5
Prod B
Gold
Spouse
2
6
pordA
Silver
Individual
3
7
pordA
Silver
Spouse
4
8
pordA
Platinum
Individual
5
9
Now on page load I want product name in drop down.
Based on the productName selected i want to show Product Plan in another drop down and based on prduct plan want to show prduct type in drop down and then the annual and monthly in drop down.
I want to get all the records of prod A and then using linq to object load the drop downs instead of running query to database.
How can I keep the records available across the function calls.
Regards
VinodThis is mostly a ASP.NET question. You get better answers if you post it in ASP.NET forum.
This is my answer:
Session is not a suitable choice, since each user will have a duplicate of the data. Cache is a better option.
You can put something in Cache option and retrieve it from Cache similar to using Session. This is the manual method of caching and management of the cache content is on yourself.
public List<Product> GetAll()
List<Product> products = null;
if (Cache["Products"] == null)
DataSet data = RetrieveProducts();
products = ConvertProductsDataSetToObject(data);
Cache.Insert("Products", products, null, DateTime.Now.AddMinutes(30), TimeSpan.Zero);
else
products = (List<Product>)Cache["Products"];
return products;
When putting something in the cache, you should set its expire time. But one thing that is more important over this is to clear the cache when your data is changed in the data store (e.g. database).
public void UpdateProduct()
// update product in the database
// clear the cahce, so that the next request for Products, receives a fresh copy of the data
Cache["TestItem"] = null;
Other than using cache manually, there are also some helper funcationalities that manage cache automatically for you, based on the technology you use (ASP.NET Web Forms or ASP.NET MVC). For example in ASP.NET Web Forms you can ask ASP.NET Web Forms engine
to cache the output of a User Control automatocally by adding OutputCache directive to the user control. In ASP.NET MVC you can you [OutputCache] attribute and apply it to actions.
[OutputCache(Duration = 86400, Location = OutputCacheLocation.All)]
public ActionResult Index()
var model = ProductBL.GetAll();
return View(model);
Also, there is a concept named cache dependency, by which you can specify a dependency for the item being cached. When the condition is met, the cache automatically invalidates and clears.
There are three kinds of cache dependency:
Item dependency: make cached data dependent on another cached data
File dependency: make cached data dependent on a file
Sql dependency: make cached data dependent on the result of a SQL query -
How to read the Key value from the Message using the text value.. Urgent
I need to read the Key valuefrom the message pool using the text value for the Key.. Is it possible.. Please help me with sample code..
Thanks and Regards
AvijitAvijit,
I got your requirement. I really dont know the scenario your working on but its possible to do it. There is no direct way to do so, but complexity is in getting to know the Keys dynamically from interface.
Here you go..
try
Class msgClass = IMessageTestWDApps.class;
//Replace IMessageTestWDApps with IMessage<Your WD Component name>
Field keys[] = msgClass.getFields();
IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
if(keys != null)
String key = "";
for(int index=0;index<keys.length;index++)
key = keys[index].getName();
wdComponentAPI.getMessageManager().reportSuccess("Key= "+key);
if(textAccessor.getText(key).equals("My message text"))
//your logic.
catch(Exception cnfe)
wdComponentAPI.getMessageManager().reportException("Exe "+cnfe.getMessage(),false);
Regards
Abhilash
Message was edited by:
Abhilash Gampa -
Fm or class existing for fetching xml contents from a file using abap ?
Hi,
I need to fetch an xml file in a string of type xstring. I am using class cl_gui_frontend_services=>gui_upload.
This returns me content in table format, than i am planning to conver to xstring.
Is there any better approach or any existing function module any one know of ?
thanks
Regards
PoojaHi Pooja,
You can try out this program to read the XML file using abap.
*& Report ZXMLTOITAB *
REPORT ZXMLTOITAB .
TYPE-POOLS: ixml.
TYPES: BEGIN OF t_xml_line,
data(256) TYPE x,
END OF t_xml_line.
DATA: l_ixml TYPE REF TO if_ixml,
l_streamfactory TYPE REF TO if_ixml_stream_factory,
l_parser TYPE REF TO if_ixml_parser,
l_istream TYPE REF TO if_ixml_istream,
l_document TYPE REF TO if_ixml_document,
l_node TYPE REF TO if_ixml_node,
l_xmldata TYPE string.
DATA: l_elem TYPE REF TO if_ixml_element,
l_root_node TYPE REF TO if_ixml_node,
l_next_node TYPE REF TO if_ixml_node,
l_name TYPE string,
l_iterator TYPE REF TO if_ixml_node_iterator.
DATA: l_xml_table TYPE TABLE OF t_xml_line,
l_xml_line TYPE t_xml_line,
l_xml_table_size TYPE i.
DATA: l_filename TYPE string.
PARAMETERS: pa_file TYPE char1024 DEFAULT 'c:\temp\orders_dtd.xml'.
* Validation of XML file: Only DTD included in xml document is supported
PARAMETERS: pa_val TYPE char1 AS CHECKBOX.
START-OF-SELECTION.
* Creating the main iXML factory
l_ixml = cl_ixml=>create( ).
* Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
PERFORM get_xml_table CHANGING l_xml_table_size l_xml_table.
* wrap the table containing the file into a stream
l_istream = l_streamfactory->create_istream_itable( table =
l_xml_table
size =
l_xml_table_size ).
* Creating a document
l_document = l_ixml->create_document( ).
* Create a Parser
l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
istream = l_istream
document = l_document ).
* Validate a document
IF pa_val EQ 'X'.
l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
ENDIF.
* Parse the stream
IF l_parser->parse( ) NE 0.
IF l_parser->num_errors( ) NE 0.
DATA: parseerror TYPE REF TO if_ixml_parse_error,
str TYPE string,
i TYPE i,
count TYPE i,
index TYPE i.
count = l_parser->num_errors( ).
WRITE: count, ' parse errors have occured:'.
index = 0.
WHILE index < count.
parseerror = l_parser->get_error( index = index ).
i = parseerror->get_line( ).
WRITE: 'line: ', i.
i = parseerror->get_column( ).
WRITE: 'column: ', i.
str = parseerror->get_reason( ).
WRITE: str.
index = index + 1.
ENDWHILE.
ENDIF.
ENDIF.
* Process the document
IF l_parser->is_dom_generating( ) EQ 'X'.
PERFORM process_dom USING l_document.
ENDIF.
*& Form get_xml_table
FORM get_xml_table CHANGING l_xml_table_size TYPE i
l_xml_table TYPE STANDARD TABLE.
* Local variable declaration
DATA: l_len TYPE i,
l_len2 TYPE i,
l_tab TYPE tsfixml,
l_content TYPE string,
l_str1 TYPE string,
c_conv TYPE REF TO cl_abap_conv_in_ce,
l_itab TYPE TABLE OF string.
l_filename = pa_file.
* upload a file from the client's workstation
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = l_filename
filetype = 'BIN'
IMPORTING
filelength = l_xml_table_size
CHANGING
data_tab = l_xml_table
EXCEPTIONS
OTHERS = 19.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
* Writing the XML document to the screen
CLEAR l_str1.
LOOP AT l_xml_table INTO l_xml_line.
c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data
replacement = space ).
c_conv->read( IMPORTING data = l_content len = l_len ).
CONCATENATE l_str1 l_content INTO l_str1.
ENDLOOP.
l_str1 = l_str1+0(l_xml_table_size).
SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
WRITE: /.
WRITE: /' XML File'.
WRITE: /.
LOOP AT l_itab INTO l_str1.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab
IN
l_str1 WITH space.
WRITE: / l_str1.
ENDLOOP.
WRITE: /.
ENDFORM. "get_xml_table
*& Form process_dom
FORM process_dom USING document TYPE REF TO if_ixml_document.
DATA: node TYPE REF TO if_ixml_node,
iterator TYPE REF TO if_ixml_node_iterator,
nodemap TYPE REF TO if_ixml_named_node_map,
attr TYPE REF TO if_ixml_node,
name TYPE string,
prefix TYPE string,
value TYPE string,
indent TYPE i,
count TYPE i,
index TYPE i.
node ?= document.
CHECK NOT node IS INITIAL.
ULINE.
WRITE: /.
WRITE: /' DOM-TREE'.
WRITE: /.
IF node IS INITIAL. EXIT. ENDIF.
* create a node iterator
iterator = node->create_iterator( ).
* get current node
node = iterator->get_next( ).
* loop over all nodes
WHILE NOT node IS INITIAL.
indent = node->get_height( ) * 2.
indent = indent + 20.
CASE node->get_type( ).
WHEN if_ixml_node=>co_node_element.
* element node
name = node->get_name( ).
nodemap = node->get_attributes( ).
WRITE: / 'ELEMENT :'.
WRITE: AT indent name COLOR COL_POSITIVE INVERSE.
IF NOT nodemap IS INITIAL.
* attributes
count = nodemap->get_length( ).
DO count TIMES.
index = sy-index - 1.
attr = nodemap->get_item( index ).
name = attr->get_name( ).
prefix = attr->get_namespace_prefix( ).
value = attr->get_value( ).
WRITE: / 'ATTRIBUTE:'.
WRITE: AT indent name COLOR COL_HEADING INVERSE, '=',
value COLOR COL_TOTAL INVERSE.
ENDDO.
ENDIF.
WHEN if_ixml_node=>co_node_text OR
if_ixml_node=>co_node_cdata_section.
* text node
value = node->get_value( ).
WRITE: / 'VALUE :'.
WRITE: AT indent value COLOR COL_GROUP INVERSE.
ENDCASE.
* advance to next node
node = iterator->get_next( ).
ENDWHILE.
ENDFORM. "process_dom
Regards,
Samson Rodrigues. -
How to fetch Schedule details from Subscription ID using ReportServer2010
Hi All,
I'm using Azure so ReportServer DB and the application DB are in two different servers. So my requirement is to fetch the Schedule details from the ReportServer DB and store it in my application DB for further processing and i have only the SubscriptionID.
So is there any way i can fetch the schedule details from subscription ID from ReportServer2010 web service.
One alternative is that I'm connecting to the azure server and fetching the information but i want to know is there any built in web method to get this info.
Thanks in advance and let me know if you need any more info. Waiting for your valuable answer.
Regards,
Ravi Neelam.After going thought different forums and got some knowledge on this issue and able to sort this issue. I'm posting this so other can easily use this method and can save lot of time.
Solution: I'm using CreateSchedule method which will create a Schedule in ReportServer DB and will return the ScheduleId which i will insert as a matchData parameter to my CreateSubscription
method. Hope the below code snippet will be use full.
This is my CreateSubscription Method code snippet:
public string CreateSubscription(string reportPath, string toAddress, string subject, string description, int matchDataSelection, Dictionary<string, string> itemParameters)
int counter = -1;
string subscriptionId = string.Empty;
ExtensionSettings extensionSettings = GetExtensionSettings(toAddress, subject);
ScheduleDefinition matchData = GetMatchData(matchDataSelection);
ParameterValue[] parametersvalue = new ParameterValue[itemParameters.Count()];
foreach (var item in itemParameters)
ParameterValue param = new ParameterValue();
counter++;
param.Name = item.Key;
param.Value = item.Value;
parametersvalue[counter] = param;
ScheduleDefinition scheduleDefinition = new ScheduleDefinition();
scheduleDefinition = GetMatchData(matchDataSelection);
string scheduleId = service.CreateSchedule("SampleScheduleDefnition", scheduleDefinition, null);
return subscriptionId = service.CreateSubscription(reportPath, extensionSettings, description, "TimedSubscription", scheduleId, parametersvalue);
private ExtensionSettings GetExtensionSettings(string toAddress, string subject)
ExtensionSettings extensionSettings = new ExtensionSettings();
ParameterValue[] extensionParams = new ParameterValue[5];
extensionParams[0] = new ParameterValue();
extensionParams[0].Name = "TO";
extensionParams[0].Value = toAddress;
extensionParams[1] = new ParameterValue();
extensionParams[1].Name = "IncludeReport";
extensionParams[1].Value = "FALSE";
extensionParams[2] = new ParameterValue();
extensionParams[2].Name = "Subject";
extensionParams[2].Value = subject;
extensionParams[3] = new ParameterValue();
extensionParams[3].Name = "RenderFormat";
extensionParams[3].Value = "PDF";
extensionParams[4] = new ParameterValue();
extensionParams[4].Name = "Priority";
extensionParams[4].Value = "NORMAL";
extensionSettings.ParameterValues = extensionParams;
extensionSettings.Extension = "Report Server Email";
return extensionSettings;
private ScheduleDefinition GetMatchData(int matchDataSelection)
int selection = matchDataSelection;
DateTime currentDate = DateTime.Now;
TimeSpan timeStampforNewTime = new TimeSpan(08, 00, 00);
currentDate = currentDate.Date + timeStampforNewTime;
ScheduleDefinition schedule = new ScheduleDefinition();
schedule.StartDateTime = currentDate;
if (matchDataSelection == 1)
schedule.EndDate = DateTime.Now.AddDays(1);
schedule.EndDateSpecified = true;
else
schedule.EndDateSpecified = false;
ScheduleDefinition matchDataResponse = new ScheduleDefinition();
switch (selection)
case (int)MatchDataSelection.Once:
schedule.Item = GetPatternforDaily();
break;
case (int)MatchDataSelection.Daily:
schedule.Item = GetPatternforDaily();
break;
case (int)MatchDataSelection.Weekly:
schedule.Item = GetPatternforWeekly();
break;
case (int)MatchDataSelection.BiWeekly:
schedule.Item = GetPatternforBiWeekly();
break;
case (int)MatchDataSelection.Monthly:
schedule.Item = GetPatternforMonthly();
break;
//XmlDocument xmlDoc = GetScheduleAsXml(schedule);
//matchDataResponse = xmlDoc.OuterXml;
return matchDataResponse;
private RecurrencePattern GetPatternforMonthly()
MonthlyDOWRecurrence pattern = new MonthlyDOWRecurrence();
pattern.WhichWeekSpecified = true;
pattern.WhichWeek = WeekNumberEnum.FirstWeek;
MonthsOfYearSelector months = new MonthsOfYearSelector();
months.January = true;
months.February = true;
months.March = true;
months.April = true;
months.May = true;
months.June = true;
months.July = true;
months.August = true;
months.September = true;
months.October = true;
months.November = true;
months.December = true;
pattern.MonthsOfYear = months;
DaysOfWeekSelector days = new DaysOfWeekSelector();
days.Monday = true;
pattern.DaysOfWeek = days;
return pattern;
private RecurrencePattern GetPatternforDaily()
DailyRecurrence pattern = new DailyRecurrence();
pattern.DaysInterval = 1;
return pattern;
private RecurrencePattern GetPatternforWeekly()
WeeklyRecurrence pattern = new WeeklyRecurrence();
DaysOfWeekSelector selector = new DaysOfWeekSelector();
selector.Monday = true;
pattern.DaysOfWeek = selector;
return pattern;
private RecurrencePattern GetPatternforBiWeekly()
WeeklyRecurrence pattern = new WeeklyRecurrence();
DaysOfWeekSelector selector = new DaysOfWeekSelector();
selector.Monday = true;
pattern.DaysOfWeek = selector;
pattern.WeeksInterval = 1;
pattern.WeeksIntervalSpecified = true;
return pattern;
Regards, Ravi Neelam. -
How to fetch corresponding records from 2 tables using ADF Toplink & EJB
Hi,
I am unable to fetch records from 2 tables, which has a foregin key.Used the custom query in toplink, But the output is the cartition of the first table draged and the first row of the second table.The output required should be in the form of ADF Table. I am able to find the output in JSF data table.
Two tables:
Table name:Solutions
sol_id varchar2(PK)
sol_name varchar2
Table name:Solution_details
sol_id varchar2(FK)
common_asum_id varchar2(PK)
common_detail varchar2
Output Required:
sol_id,sol_name,common_asum_id,common_detail
Custom query:
SELECT * FROM solutions a
,solution_details b
WHERE a.sol_id=b.sol_idHi,
I am unable to fetch records from 2 tables, which has a foregin key.Used the custom query in toplink, But the output is the cartition of the first table draged and the first row of the second table.The output required should be in the form of ADF Table. I am able to find the output in JSF data table.
Two tables:
Table name:Solutions
sol_id varchar2(PK)
sol_name varchar2
Table name:Solution_details
sol_id varchar2(FK)
common_asum_id varchar2(PK)
common_detail varchar2
Output Required:
sol_id,sol_name,common_asum_id,common_detail
Custom query:
SELECT * FROM solutions a
,solution_details b
WHERE a.sol_id=b.sol_id -
Fetch excel file from app. server using open dataset...
Hello Experts,
Our functional consultant is asking me if it possible to get an excel file from the
application server file using OPEN dataset and in background mode? If yes, Please tell me on how to do this.
Thank you guys and take care!Hi Viraylab,
to download this the procedure:
you can use the FM 'EXCEL_OLE_STANDARD_DAT ' for this purpose.
this FM 'EXCEL_OLE_STANDARD_DAT' can be used to start Excel with a new sheet and transfer data from an internal table to the sheet.
Here are some of the parameters:
file_name: Name and path of the Excel worksheet file e.g. ?C:TEMPZTEST?
data_tab: Name of the internal table that should be uploaded to Exvcel
fieldnames: Internal tabel with column headers
How to build the field names table:
data: begin of i_fieldnames occurs 20,
field(60), end of i_fieldnames.
i_fieldnames-field = ?This is column 1?. append i_fieldnames-field.
i_fieldnames-field = ?This is column 2?. append i_fieldnames-field.
to upload follow this:
OPEN DATASET dsn FOR INPUT IN BINARY MODE.
DO.
READ DATASET dsn INTO itab-field.
IF sy-subrc = 0.
APPEND itab.
ELSE.
EXIT.
ENDIF.
ENDDO.
[/code]Rob
or Try this function module.
FILE_READ_AND_CONVERT_SAP_DATA
pass 'XLS' to I_FILEFORMAT..
Dont forgot to Reward me points .....All the very best....
Regards,
Sreenivasa sarma K. -
How do I get a list of cameras names from MAX to use in a CVI app?
I wish to avoid any confusion in selecting cameras to use in my CVI application, so I'm looking for a way, from within my app, to get the list of camera names as set up in MAX. Then I can populate a listbox and the user can choose their camera without having to guess or refer to an external listing for the MAX name. The selected name will then be passed to IMAQdxOpenCamera.
Thanks!Found it! (Should have looked in the hardware boards first, but it seemed to be a software question.) Anyway, use IMAQdxEnumerateCameras.
-
Can I use file names from some folder to specisfly a value of a variable
so here is the thing I want to do:
I've got like 3 variables in my swf file which value tells to
the code how many picture there are to load.
So I have like
var totalPics:Number = 5
in my folder images I have 5 pics, but I want to put 3 more
so I want to make suck code that will check the total files in the
folder and return a value of 8 or check the name of the last file
found in the foulder like pic8.swf (I've made it into swf to load
in a loader) and to take that letter 8 from it as a value to put in
the variable totalPics so it is = 8.
Can u tell me is this possible to make in flash.... where I
should read helps or guides .. or just give me a simple example
please.
Thank u a lot. If u have any more questions, just ask me..Very helpful of you guys ;] Thanks a lot.. so lets continue
on the matter..
GWD the second option is good but can work in a simplier
code.. mine is a bit complexed and by that I mean.. that the total
number of pics or things to load should be known for the main swf
file at his start. That is because before the turn for the pics to
load comes, there is something else that must happen first, and it
depends on that total number (actually 3 total numbers cuz there
are 3 folders with different pics that must mix) So.. can't use the
second option cuz it works good when the code is a bit more simple
than that.
If u didn't understand whant I tried to explain.. doesn't
matter.. not so important atm.
Now the thing with the LoadVars.. yes, I've been thinking the
same thing but like this: At the 1st frame in the main timeline I
have 3 variables that are used further in the code and that must be
predefined by how many pics there actually are, so.. I've been
thining to make 3 different var1.txt, var2.txt and var3.txt files
for example and to put there as value just the number I need. So
when I add more pics for example to my images folder, I edit the
txt file containing their total number and just change it so the
code can automatically add the new pics to the sequence.
I've got some examples of this how LoadVars works with txt
files and I think I can manage to do that, but anyway would be nice
of you to give me some example ;] and of course correct me if my
toughts above are not true.
Now.. SumTsb.. what u mentioned, I am interested in, because
I have a PHP guy, who can make me a code that automatically counts
and gives back the totalPics number from a certain folder (I don't
know for sure that it is possible but if it is he can do it). My
point is.. When he makes this code.. that reterns value of
totalPics, how can I redirect it so it changes the value of
totalPics inside my main swf file. I see only this as option at the
moment:
1) when someone adds or deletes files from the folder the php
code returns a different value, equal to the number of files in the
folder, and automatically changes the content of the file var1.txt
like this:
First off var1.txt has: &content=10 // this is the total
number of pics/swf files in the folder;
when u add.. like 3 more files.. the php code changes the
value inside of var1.txt to: &content=13 and when the main swf
is started he takes the new value and my problem is solved. Is this
what I say as example true ? If it is I guess the only thing left
for me is the php programer to make his code and job is done.
But answer me this question too: is it possible the php code
to return the value of the totalPics directly into the main swf
file. So if I have inside the main swf a variable at the first
frame ot the main timeline called totalPics, can the php give it a
value equal to the total numbers of files in a folder, and how ?
I guess I've written too too much :D so I'll wait what u will
answer me now.. I think you understood my idea.. and if more
questions arise I will write u back. And if no.. I will just thank
you a lot :D -
Dynamic Column Names from one table and its corresponding values from another table
I have 2 tables. First tables gives the specification if a column is required or not. we have the 2nd table with the same column name where we provide the actual values.
I want to select all the required columns from the 1st table and retrieve the values for those from the 2nd table. Both this i want to achieve in a single select statement.This wil require a dynamic Query with a Pivot
DECLARE @ColsPivot as VARCHAR(MAX);
DECLARE @Query AS VARCHAR(MAX);
1. Retreive the ID for all required field
SET @ColsPivot = (SELECT STUFF((SELECT ',' + quotename(CAST([RequirementID] as varchar(3))) FROM [dbo].[Requirement] WHERE required=1 FOR XML PATH(''), TYPE).value('.', 'NVARCHAR(MAX)') ,1,1,''));
This will give you : [1],[2],[3],[8],[9],[14] for exemple.
2. Build your Query
SET @Query ='SELECT ClientID,'+@ColsPivot+''
FROM (
SELECT [ClientID],[RequirementID],[Value]
FROM dbo.RequirementValue
WHERE ClientID=@CliendID --Optional SP parameter
)src
PIVOT(
MAX(Value)
for [RequirementID] in ('+@ColsPivot+')
) p';
3. Exec(@Query); -
Can we reconcile secondary group name from unix server
Hi,
Can we reconcile secondary group name from unix server using some own Customise code?Using JNDI this should not be very hard.
Are you planning to store the secondary groups as a child table to a unix RO?
Int hat case It might actually be easier and quicker to sidestep the recon system entirely and interact directly with the child form.
Best regards
/Martin
Maybe you are looking for
-
Problem in Multiple PO Release [Release outside field of responsibility]
Hi all I m wrking on Multiple PO release wid release strategy on a z dev report . I m using a BAPI_PO_RELEASE . For some garment PO it given a error msg " Release outside field of responsibility" . I got some details of this error using sdn for auth
-
Hi Experts I have created a CAF Application. In this application i have one BO, and one Application Services that consume the methods of BO. In my BO i configure Permission Cheks Enable checked. In nwa in create an specific rules to manipulate the BO
-
Hi, I am trying to get a format of YYYY-MM-DD from 10/1/2005 and cannot get from the below program. any help in this regard is appreciated. Thanks Chat import java.util.*; import java.text.*; public class GetSampleDate { public static void main(
-
Hi, couple of questions about JRC concerning import and html. 1) What is the simplest way to fill open ReportClientDocument with xml content? 2) In CR2008 application there exists html export which isn't included in JRC. Is there any other utlity to
-
I have a macbook pro with OSX 10.5.8. How do I upgrade to Mountain Lion when it is available? I need to upgrade to run quickbooks and other apps